Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
82 changes: 40 additions & 42 deletions src/pages/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** @jsx jsx */
import { jsx, ThemeProvider, Box, Grid } from "theme-ui";
/** @jsxImportSource theme-ui */
import { ThemeProvider, Box, Grid } from "theme-ui";
import { Global, css } from "@emotion/react";
import React from "react";

Expand All @@ -17,48 +17,46 @@ import HomeFooter from "../components/HomeFooter";

function Home() {
return (
<>
<ThemeProvider theme={theme}>
<Global
styles={css`
.navbar,
.footer {
display: none;
}
<ThemeProvider theme={theme}>
<Global
styles={css`
.navbar,
.footer {
display: none;
}

@font-face {
font-family: "Formular Mono";
src: url("/fonts/FormularMono.woff2") format("woff2"),
url("/fonts/FormularMono.woff") format("woff");
font-weight: 400;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: "Formular Mono";
src: url("/fonts/FormularMono.woff2") format("woff2"),
url("/fonts/FormularMono.woff") format("woff");
font-weight: 400;
font-style: normal;
font-display: swap;
}

@font-face {
font-family: "Roobert";
src: url("/fonts/Roobert-SemiBold.woff2") format("woff2"),
url("/fonts/Roobert-SemiBold.woff") format("woff");
font-weight: 600;
font-style: normal;
font-display: swap;
}
`}
/>
<Layout title="fnd.dev" description="Foundation Docs">
<Box sx={{ maxWidth: 1240, marginX: "auto", paddingX: 30 }}>
<HomeHeader />
<Grid gap={[48, 72, 108]}>
<HomeHero />
<HomeFeatures />
</Grid>
<HomeQuestions />
<HomeProjects />
<HomeFooter />
</Box>
</Layout>
</ThemeProvider>
</>
@font-face {
font-family: "Roobert";
src: url("/fonts/Roobert-SemiBold.woff2") format("woff2"),
url("/fonts/Roobert-SemiBold.woff") format("woff");
font-weight: 600;
font-style: normal;
font-display: swap;
}
`}
/>
<Layout title="fnd.dev" description="Foundation Docs">
<Box sx={{ maxWidth: 1240, mx: "auto", px: 30 }}>
<HomeHeader />
<Grid gap={[48, 72, 108]}>
<HomeHero />
<HomeFeatures />
</Grid>
<HomeQuestions />
<HomeProjects />
<HomeFooter />
</Box>
</Layout>
</ThemeProvider>
);
}

Expand Down