Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🪪 section ids #379

Merged
merged 1 commit into from
Oct 9, 2023
Merged
Show file tree
Hide file tree
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
23 changes: 18 additions & 5 deletions src/components/Home/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,30 +23,43 @@ const Home: FC<HomeProps> = ({latestPosts, latestVideos, featuredProjects}) => {
<div className="mt-16 grid gap-y-16 max-[700px]:m-0">
<Hero />

<Section title="blog" link="/blog">
<Section id="blog" title="blog" link="/blog">
<LatestPosts latestPosts={latestPosts} />
</Section>

<Section title="videos" link="https://youtube.com/bradgarropy">
<Section
id="videos"
title="videos"
link="https://youtube.com/bradgarropy"
>
<LatestVideos latestVideos={latestVideos} />
</Section>

<Section title="projects" link="https://github.com/bradgarropy">
<Section
id="projects"
title="projects"
link="https://github.com/bradgarropy"
>
<FeaturedProjects featuredProjects={featuredProjects} />
</Section>

<Section
id="podcasts"
title="podcasts"
link="https://open.spotify.com/show/3TAuVah0Q9BOV5PbwPDGfs"
>
<Podcasts />
</Section>

<Section title="store" link="https://bradgarropy.com/store">
<Section
id="store"
title="store"
link="https://bradgarropy.com/store"
>
<Shirts />
</Section>

<Section title="newsletter">
<Section id="newsletter" title="newsletter">
<Newsletter />
</Section>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Sponsors/Sponsors.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const Sponsors: FC<SponsorsProps> = ({sponsors}) => {
</Section>

{Object.entries(sponsors).map(([frequency, sponsors]) => (
<Section key={frequency} title={frequency}>
<Section key={frequency} id={frequency} title={frequency}>
{sponsors.length ? (
<div className="grid grid-flow-col justify-start gap-x-4">
{sponsors.map(sponsor => (
Expand Down
4 changes: 2 additions & 2 deletions src/pages/blog/[slug].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ const PostPage: FC<PostPageProps> = ({post, relatedPosts}) => {
<div className="flex flex-col gap-y-28">
<Post post={post} />

<Section title="related posts">
<Section id="related-posts" title="related posts">
<PostList posts={relatedPosts} />
</Section>

<Section title="newsletter" link="/newsletter">
<Section id="newsletter" title="newsletter" link="/newsletter">
<Newsletter />
</Section>
</div>
Expand Down
Loading