Skip to content

Commit

Permalink
Run prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
YodaLightsabr committed Oct 31, 2024
1 parent 118c59b commit 74f1ab9
Show file tree
Hide file tree
Showing 25 changed files with 851 additions and 598 deletions.
6 changes: 3 additions & 3 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

version: 2
updates:
- package-ecosystem: "npm" # See documentation for possible values
directory: "/" # Location of package manifests
- package-ecosystem: 'npm' # See documentation for possible values
directory: '/' # Location of package manifests
schedule:
interval: "weekly"
interval: 'weekly'
19 changes: 9 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,16 @@ Follow the following steps to create a new post:
import Post from '@/components/Post.js'

export const meta = {
title: "My New Post",
id: "my-new-post", // make sure this matches the directory name
category: "new" // one of "new", "newsletter", "improvement"
}

<Post meta={meta}>
# Post content goes here
Using either markdown or JSX
</Post>
title: 'My New Post',
id: 'my-new-post', // make sure this matches the directory name
category: 'new' // one of "new", "newsletter", "improvement"
}

<Post meta={meta}># Post content goes here Using either markdown or JSX</Post>
```

4. Reference the new post in `/content/posts/posts.js` (this adds it to the website)

```js
export * as z from './my-new-post/post.mdx'
```
Expand All @@ -37,4 +36,4 @@ Then you're done!

### `/lib/authors.js`

This file contains all of the authors that can be referenced in posts.
This file contains all of the authors that can be referenced in posts.
90 changes: 56 additions & 34 deletions components/Footer.js
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>
)
}
Loading

0 comments on commit 74f1ab9

Please sign in to comment.