Skip to content

Commit

Permalink
add ids to sections.
Browse files Browse the repository at this point in the history
  • Loading branch information
bgarropy-atlassian committed Oct 9, 2023
1 parent 0ce3559 commit 540e1a1
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 8 deletions.
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

0 comments on commit 540e1a1

Please sign in to comment.