From c5bd94ec69ef59cbd8319176dbc0bb71cdcdc537 Mon Sep 17 00:00:00 2001 From: Julien Froidefond Date: Mon, 8 Dec 2025 17:22:14 +0100 Subject: [PATCH] Translate event details and UI text to French, including event names, descriptions, and status labels. Update navigation styles for consistency. --- components/EventsPageSection.tsx | 73 ++++++++++------- components/EventsSection.tsx | 15 ++-- components/HeroSection.tsx | 9 ++- components/Navigation.tsx | 14 ++-- components/PlayerStats.tsx | 133 +++++++++++++++++++++++++++++++ 5 files changed, 196 insertions(+), 48 deletions(-) create mode 100644 components/PlayerStats.tsx diff --git a/components/EventsPageSection.tsx b/components/EventsPageSection.tsx index 67611ca..0eb4183 100644 --- a/components/EventsPageSection.tsx +++ b/components/EventsPageSection.tsx @@ -12,55 +12,55 @@ interface Event { const events: Event[] = [ { id: 1, - date: "NOVEMBER 18th, 2023", - name: "Tech Innovation Summit", + date: "18 NOVEMBRE 2023", + name: "Sommet de l'Innovation Tech", description: - "Join industry leaders and innovators for a day of cutting-edge technology discussions, AI breakthroughs, and networking opportunities.", + "Rejoignez les leaders de l'industrie et les innovateurs pour une journée de discussions sur les technologies de pointe, les percées de l'IA et des opportunités de networking.", type: "summit", status: "past", }, { id: 2, - date: "DECEMBER 3rd, 2023", - name: "AI Revolution Launch", + date: "3 DÉCEMBRE 2023", + name: "Lancement de la Révolution IA", description: - "Witness the launch of revolutionary AI systems that will reshape the gaming landscape. Exclusive previews and early access opportunities.", + "Assistez au lancement de systèmes d'IA révolutionnaires qui vont remodeler le paysage du gaming. Aperçus exclusifs et opportunités d'accès anticipé.", type: "launch", status: "past", }, { id: 3, - date: "DECEMBER 22nd, 2023", - name: "Winter Code Festival", + date: "22 DÉCEMBRE 2023", + name: "Festival du Code d'Hiver", description: - "A celebration of coding excellence with hackathons, coding challenges, and prizes. Showcase your skills and compete with the best developers.", + "Une célébration de l'excellence en programmation avec des hackathons, des défis de codage et des prix. Montrez vos compétences et rivalisez avec les meilleurs développeurs.", type: "festival", status: "past", }, { id: 4, - date: "JANUARY 15th, 2024", - name: "Quantum Computing Expo", + date: "15 JANVIER 2024", + name: "Expo Informatique Quantique", description: - "Explore the future of quantum computing in gaming. Interactive demos, expert talks, and hands-on workshops for all skill levels.", + "Explorez l'avenir de l'informatique quantique dans le gaming. Démonstrations interactives, conférences d'experts et ateliers pratiques pour tous les niveaux.", type: "summit", status: "upcoming", }, { id: 5, - date: "FEBRUARY 8th, 2024", - name: "Cyber Arena Championship", + date: "8 FÉVRIER 2024", + name: "Championnat Cyber Arena", description: - "The ultimate competitive gaming event. Compete for glory, exclusive rewards, and the title of Cyber Arena Champion. Registration now open.", + "L'événement de gaming compétitif ultime. Compétissez pour la gloire, des récompenses exclusives et le titre de Champion Cyber Arena. Inscriptions ouvertes.", type: "competition", status: "upcoming", }, { id: 6, - date: "MARCH 12th, 2024", - name: "Spring Tech Gala", + date: "12 MARS 2024", + name: "Gala Tech du Printemps", description: - "An elegant evening celebrating technological achievements. Awards ceremony, networking, and exclusive announcements from top tech companies.", + "Une soirée élégante célébrant les réalisations technologiques. Cérémonie de remise de prix, networking et annonces exclusives des plus grandes entreprises tech.", type: "festival", status: "upcoming", }, @@ -81,24 +81,39 @@ const getEventTypeColor = (type: Event["type"]) => { } }; +const getEventTypeLabel = (type: Event["type"]) => { + switch (type) { + case "summit": + return "Sommet"; + case "launch": + return "Lancement"; + case "festival": + return "Festival"; + case "competition": + return "Compétition"; + default: + return type; + } +}; + const getStatusBadge = (status: Event["status"]) => { switch (status) { case "upcoming": return ( - Upcoming + À venir ); case "live": return ( - Live Now + En direct ); case "past": return ( - Past + Passé ); } @@ -134,12 +149,12 @@ export default function EventsPageSection() {
- Upcoming & Past Events + Événements à venir et passés

- Join us for exciting tech events, competitions, and celebrations - throughout the year + Rejoignez-nous pour des événements tech passionnants, des + compétitions et des célébrations tout au long de l'année

@@ -163,7 +178,7 @@ export default function EventsPageSection() {
{getStatusBadge(event.status)} - {event.type} + {getEventTypeLabel(event.type)}
@@ -185,17 +200,17 @@ export default function EventsPageSection() { {/* Action Button */} {event.status === "upcoming" && ( )} {event.status === "live" && ( )} {event.status === "past" && ( )} @@ -206,7 +221,7 @@ export default function EventsPageSection() { {/* Footer Info */}

- Stay updated with our latest events and announcements + Restez informé de nos derniers événements et annonces

diff --git a/components/EventsSection.tsx b/components/EventsSection.tsx index 51bcd98..6e84e8b 100644 --- a/components/EventsSection.tsx +++ b/components/EventsSection.tsx @@ -7,16 +7,16 @@ interface Event { const events: Event[] = [ { - date: "NOVEMBER 18th, 2023", - name: "Tech Innovation Summit", + date: "18 NOVEMBRE 2023", + name: "Sommet de l'Innovation Tech", }, { - date: "DECEMBER 3rd, 2023", - name: "AI Revolution Launch", + date: "3 DÉCEMBRE 2023", + name: "Lancement de la Révolution IA", }, { - date: "DECEMBER 22nd, 2023", - name: "Winter Code Festival", + date: "22 DÉCEMBRE 2023", + name: "Festival du Code d'Hiver", }, ]; @@ -29,7 +29,7 @@ export default function EventsSection() {
- Event + Événement
@@ -46,4 +46,3 @@ export default function EventsSection() { ); } - diff --git a/components/HeroSection.tsx b/components/HeroSection.tsx index f8de4d7..9076f80 100644 --- a/components/HeroSection.tsx +++ b/components/HeroSection.tsx @@ -37,10 +37,11 @@ export default function HeroSection() { {/* Description */}

- In a digital world of cutting-edge technology, where AI systems are - evolving and ancient code awaits discovery. Go on an epic journey to - forge alliances, conquer challenges and tell your story of innovation - as part of a flourishing tech gaming community. + Dans un monde numérique de technologie de pointe, où les systèmes d'IA + évoluent et où d'anciens codes attendent d'être découverts. Partez + pour un voyage épique pour forger des alliances, conquérir des défis + et raconter votre histoire d'innovation au sein d'une communauté de + gaming tech florissante.

{/* Call-to-Action Buttons */} diff --git a/components/Navigation.tsx b/components/Navigation.tsx index 11171b7..8a9888e 100644 --- a/components/Navigation.tsx +++ b/components/Navigation.tsx @@ -1,15 +1,17 @@ "use client"; +import PlayerStats from "./PlayerStats"; + export default function Navigation() { return ( -