11import Image from "next/image" ;
22import { AnimatedShinyText } from "@/components/magicui/animated-shiny-text" ;
33import { cn } from "@/lib/utils" ;
4- import { ArrowRightIcon , Heart } from "lucide-react" ;
4+ import { ArrowRightIcon } from "lucide-react" ;
55import Link from "next/link" ;
66import { DotPattern } from "@/components/magicui/dot-pattern" ;
77import { Button } from "@/components/ui/button" ;
8+
89export default function Header ( ) {
910 return (
10- < div className = "relative" >
11+ < div className = "relative px-4 sm:px-6 lg:px-8 " >
1112 < DotPattern
1213 className = { cn (
1314 "absolute inset-0 -z-10 [mask-image:radial-gradient(500px_circle_at_center,white,transparent)]" ,
1415 ) }
1516 />
16- < section id = "header" className = "flex flex-col items-center justify-center gap-8 py-24 md:py- 32 lg:py -40" >
17- < div >
17+ < section id = "header" className = "flex flex-col items-center justify-center gap-8 pt- 32 lg:pt -40 pb-20 sm:pb-28 md:pb-32 " >
18+ < div className = "w-full max-w-4xl" >
1819 < div className = "z-10 flex items-center justify-center mb-2" >
1920 < div
2021 className = { cn (
@@ -29,67 +30,73 @@ export default function Header() {
2930 </ Link >
3031 </ div >
3132 </ div >
32- < div className = "text-center" >
33- < h1 className = "scroll-m-20 text-4xl max-w-3xl mx-auto text-dark font-extrabold tracking-tight lg: text-6xl " >
33+ < div className = "text-center px-2 " >
34+ < h1 className = "text-3xl sm: text-4xl lg: text-6xl font-extrabold tracking-tight text-dark max-w-3xl mx-auto " >
3435 Votre Serveur Minecraft Open-Source
3536 </ h1 >
36- < p className = "leading-7 max-w-xl mx-auto [&:not(:first-child)]:mt-6 tracking-tight" >
37+ < p className = "mt-4 leading-7 text-base sm:text-lg max-w-xl mx-auto tracking-tight text-muted-foreground " >
3738 OpenMC est un projet communautaire open-source dédié à la création d'un serveur Minecraft innovant et collaboratif.
3839 </ p >
39- < div className = "m-4 gap-2 flex items-center justify-center" >
40- < Button className = "group" >
40+ < div className = "mt-6 flex flex-col sm: flex-row gap-3 justify-center items -center" >
41+ < Button className = "group w-full sm:w-auto " >
4142 Rejoindre le Serveur
4243 < ArrowRightIcon
4344 className = "-me-1 opacity-60 transition-transform group-hover:translate-x-0.5"
4445 size = { 16 }
4546 aria-hidden = "true"
4647 />
4748 </ Button >
48- < Button variant = "secondary" className = "group" asChild >
49- < Link href = "https://github.com/ServerOpenMC/" target = "_blank" >
49+ < Button variant = "secondary" className = "group w-full sm:w-auto " asChild >
50+ < Link href = "https://github.com/ServerOpenMC/" target = "_blank" className = "flex items-center" >
5051 Contribuer
51- < Heart
52- className = "-me-1 opacity-60 transition-transform group-hover:translate-x-0.5"
53- size = { 16 }
54- aria-hidden = "true"
55- />
52+ < svg
53+ xmlns = "http://www.w3.org/2000/svg"
54+ width = "24"
55+ height = "24"
56+ viewBox = "0 0 24 24"
57+ fill = "none"
58+ stroke = "currentColor"
59+ strokeWidth = "2"
60+ strokeLinecap = "round"
61+ strokeLinejoin = "round"
62+ className = "ml-1 opacity-60 transition-transform heart-icon"
63+ >
64+ < path d = "M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z" />
65+ </ svg >
5666 </ Link >
5767 </ Button >
5868 </ div >
5969 </ div >
6070 </ div >
61- < div className = "mt-8 relative" >
71+
72+ < div className = "mt-10 w-full max-w-5xl relative rounded-4xl overflow-hidden" >
6273 < Image
6374 src = { `./placeholder/homepage.webp` }
6475 alt = "Placeholder"
6576 width = { 1280 }
66- height = { 50 }
77+ height = { 720 }
6778 quality = { 100 }
68- className = "rounded-4xl"
79+ className = "w-full h-auto rounded-4xl object-cover "
6980 />
70- < div className = "absolute inset-0 bg-gradient-to-b from-transparent to-background rounded-4xl pointer-events-none" > </ div >
81+ < div className = "absolute inset-0 bg-gradient-to-b from-transparent to-background pointer-events-none" / >
7182 </ div >
72- < section className = "flex flex-col items-center justify-center py-16" >
73- < h2 className = "text-2xl font-bold tracking-tight text-center lg:text-4xl" >
83+
84+ < section className = "flex flex-col items-center justify-center py-16 w-full px-4" >
85+ < h2 className = "text-2xl sm:text-3xl lg:text-4xl font-bold tracking-tight text-center" >
7486 Quelques Chiffres Clés
7587 </ h2 >
76- < div className = "grid grid-cols-1 gap-8 mt-8 sm:grid-cols-2 lg:grid-cols-4" >
77- < div className = "text-center" >
78- < p className = "text-4xl font-extrabold text-primary" > 34+</ p >
79- < p className = "text-sm font-medium text-muted-foreground" > Contributeurs</ p >
80- </ div >
81- < div className = "text-center" >
82- < p className = "text-4xl font-extrabold text-primary" > 7+</ p >
83- < p className = "text-sm font-medium text-muted-foreground" > Répertoires</ p >
84- </ div >
85- < div className = "text-center" >
86- < p className = "text-4xl font-extrabold text-primary" > 1M+</ p >
87- < p className = "text-sm font-medium text-muted-foreground" > Téléchargements</ p >
88- </ div >
89- < div className = "text-center" >
90- < p className = "text-4xl font-extrabold text-primary" > 99%</ p >
91- < p className = "text-sm font-medium text-muted-foreground" > Satisfaction</ p >
92- </ div >
88+ < div className = "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-8 mt-10 w-full max-w-5xl" >
89+ { [
90+ { number : "34+" , label : "Contributeurs" } ,
91+ { number : "7+" , label : "Répertoires" } ,
92+ { number : "1M+" , label : "Téléchargements" } ,
93+ { number : "99%" , label : "Satisfaction" } ,
94+ ] . map ( ( item , i ) => (
95+ < div key = { i } className = "text-center" >
96+ < p className = "text-4xl font-extrabold text-primary" > { item . number } </ p >
97+ < p className = "text-sm font-medium text-muted-foreground" > { item . label } </ p >
98+ </ div >
99+ ) ) }
93100 </ div >
94101 </ section >
95102 </ section >
0 commit comments