From 8a45c331c3a94a81fa360dd97118cbe7c6b83c93 Mon Sep 17 00:00:00 2001 From: Nazim Kri Date: Fri, 30 Oct 2026 09:17:25 -0400 Subject: [PATCH] Add a real hero landing section with large mascot, slogan, CTA MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The homepage went straight into a dense dashboard with no brand identity up front — user feedback was blunt: "c'est quoi ça, j'ai demandé une belle landing page et interface." Adds a proper hero above the existing dashboard: a large, more detailed mascot illustration (LokiHeroMark, distinct from the small LokiMark used in the header), a real headline + tagline, "Rejoindre l'armée" / "Voir le classement" CTAs, and big-number stats (army size, country count, total wins). Brand-neutral gold accent, not tied to the selected country's color — the hero is identity, not data. Co-Authored-By: Claude Sonnet 5 --- app/page.tsx | 100 +++++++++++++++++++--------------- components/hero.tsx | 85 +++++++++++++++++++++++++++++ components/loki-hero-mark.tsx | 52 ++++++++++++++++++ 3 files changed, 192 insertions(+), 45 deletions(-) create mode 100644 components/hero.tsx create mode 100644 components/loki-hero-mark.tsx diff --git a/app/page.tsx b/app/page.tsx index d213bdd..51c4fd0 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -6,6 +6,7 @@ import { listFollowedPicks } from "@/lib/follows" import { CountryNav, CountryNavMobile } from "@/components/country-nav" import { LotteryResultsPanel } from "@/components/lottery-results-panel" import { AppHeader } from "@/components/app-header" +import { Hero } from "@/components/hero" import { Skeleton } from "@/components/ui/skeleton" export const instant = false @@ -35,62 +36,71 @@ async function HomeContent({ activeCode }: { activeCode: string }) { const totalWins = lotteries.reduce((sum, l) => sum + l.lifetime.wins, 0) const totalTracked = lotteries.reduce((sum, l) => sum + l.lifetime.picksTracked, 0) const countryMembers = feed.army.byCountry[activeCode] ?? 0 + const globalWins = feed.lotteries.reduce((sum, l) => sum + l.lifetime.wins, 0) const follows = member ? await listFollowedPicks(member.id) : [] const followedKeys = new Set(follows.map((f) => `${f.lotteryId}:${f.targetDrawDate}`)) return ( -
-
- -
+ <> + +
+
+ +
-
- +
+ -
-
-

{theme.name}

-

- {lotteries.length} loterie{lotteries.length === 1 ? "" : "s"} suivie - {lotteries.length === 1 ? "" : "s"} +

+
+

{theme.name}

+

+ {lotteries.length} loterie{lotteries.length === 1 ? "" : "s"} suivie + {lotteries.length === 1 ? "" : "s"} +

+
+ +
+ + + 0 ? `${totalWins} / ${totalTracked}` : "—"} + label="Grilles gagnantes" + /> +
+ + {lotteries.length > 0 ? ( + + ) : ( +
+ Aucune loterie suivie pour {theme.name} pour le moment. +
+ )} + +

+ Données fournies par LokiLab. Statistiques descriptives seulement — aucune garantie + de gain.

- -
- - - 0 ? `${totalWins} / ${totalTracked}` : "—"} - label="Grilles gagnantes" - /> -
- - {lotteries.length > 0 ? ( - - ) : ( -
- Aucune loterie suivie pour {theme.name} pour le moment. -
- )} - -

- Données fournies par LokiLab. Statistiques descriptives seulement — aucune garantie - de gain. -

-
+ ) } diff --git a/components/hero.tsx b/components/hero.tsx new file mode 100644 index 0000000..2f30b6a --- /dev/null +++ b/components/hero.tsx @@ -0,0 +1,85 @@ +import Link from "next/link" +import { LokiHeroMark } from "@/components/loki-hero-mark" +import { Button } from "@/components/ui/button" +import { Users, Trophy, Globe } from "lucide-react" + +export function Hero({ + armyTotal, + countryCount, + totalWins, + isAuthenticated, +}: { + armyTotal: number + countryCount: number + totalWins: number + isAuthenticated: boolean +}) { + return ( +
+
+
+
+

+ Le tricheur des loteries +

+

+ Loki lit les tirages. +
+ Vous décidez si vous le suivez. +

+

+ Statistiques, pronostics et historique de loterie, pays par pays. Rejoignez + l'armée, suivez les choix de Loki, grimpez au classement. +

+ +
+ {!isAuthenticated && ( + + )} + +
+ +
+ + + +
+
+ +
+ +
+
+
+ ) +} + +function HeroStat({ + icon: Icon, + value, + label, +}: { + icon: typeof Users + value: string + label: string +}) { + return ( +
+ +
+

{value}

+

{label}

+
+
+ ) +} diff --git a/components/loki-hero-mark.tsx b/components/loki-hero-mark.tsx new file mode 100644 index 0000000..073cdf9 --- /dev/null +++ b/components/loki-hero-mark.tsx @@ -0,0 +1,52 @@ +/** + * Large-format hero illustration of the mascot — more detail than LokiMark + * (which is tuned for 20-24px). Same palette-swap contract: every fill is + * currentColor or a var(), never a hardcoded country color. + */ +export function LokiHeroMark({ className }: { className?: string }) { + return ( + + ) +}