Skip to content

Commit

Permalink
feat: add t-shirt button to homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaKGoldberg committed Feb 27, 2025
1 parent 282b805 commit b300fd2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/Header.astro
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function hrefProps(pathname: string) {
<summary aria-label="Toggle header">≡</summary>
<div class="header-contents-mobile">
<a {...hrefProps("/")}>Home</a>
<a {...hrefProps("https://shop.squiggle.tools")}>Shop</a>
<a {...hrefProps(links.shop)}>Shop</a>
<a {...hrefProps("/travel")}>Travel</a>
<Button
as="a"
Expand All @@ -37,7 +37,7 @@ function hrefProps(pathname: string) {
<a class="logo" href="/"><Logo year /></a>
<div class="header-links">
<a {...hrefProps("/")}>Home</a>
<a {...hrefProps("https://shop.squiggle.tools")}>Shop</a>
<a {...hrefProps(links.shop)}>Shop</a>
<a {...hrefProps("/travel")}>Travel</a>
<Button
as="a"
Expand Down
1 change: 1 addition & 0 deletions src/data/links.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export const links = {
shop: "https://shop.squiggle.tools",
tickets: "https://buytickets.at/squiggleconf/1488622",
};
9 changes: 8 additions & 1 deletion src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ import PageLayout from "~/layouts/PageLayout.astro";
target="_blank"
>
Get extra early bird tickets now!

<Arrow />
</Button>
<Button as="a" class="hero-button" href={links.tickets} target="_blank">
Get the t-shirt here
<Arrow />
</Button>
</div>
Expand All @@ -67,6 +70,10 @@ import PageLayout from "~/layouts/PageLayout.astro";
}

.hero-bottom {
align-items: flex-start;
display: flex;
flex-direction: column;
gap: 0.5rem;
margin-top: 3.5rem;
}

Expand Down

0 comments on commit b300fd2

Please sign in to comment.