|
1 | 1 | import Header from "@/components/header" |
2 | 2 | import { Button } from "@/components/ui/button" |
| 3 | +import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card" |
3 | 4 | import { NavItemsBuilder } from "@/lib/routing-links" |
| 5 | +import { Activity, Database, Scan, Send } from "lucide-react" |
4 | 6 | import Link from "next/link" |
5 | 7 |
|
6 | 8 | export default async function Home() { |
7 | 9 | const navigation = new NavItemsBuilder().withHome().getItems() |
8 | 10 |
|
| 11 | + const features = [ |
| 12 | + { |
| 13 | + icon: <Activity className="w-6 h-6" />, |
| 14 | + title: "Suivi des métriques", |
| 15 | + description: "Analysez l'évolution des performances de vos sites", |
| 16 | + href: "/suivi", |
| 17 | + }, |
| 18 | + { |
| 19 | + icon: <Database className="w-6 h-6" />, |
| 20 | + title: "Import de données", |
| 21 | + description: "Importez vos rapports Lighthouse", |
| 22 | + href: "/ajout", |
| 23 | + }, |
| 24 | + { |
| 25 | + icon: <Scan className="w-6 h-6" />, |
| 26 | + title: "Analyse rapide", |
| 27 | + description: "Testez instantanément n'importe quel site", |
| 28 | + href: "/scan", |
| 29 | + }, |
| 30 | + ] |
| 31 | + |
9 | 32 | return ( |
10 | 33 | <> |
11 | 34 | <Header navigation={navigation} /> |
12 | | - <main className="min-h-[calc(100vh-8rem)] flex flex-col items-center justify-center bg-gradient-to-b from-white to-gray-50"> |
13 | | - <div className="text-center p-8"> |
14 | | - <h1 className="text-6xl font-bold text-gray-900 mb-4"> |
| 35 | + <main className="min-h-[calc(100vh-8rem)] flex flex-col gap-8 items-center justify-center bg-gradient-to-b from-white to-gray-50"> |
| 36 | + {/* Hero section */} |
| 37 | + <div className="text-center"> |
| 38 | + <h1 className="text-6xl font-bold text-gray-900"> |
15 | 39 | <span className="text-green-600">Eco</span>Track |
16 | 40 | </h1> |
17 | | - |
18 | | - <p className="text-xl text-gray-600 mx-auto mb-8"> |
| 41 | + <p className="text-xl text-gray-600 mx-auto max-w-2xl"> |
19 | 42 | {"Suivez et optimisez la performance environnementale de vos applications web"} |
20 | 43 | </p> |
| 44 | + </div> |
| 45 | + |
| 46 | + {/* Section features */} |
| 47 | + <div className="w-full max-w-6xl"> |
| 48 | + <div className="flex flex-wrap gap-6"> |
| 49 | + {features.map((feature, index) => ( |
| 50 | + <Link href={feature.href} key={index}> |
| 51 | + <Card className="h-full hover:shadow-lg transition-shadow duration-200 w-[350px]"> |
| 52 | + <CardHeader> |
| 53 | + <CardTitle className="flex justify-center"> |
| 54 | + <div className="bg-green-100 rounded-lg p-3">{feature.icon}</div> |
| 55 | + </CardTitle> |
| 56 | + </CardHeader> |
| 57 | + <CardContent className="flex flex-col items-center text-center"> |
| 58 | + <h3 className="font-semibold text-lg">{feature.title}</h3> |
| 59 | + <p className="text-muted-foreground">{feature.description}</p> |
| 60 | + </CardContent> |
| 61 | + </Card> |
| 62 | + </Link> |
| 63 | + ))} |
| 64 | + </div> |
| 65 | + </div> |
21 | 66 |
|
22 | | - <Link href="/suivi"> |
23 | | - <Button size="lg" className="text-lg px-8 py-6"> |
24 | | - {"Démarrer le suivi"} |
25 | | - <svg |
26 | | - className="ml-2 h-5 w-5" |
27 | | - fill="none" |
28 | | - stroke="currentColor" |
29 | | - viewBox="0 0 24 24" |
30 | | - xmlns="http://www.w3.org/2000/svg" |
| 67 | + {/* Section contact */} |
| 68 | + <div className="w-full max-w-2xl"> |
| 69 | + <Card className="bg-gradient-to-r from-green-50 to-blue-50"> |
| 70 | + <CardHeader> |
| 71 | + <CardTitle className="flex justify-center"> |
| 72 | + <Send className="w-6 h-6 text-green-600" /> |
| 73 | + </CardTitle> |
| 74 | + </CardHeader> |
| 75 | + <CardContent className="flex flex-col gap-4 text-center"> |
| 76 | + <h3 className="font-semibold text-lg">{"Besoin d'aide ?"}</h3> |
| 77 | + <p className="text-muted-foreground"> |
| 78 | + {"Des questions ou des suggestions pour améliorer EcoTrack ?"} |
| 79 | + </p> |
| 80 | + <a |
| 81 | + href="https://www.alextraveylan.fr/fr/contact" |
| 82 | + target="_blank" |
| 83 | + rel="noopener noreferrer" |
| 84 | + className="inline-block" |
31 | 85 | > |
32 | | - <path |
33 | | - strokeLinecap="round" |
34 | | - strokeLinejoin="round" |
35 | | - strokeWidth={2} |
36 | | - d="M13 7l5 5m0 0l-5 5m5-5H6" |
37 | | - /> |
38 | | - </svg> |
39 | | - </Button> |
40 | | - </Link> |
| 86 | + <Button variant="outline" className="gap-2"> |
| 87 | + {"Contactez-moi"} |
| 88 | + <Send className="w-4 h-4" /> |
| 89 | + </Button> |
| 90 | + </a> |
| 91 | + </CardContent> |
| 92 | + </Card> |
41 | 93 | </div> |
42 | 94 | </main> |
43 | 95 | </> |
|
0 commit comments