Skip to content

Commit 8a9d0c7

Browse files
committed
Add multiple subscription links
1 parent cc806d6 commit 8a9d0c7

11 files changed

+55
-32
lines changed

src/components/index/Hero.astro

-1
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,4 @@ import LogoFull from "./logo_full.png";
2626
loading="eager"
2727
/>
2828
</div>
29-
<!-- <Scroller /> -->
3029
</div>

src/components/mktd/ButtonWithMovingBorderEffect.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export function ButtonWithMovingBorderEffect({
2727
[key: string]: any;
2828
}) {
2929
return (
30-
<a
30+
<div
3131
className={cn(
3232
"relative block h-16 w-40 overflow-hidden bg-transparent p-[1px] text-xl",
3333
containerClassName,
@@ -62,7 +62,7 @@ export function ButtonWithMovingBorderEffect({
6262
>
6363
{children}
6464
</div>
65-
</a>
65+
</div>
6666
);
6767
}
6868

src/components/mktd/Hero.astro

+19-14
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { type CollectionEntry } from "astro:content";
44
import Logo from "../logo.svg";
55
import { ButtonWithMovingBorderEffect } from "./ButtonWithMovingBorderEffect";
66
import { formatISO } from "date-fns";
7+
import { Icon } from "astro-icon/components";
78
89
type Props = CollectionEntry<"mktds">;
910
@@ -33,26 +34,30 @@ const mktdIsUpcoming = mktd.data.date > new Date();
3334
/></a
3435
>
3536
</div>
36-
<div
37-
class="container m-auto flex flex-wrap items-center justify-around gap-4 px-4 pb-8"
38-
>
39-
<div class="grid grid-rows-[1fr_auto_1fr]">
40-
<div class="row-start-2">
37+
<div class="container m-auto flex flex-wrap justify-around gap-4 px-4 pb-8">
38+
<div
39+
class="flex flex-col items-center gap-4"
40+
class:list={mktdIsUpcoming ? "justify-end" : "justify-center"}
41+
>
42+
<div class="">
4143
<time datetime={date}>{formattedDate}</time>
4244
<h1 class="text-4xl font-bold">{mktd.data.name}</h1>
4345
<p class="text-xl first-letter:uppercase">{mktd.data.subtitle}</p>
4446
</div>
4547
{
4648
mktdIsUpcoming && (
47-
<div class="row-start-3 mt-6 justify-self-start">
48-
<ButtonWithMovingBorderEffect
49-
client:idle
50-
rel="noopener"
51-
href={mktd.data.inscriptionLink}
52-
>
53-
S'inscrire
54-
</ButtonWithMovingBorderEffect>
55-
</div>
49+
<ButtonWithMovingBorderEffect client:idle className="gap-2">
50+
S'inscrire
51+
{mktd.data.inscriptionLinks.map((inscriptionLink) => (
52+
<a
53+
rel="noopener"
54+
href={inscriptionLink.url}
55+
aria-label={inscriptionLink.type}
56+
>
57+
<Icon name={inscriptionLink.type} />
58+
</a>
59+
))}
60+
</ButtonWithMovingBorderEffect>
5661
)
5762
}
5863
</div>

src/content/config.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,12 @@ const mktds = defineCollection({
5252
end: z.string(),
5353
}),
5454
),
55-
inscriptionLink: z.string(),
55+
inscriptionLinks: z.array(
56+
z.object({
57+
url: z.string(),
58+
type: z.enum(["meetup", "linkedIn"]),
59+
}),
60+
),
5661
}),
5762
});
5863

src/content/mktds/mktd12_nextjs-vs-qwik.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -64,5 +64,7 @@ planning:
6464
start: 18h00
6565
end: 19h00
6666

67-
inscriptionLink: https://www.meetup.com/fr-FR/monkeytechdays/events/298326303/
67+
inscriptionLinks:
68+
- url: https://www.meetup.com/fr-FR/monkeytechdays/events/298326303/
69+
type: meetup
6870
---

src/content/mktds/mktd13_java23.md

+10-8
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,11 @@ description:
1010
- Nous nous intéresserons notament au "pattern matching" et au thread léger
1111

1212
requirements:
13-
- Venir avec son ordinateur 💻,
14-
- avec à minima la JDK 23 et un IDE installés (un guide
15-
d’installation sera fourni une semaine avant l’événement),
16-
- et si possible les droits admin/root,
17-
- de la bonne humeur !
18-
13+
- Venir avec son ordinateur 💻
14+
- Avec à minima la JDK 23 et un IDE installés (un guide
15+
d’installation sera fourni une semaine avant l’événement)
16+
- Et si possible les droits admin/root
17+
- De la bonne humeur !
1918

2019
program:
2120
- Expérimenter les nouveautés des dernières versions de Java en équipe
@@ -27,7 +26,6 @@ coachs:
2726
- name: Guillaume Andrieu
2827
img: gan.jpg
2928
description: Expert Back-End et système distribué
30-
tech: Java 23
3129

3230
community:
3331
- logo: toulousejug.png
@@ -63,5 +61,9 @@ planning:
6361
start: 18h00
6462
end: 19h00
6563

66-
inscriptionLink: https://www.meetup.com/fr-FR/monkeytechdays/events/298326303/
64+
inscriptionLinks:
65+
- url: https://www.meetup.com/fr-FR/monkeytechdays/events/298326303/
66+
type: meetup
67+
- url: https://www.linkedin.com/events/7251941430472929280/comments/
68+
type: linkedIn
6769
---

src/content/mktds/mktd1_feign-vs-retrofit.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -58,5 +58,7 @@ planning:
5858
start: 18h30
5959
end: 19h30
6060

61-
inscriptionLink: http://www.meetup.com/Monkey-Tech-Days/events/231796229/
61+
inscriptionLinks:
62+
- url: http://www.meetup.com/Monkey-Tech-Days/events/231796229/
63+
type: meetup
6264
---

src/content/mktds/mktd2_angular-react.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -73,5 +73,7 @@ planning:
7373
start: 18h30
7474
end: 19h30
7575

76-
inscriptionLink: http://www.meetup.com/Monkey-Tech-Days/events/232103075/
76+
inscriptionLinks:
77+
- url: http://www.meetup.com/Monkey-Tech-Days/events/232103075/
78+
type: meetup
7779
---

src/content/mktds/mktd3_reactive-streams.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -54,5 +54,7 @@ planning:
5454
start: 18h30
5555
end: 19h30
5656

57-
inscriptionLink: http://www.meetup.com/Monkey-Tech-Days/events/232103376/
57+
inscriptionLinks:
58+
- url: http://www.meetup.com/Monkey-Tech-Days/events/232103376/
59+
type: meetup
5860
---

src/content/mktds/mktd4_swift-vs-kotlin.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -60,5 +60,7 @@ planning:
6060
start: 18h30
6161
end: 19h30
6262

63-
inscriptionLink: https://www.meetup.com/fr-FR/Monkey-Tech-Days/events/236337299/
63+
inscriptionLinks:
64+
- url: https://www.meetup.com/fr-FR/Monkey-Tech-Days/events/236337299/
65+
type: meetup
6466
---

src/content/mktds/mktd5_go-vs-rust.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,7 @@ planning:
6161
start: 18h30
6262
end: 19h30
6363

64-
inscriptionLink: https://www.meetup.com/fr-FR/Monkey-Tech-Days/events/237545492/
64+
inscriptionLinks:
65+
- url: https://www.meetup.com/fr-FR/Monkey-Tech-Days/events/237545492/
66+
type: meetup
6567
---

0 commit comments

Comments
 (0)