Skip to content

Commit

Permalink
feat: add id to all cards
Browse files Browse the repository at this point in the history
  • Loading branch information
Darkflame72 committed May 6, 2024
1 parent 7d69bda commit a40eb33
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/IconCards.astro
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ const { cards, location } = Astro.props;
<a
class="group flex gap-y-6 size-full hover:bg-gray-100 rounded-lg p-5 transition-all dark:hover:bg-neutral-800 dark:focus:outline-none dark:focus:outline-none dark:focus:bg-neutral-800"
href={card.signupLink}
id={`${card.title}-${card.ages}`.toLowerCase().replaceAll(" ", "-")}
>
<Icon
name="mdi:school"
Expand Down
3 changes: 3 additions & 0 deletions src/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,7 @@ export const sessions: { location: string; sessions: Session[] }[] = [
description:
"After school every Monday from 3:30pm to 5:30pm for students in years 9 to 13;",
type: "After School",
signupLink: "https://example.com",
},
],
},
Expand All @@ -397,6 +398,7 @@ export const sessions: { location: string; sessions: Session[] }[] = [
description:
"After school every Monday from 3:30pm to 5:30pm for students in years 9 to 13;",
type: "After School",
signupLink: "https://example.com",
},
{
title: "Ūpane",
Expand All @@ -406,6 +408,7 @@ export const sessions: { location: string; sessions: Session[] }[] = [
description:
"After school every Monday from 3:30pm to 5:30pm for students in years 9 to 13;",
type: "After School",
signupLink: "https://example.com",
},
],
},
Expand Down

0 comments on commit a40eb33

Please sign in to comment.