File tree 3 files changed +16
-19
lines changed
3 files changed +16
-19
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ export function ButtonWithMovingBorderEffect({
27
27
[ key : string ] : any ;
28
28
} ) {
29
29
return (
30
- < div
30
+ < a
31
31
className = { cn (
32
32
"relative block h-16 w-40 overflow-hidden bg-transparent p-[1px] text-xl" ,
33
33
containerClassName ,
@@ -62,7 +62,7 @@ export function ButtonWithMovingBorderEffect({
62
62
>
63
63
{ children }
64
64
</ div >
65
- </ div >
65
+ </ a >
66
66
) ;
67
67
}
68
68
Original file line number Diff line number Diff line change @@ -46,18 +46,19 @@ const mktdIsUpcoming = mktd.data.date > new Date();
46
46
</div >
47
47
{
48
48
mktdIsUpcoming && (
49
- <ButtonWithMovingBorderEffect client :idle className = " gap-2" >
50
- S'inscrire
49
+ <div class = " flex flex-wrap gap-2" >
51
50
{ mktd .data .inscriptionLinks .map ((inscriptionLink ) => (
52
- <a
53
- rel = " noopener"
51
+ <ButtonWithMovingBorderEffect
52
+ client :idle
53
+ className = " gap-2"
54
54
href = { inscriptionLink .url }
55
- aria-label = { inscriptionLink .type }
55
+ aria-label = { ` S'incrire sur ${ inscriptionLink .type } ` }
56
56
>
57
57
<Icon name = { inscriptionLink .type } />
58
- </a >
58
+ S'inscrire
59
+ </ButtonWithMovingBorderEffect >
59
60
))}
60
- </ButtonWithMovingBorderEffect >
61
+ </div >
61
62
)
62
63
}
63
64
</div >
Original file line number Diff line number Diff line change @@ -8,27 +8,23 @@ const mktd = Astro.props;
8
8
9
9
<section >
10
10
<div class =" container m-auto gap-2 space-y-4 px-4 py-8" >
11
- <div class =" grid grid-cols-2 items-center max-sm:grid-cols-1" >
11
+ <div class =" grid grid-cols-2 items-center max-sm:mx-4 max-sm: grid-cols-1" >
12
12
<h2 class =" mb-4 text-center text-2xl font-bold text-main-900" >
13
13
Au programme
14
14
</h2 >
15
- <ul
16
- class =" flex flex-col gap-2 text-lg max-sm:items-center max-sm:text-center"
17
- >
18
- { mktd .data .program .map ((item ) => <li class = " sm:list-disc" >{ item } </li >)}
15
+ <ul class =" flex flex-col gap-2 text-lg" >
16
+ { mktd .data .program .map ((item ) => <li class = " list-disc" >{ item } </li >)}
19
17
</ul >
20
18
</div >
21
19
<hr />
22
- <div class =" grid grid-cols-2 items-center max-sm:grid-cols-1" >
20
+ <div class =" grid grid-cols-2 items-center max-sm:mx-4 max-sm: grid-cols-1" >
23
21
<h2 class =" mb-4 text-center text-2xl font-bold text-main-900" >
24
22
Prérequis
25
23
</h2 >
26
- <ul
27
- class =" flex flex-col gap-2 text-lg max-sm:items-center max-sm:text-center"
28
- >
24
+ <ul class =" flex flex-col gap-2 text-lg" >
29
25
{
30
26
mktd .data .requirements .map ((item ) => (
31
- <li class = " sm: list-disc" >{ item } </li >
27
+ <li class = " list-disc" >{ item } </li >
32
28
))
33
29
}
34
30
</ul >
You can’t perform that action at this time.
0 commit comments