@@ -3,63 +3,71 @@ import Logo from '~/components/logo'
33import ThemeToggle from '~/components/theme-toggle'
44import FlashToasts from '~/components/flash-toasts'
55
6+ const PILLARS = [
7+ [ 'Articles' , 'Écrivez, partagez, apprenez en public.' ] ,
8+ [ 'Forum' , 'Une question ? Quelqu’un a la réponse.' ] ,
9+ [ 'Discussions' , 'Carrière, outils, écosystème local.' ] ,
10+ ]
11+
612/**
713 * Split layout: form on the left; on the right a dark "poster" panel.
14+ * One inner margin (px-10) for every block of the poster so all its
15+ * lines share the same left edge.
816 */
917export default function AuthLayout ( { children } : { children : ReactNode } ) {
1018 return (
11- < div className = "grid min-h-dvh lg:grid-cols-[minmax(0,1fr)_minmax(0,1.05fr)]" >
12- < div className = "flex flex-col px-5 py-6 sm:px-10" >
13- < div className = "flex items-center justify-between" >
14- < Logo />
15- < ThemeToggle />
19+ < >
20+ < div className = "grid min-h-dvh lg:grid-cols-[minmax(0,1fr)_minmax(0,1.05fr)]" >
21+ < div className = "flex flex-col px-5 py-6 sm:px-10" >
22+ < div className = "flex items-center justify-between" >
23+ < Logo />
24+ < ThemeToggle />
25+ </ div >
26+ < main
27+ id = "contenu"
28+ className = "mx-auto flex w-full max-w-[400px] flex-1 flex-col justify-center py-12"
29+ >
30+ { children }
31+ </ main >
32+ < p className = "label" > © { new Date ( ) . getFullYear ( ) } JavaScript Cameroun</ p >
1633 </ div >
17- < main
18- id = "contenu"
19- className = "mx-auto flex w-full max-w-[400px] flex-1 flex-col justify-center py-12"
20- >
21- { children }
22- </ main >
23- < p className = "label" > © { new Date ( ) . getFullYear ( ) } JavaScript Cameroun</ p >
24- </ div >
2534
26- < aside className = "relative hidden overflow-hidden border-l border-ink bg-ink text-paper lg:flex lg:flex-col lg:justify-between dark:bg-paper-2 dark:text-ink" >
27- < div className = "flex items-start justify-between p-10" >
28- < p className = "label text-paper/60 dark:text-muted" > Fiche d’adhésion · N° 237</ p >
29- < p className = "label text-paper/60 dark:text-muted" > 4.05° N · 9.70° E</ p >
30- </ div >
31- < div className = "px-10" >
32- < p className = "text-[clamp(3rem,6.4vw,6.5rem)] leading-[0.9] font-extrabold tracking-[-0.055em]" >
33- Le 237
34- < br />
35- < span className = "font-mono text-[0.42em] font-medium tracking-[-0.02em] text-paper/70 dark:text-muted" >
36- code en
37- </ span >
38- < br />
39- < span className = "mark-full" > JavaScript.</ span >
40- </ p >
41- </ div >
42- < dl className = "grid grid-cols-3 border-t border-paper/20 dark:border-line" >
43- { [
44- [ 'Articles' , 'Écrivez, partagez, apprenez en public.' ] ,
45- [ 'Forum' , 'Une question ? Quelqu’un a la réponse.' ] ,
46- [ 'Discussions' , 'Carrière, outils, écosystème local.' ] ,
47- ] . map ( ( [ title , text ] , i ) => (
48- < div
49- key = { title }
50- className = "border-r border-paper/20 p-8 last:border-r-0 dark:border-line"
51- >
52- < dt className = "label text-js dark:text-ink" >
53- 0{ i + 1 } — { title }
54- </ dt >
55- < dd className = "mt-3 text-[15px] leading-snug text-paper/75 dark:text-ink-2" >
56- { text }
57- </ dd >
58- </ div >
59- ) ) }
60- </ dl >
61- </ aside >
35+ < aside className = "relative hidden overflow-hidden border-l border-ink bg-ink text-paper lg:flex lg:flex-col dark:bg-paper-2 dark:text-ink" >
36+ < div className = "flex items-start justify-between px-10 pt-10" >
37+ < p className = "label text-paper/60 dark:text-muted" > Fiche d’adhésion · N° 237</ p >
38+ < p className = "label text-paper/60 dark:text-muted" > 4.05° N · 9.70° E</ p >
39+ </ div >
40+
41+ < div className = "flex flex-1 flex-col justify-center px-10 py-16" >
42+ < p className = "text-[clamp(3rem,6vw,6.25rem)] font-extrabold tracking-[-0.055em]" >
43+ < span className = "block leading-[0.9]" > Le 237</ span >
44+ < span className = "mt-[0.35em] block font-mono text-[0.32em] leading-none font-medium tracking-[-0.02em] text-paper/70 dark:text-muted" >
45+ code en
46+ </ span >
47+ < span className = "mt-[0.14em] -ml-[0.1em] inline-block bg-js px-[0.1em] pt-[0.02em] pb-[0.1em] leading-[0.95] text-js-ink" >
48+ JavaScript.
49+ </ span >
50+ </ p >
51+ </ div >
52+
53+ < dl className = "grid grid-cols-1 border-t border-paper/20 xl:grid-cols-3 dark:border-line" >
54+ { PILLARS . map ( ( [ title , text ] , i ) => (
55+ < div
56+ key = { title }
57+ className = "border-t border-paper/20 px-10 py-6 first:border-t-0 xl:border-t-0 xl:border-l xl:py-8 xl:first:border-l-0 dark:border-line"
58+ >
59+ < dt className = "label text-js dark:text-ink" >
60+ 0{ i + 1 } — { title }
61+ </ dt >
62+ < dd className = "mt-3 text-[15px] leading-snug text-paper/75 dark:text-ink-2" >
63+ { text }
64+ </ dd >
65+ </ div >
66+ ) ) }
67+ </ dl >
68+ </ aside >
69+ </ div >
6270 < FlashToasts />
63- </ div >
71+ </ >
6472 )
6573}
0 commit comments