Skip to content

Commit a8e1f7f

Browse files
committed
Replace icons in hero and nav.
1 parent 7f88666 commit a8e1f7f

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/components/header/header-actions.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ const IS_LIVE = false;
2727
{
2828
!mobile ? (
2929
<>
30-
<Button url="/tickets">Register Now! 🎟️</Button>
31-
{IS_LIVE && <Button url="/live">Live 📺</Button>}
30+
<Button url="/tickets" icon="ticket">Register Now!</Button>
31+
{IS_LIVE && <Button url="/live">Live</Button>}
3232
</>
3333
) : null
3434
}

src/components/hero2/hero.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import heroImage from "./conference_photo.jpg";
66
import IconWithLabel from "./icon-label.astro";
77
import Button from "@ui/Button.astro";
88
9-
const action1 = "https://ep2025.europython.eu/tickets";
10-
const action2 = "https://ep2025.europython.eu/sponsorship/sponsor/";
9+
const action1 = "/tickets";
10+
const action2 = "/sponsorship/sponsor/";
1111
---
1212

1313
<div

src/components/ui/Button.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const {
1010
isExternal,
1111
icon,
1212
iconSvg = false,
13-
iconRight = false
13+
iconRight = true
1414
} = Astro.props;
1515
1616
const resolvedIsExternal = isExternal ?? url?.startsWith("http");
@@ -37,7 +37,7 @@ const iconClasses = "mx-2 ";
3737
{!iconRight && icon && <Icon name={icon} svg={iconSvg} class={iconClasses} />}
3838
<slot />
3939
{iconRight && icon && <Icon name={icon} svg={iconSvg} class={iconClasses} />}
40-
{resolvedIsExternal && <span class="ml-1 text-lg leading-4">↗</span>}
40+
{resolvedIsExternal && <Icon name="external-link" svg={iconSvg} class={iconClasses} />}
4141
</a>
4242
) : (
4343
<button

0 commit comments

Comments
 (0)