repl.it
Next.js

No description

fork
loading
Files
  • pages
    • index.js
    • _app.js
    • _document.js
  • components
  • .babelrc
  • next.config.js
  • now.json
  • README.md
  • yarn-error.log
  • yarn.lock
  • Packager files
  • package.json
pages/index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import Link from "next/link";
import { Text, Heading, Box, Flex } from "rebass";
import styled from "styled-components";
import theme from "../theme";

const Banner = styled(Flex).attrs({
  flexDirection: "column",
  justifyContent: "center",
  alignItems: "center",
  textAlign: "center",
  bg: "green"
})`
  min-height: 24rem;
`

const Ultraline = styled(Heading).attrs({
  as: "h1",
  fontSize: [5, 6, 7, 8],
  color: "white"
})``

export default () => (
  <>
    <Box p={[3, 4]}>
      <Banner>
        <Ultraline>Green New Deal</Ultraline>
      </Banner>
      <Link href="/about">
        <a>About</a>
      </Link>
    </Box>
  </>
)
?