Skip to content

Commit b9461f7

Browse files
authored
Merge branch 'ep2025' into component-accordion
2 parents 4e5afa1 + f4b06bc commit b9461f7

36 files changed

+922
-146
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
import type React from 'react';
3+
4+
export interface Props {
5+
url?: string;
6+
children: React.ReactNode;
7+
disabled?: boolean;
8+
className?: string;
9+
secondary?: boolean;
10+
isExternal?: boolean;
11+
}
12+
13+
const { url, className = "", secondary = false, disabled = false, isExternal} = Astro.props;
14+
const resolvedIsExternal = isExternal !== undefined ? isExternal : url?.startsWith("http");
15+
---
16+
17+
<a
18+
class={`font-bold text-lg px-4 py-4 bg-button rounded-[60px] inline-block leading-4 hover:bg-button-hover not-prose
19+
${secondary || disabled ? "bg-primary text-white hover:bg-primary-hover" : "text-text-inverted"}
20+
${secondary ? "text-text" : ""}
21+
${className || ""}
22+
${disabled ? "opacity-50 pointer-events-none" : ""}`}
23+
href={url}
24+
>
25+
<slot />
26+
27+
{resolvedIsExternal && (
28+
<span class="inline-block ml-1 font-system text-lg leading-4">
29+
30+
</span>
31+
)}
32+
</a>

src/components/button-link/button-link.tsx

Lines changed: 0 additions & 43 deletions
This file was deleted.

src/components/button-link/index.tsx

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/components/button-with-title/button-with-title.tsx

Lines changed: 0 additions & 22 deletions
This file was deleted.

src/components/button-with-title/index.tsx

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/components/button/button.tsx

Lines changed: 0 additions & 27 deletions
This file was deleted.

src/components/button/index.tsx

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/components/card/card.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
import type { ImageMetadata } from "astro";
33
import { Image } from "astro:assets";
4-
import { ButtonLink } from "../button-link/button-link";
4+
import ButtonLink from "../button-link/button-link.astro";
55
66
export interface Props {
77
title: string;
@@ -28,7 +28,7 @@ const { title, subtitle, url, image } = Astro.props;
2828
<h3 class="text-3xl font-bold mt-2 mb-4 text-primary">{title}</h3>
2929
</a>
3030
<ButtonLink
31-
href={url}
31+
url={url}
3232
className="mb-4"
3333
isExternal={false}
3434
>

src/components/footer.astro

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ const gitVersion = import.meta.env.GIT_VERSION;
6464
<br />
6565
<a
6666
class="underline whitespace-nowrap"
67-
href="https://twitter.com/europython"
67+
href="https://fosstodon.org/@europython"
6868
>
69-
twitter.com/europython <span> ↗</span>
69+
fosstodon.org/@europython <span> ↗</span>
7070
</a>
7171
<br />
7272
<a
@@ -78,9 +78,9 @@ const gitVersion = import.meta.env.GIT_VERSION;
7878
<br />
7979
<a
8080
class="underline whitespace-nowrap"
81-
href="https://fosstodon.org/@europython"
81+
href="https://bsky.app/profile/europython.eu"
8282
>
83-
fosstodon.org/@europython <span> ↗</span>
83+
bsky.app/profile/europython.eu <span> ↗</span>
8484
</a>
8585
<br />
8686
<a
@@ -89,6 +89,13 @@ const gitVersion = import.meta.env.GIT_VERSION;
8989
>
9090
github.com/europython <span> ↗</span>
9191
</a>
92+
<br />
93+
<a
94+
class="underline whitespace-nowrap"
95+
href="https://twitter.com/europython"
96+
>
97+
twitter.com/europython <span> ↗</span>
98+
</a>
9299
</p>
93100
<p class="mb-4" style="color: rgba(255, 255, 255, 0.4)">version: {gitVersion} @ {buildTimestamp}</p>
94101
</div>

src/components/header/header-actions.astro

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
import { ButtonLink } from "../button-link";
2+
import ButtonLink from "../button-link/button-link.astro";
33
import HeaderButton from "./header-button.astro";
44
55
export interface Props {
@@ -15,19 +15,17 @@ const IS_LIVE = false;
1515
{
1616
!mobile ? (
1717
<>
18-
<ButtonLink secondary href="https://www.europython-society.org/coc/">
18+
<ButtonLink secondary url="https://www.europython-society.org/coc/">
1919
<abbr title="Code of Conduct" class="no-underline md:hidden">
2020
CoC
2121
</abbr>
2222
<span class="hidden md:inline">Code of Conduct</span>
2323
</ButtonLink>
24-
<!--
25-
<ButtonLink href="/programme/cfp" className="hidden md:block">
26-
<span>Send your proposal!</span>
24+
<ButtonLink url="https://voting.europython.eu" className="hidden md:block">
25+
<span>Community vote</span>
2726
</ButtonLink>
28-
-->
2927
{IS_LIVE && (
30-
<ButtonLink href="/live">
28+
<ButtonLink url="/live">
3129
Live
3230
<span class="hidden md:inline"> 📺</span>
3331
</ButtonLink>

0 commit comments

Comments
 (0)