Files
lokiloto/components/loki-hero-mark.tsx
T
Nazim KriandClaude Sonnet 5 8a45c331c3 Add a real hero landing section with large mascot, slogan, CTA
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 <noreply@anthropic.com>
2026-10-30 09:17:25 -04:00

53 lines
2.2 KiB
TypeScript

/**
* 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 (
<svg viewBox="0 0 400 400" fill="none" className={className} aria-hidden="true">
{/* Back glow */}
<circle cx="200" cy="210" r="170" fill="var(--accent-soft)" />
{/* Ears */}
<path d="M100 60 L170 150 L120 170 Z" fill="currentColor" />
<path d="M300 60 L230 150 L280 170 Z" fill="currentColor" />
<path d="M118 90 L160 148 L132 158 Z" fill="var(--background)" opacity="0.35" />
<path d="M282 90 L240 148 L268 158 Z" fill="var(--background)" opacity="0.35" />
{/* Head */}
<path
d="M200 110
C 270 110 310 165 310 225
C 310 300 260 340 200 340
C 140 340 90 300 90 225
C 90 165 130 110 200 110 Z"
fill="currentColor"
/>
{/* Cheek markings */}
<path d="M90 225 C 90 270 115 305 150 325 L 140 260 Z" fill="var(--background)" opacity="0.18" />
<path d="M310 225 C 310 270 285 305 250 325 L 260 260 Z" fill="var(--background)" opacity="0.18" />
{/* Muzzle */}
<path
d="M160 255 C 160 290 178 312 200 312 C 222 312 240 290 240 255 C 240 235 222 222 200 222 C 178 222 160 235 160 255 Z"
fill="var(--background)"
/>
<ellipse cx="200" cy="258" rx="14" ry="10" fill="currentColor" />
{/* Eyes */}
<ellipse cx="160" cy="210" rx="16" ry="20" fill="var(--background)" />
<ellipse cx="240" cy="210" rx="16" ry="20" fill="var(--background)" />
<circle cx="162" cy="214" r="8" fill="currentColor" />
<circle cx="238" cy="214" r="8" fill="currentColor" />
<circle cx="165" cy="210" r="2.5" fill="var(--background)" />
<circle cx="241" cy="210" r="2.5" fill="var(--background)" />
{/* Eyebrows — trickster tilt */}
<path d="M140 182 Q 160 170 180 180" stroke="currentColor" strokeWidth="6" strokeLinecap="round" />
<path d="M260 182 Q 240 170 220 180" stroke="currentColor" strokeWidth="6" strokeLinecap="round" />
</svg>
)
}