-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
merge layouts, update theme-ui styles for combined layout
- Loading branch information
Showing
23 changed files
with
307 additions
and
411 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/** @jsx jsx */ | ||
import React, { Component } from "react" | ||
import { Flex, Box, jsx } from "theme-ui" | ||
|
||
import { Link } from "react-router-dom" | ||
import Logomark from "./widgets/logomark" | ||
|
||
const Header: React.FC<{ user? }> = ({ user }) => { | ||
return ( | ||
<Box> | ||
<Flex | ||
sx={{ | ||
margin: `0 auto`, | ||
width: "100%", | ||
pt: [5], | ||
pb: [6], | ||
justifyContent: "space-between", | ||
fontFamily: "monospace", | ||
}} | ||
> | ||
<Box sx={{ zIndex: 1000 }}> | ||
<Logomark style={{ marginRight: 10, position: "relative", top: 6 }} fill={"#62a6ef"} /> | ||
<Link sx={{ variant: "links.nav" }} to={user ? "/conversations" : "/"}> | ||
Polis | ||
</Link> | ||
</Box> | ||
<Box sx={{ mt: [1], mr: [-4] }}> | ||
{user ? ( | ||
<React.Fragment> | ||
<Link sx={{ variant: "links.nav" }} to={`/account`}> | ||
Account | ||
</Link> | ||
<Link sx={{ variant: "links.nav" }} to="/signout"> | ||
Sign out | ||
</Link> | ||
</React.Fragment> | ||
) : ( | ||
<Link sx={{ variant: "links.nav" }} to="/signin"> | ||
Sign in | ||
</Link> | ||
)} | ||
</Box> | ||
</Flex> | ||
</Box> | ||
) | ||
} | ||
|
||
export default Header |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
import React from "react" | ||
import { Heading, Box, Text, Link, Button } from "theme-ui" | ||
|
||
const Index: React.FC<{ user? }> = ({ user }) => { | ||
return ( | ||
<React.Fragment> | ||
<Heading | ||
as="h1" | ||
sx={{ | ||
fontSize: [5], | ||
lineHeight: 1.2, | ||
mb: [4], | ||
maxWidth: "20em", | ||
}} | ||
> | ||
An open-source platform for collaborative intelligence | ||
</Heading> | ||
<Box sx={{ mb: [4, null, 5] }}> | ||
<Text sx={{ my: 3 }}> | ||
Polis is a tool for gathering and understanding what a group thinks, and a social platform | ||
for ideas. Starting from a prompt, you can contribute and vote on cards that map out the | ||
space around a topic, and explore it with a team, group, or public community. | ||
</Text> | ||
<Text sx={{ my: 3 }}> | ||
Based on a platform developed by the Computational Democracy Project and used by | ||
governments, academics, and citizens around the world. | ||
</Text> | ||
{user ? ( | ||
<Box sx={{ mt: [6] }}> | ||
<Link variant="links.button" href="/conversations"> | ||
Go to conversations | ||
</Link> | ||
</Box> | ||
) : ( | ||
<Box sx={{ mt: [6] }}> | ||
<Link variant="links.button" href="/createuser"> | ||
Sign up | ||
</Link> | ||
<Text sx={{ display: "inline", my: [2], fontFamily: "monospace" }}> or </Text> | ||
<Link variant="links.button" href="/signin"> | ||
Sign in | ||
</Link> | ||
</Box> | ||
)} | ||
</Box> | ||
</React.Fragment> | ||
) | ||
} | ||
|
||
export default Index |
Oops, something went wrong.