generated from hackclub/theme-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
118c59b
commit 74f1ab9
Showing
25 changed files
with
851 additions
and
598 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,61 @@ | ||
import { useRouter } from "next/router"; | ||
import { Box, Container, Heading, Image, Link } from "theme-ui"; | ||
import { useRouter } from 'next/router' | ||
import { Box, Container, Heading, Image, Link } from 'theme-ui' | ||
|
||
export default function Footer() { | ||
const router = useRouter(); | ||
const router = useRouter() | ||
|
||
return ( | ||
<Box as="footer" sx={{ bg: 'sheet', color: 'text' }}> | ||
<Container variant="wide" sx={{ pt: 4, pb: 2 }}> | ||
|
||
<Box sx={{ | ||
display: "flex", | ||
justifyContent: "flex-start", | ||
alignItems: "flex-start", | ||
flexDirection: "row", | ||
mb: 4, | ||
gap: 3, | ||
width: "100%" | ||
}}> | ||
<Box mt={0} sx={{ | ||
width: "100%" | ||
}}> | ||
<Box sx={{ display: "flex", alignItems: "center", justifyContent: "space-between", gap: 4, mt: 3 }}> | ||
{router.pathname != "/" ? <Heading as="h3" variant="subheadline" sx={{ color: "muted", m: 0 }}> | ||
<Link href="/">Read more posts from HCB →</Link> | ||
</Heading> : <Box />} | ||
|
||
|
||
<Heading as="h3" variant="subheadline" sx={{ color: "muted", m: 0 }}> | ||
<Link href="#top">Scroll to top ↑</Link> | ||
</Heading> | ||
</Box> | ||
</Box> | ||
</Box> | ||
</Container> | ||
return ( | ||
<Box as="footer" sx={{ bg: 'sheet', color: 'text' }}> | ||
<Container variant="wide" sx={{ pt: 4, pb: 2 }}> | ||
<Box | ||
sx={{ | ||
display: 'flex', | ||
justifyContent: 'flex-start', | ||
alignItems: 'flex-start', | ||
flexDirection: 'row', | ||
mb: 4, | ||
gap: 3, | ||
width: '100%' | ||
}} | ||
> | ||
<Box | ||
mt={0} | ||
sx={{ | ||
width: '100%' | ||
}} | ||
> | ||
<Box | ||
sx={{ | ||
display: 'flex', | ||
alignItems: 'center', | ||
justifyContent: 'space-between', | ||
gap: 4, | ||
mt: 3 | ||
}} | ||
> | ||
{router.pathname != '/' ? ( | ||
<Heading | ||
as="h3" | ||
variant="subheadline" | ||
sx={{ color: 'muted', m: 0 }} | ||
> | ||
<Link href="/">Read more posts from HCB →</Link> | ||
</Heading> | ||
) : ( | ||
<Box /> | ||
)} | ||
|
||
<Heading | ||
as="h3" | ||
variant="subheadline" | ||
sx={{ color: 'muted', m: 0 }} | ||
> | ||
<Link href="#top">Scroll to top ↑</Link> | ||
</Heading> | ||
</Box> | ||
</Box> | ||
</Box> | ||
) | ||
} | ||
</Container> | ||
</Box> | ||
) | ||
} |
Oops, something went wrong.