Landing redesign: animated hero, draw cards, how-it-works, footer
Keeps only countries with archived results (Québec, France, US, Spain, Portugal). The landing gets motion and a real structure: staggered fade-in hero with a floating Loki, twinkling stars, a shimmering gold CTA and counters that tick up (draws archived, lotteries, countries); draw cards in place of the table, with lottery balls dropping in and a lift-on-hover; a three-step "Comment ça marche"; and a site-wide footer with links, covered countries, responsible-play note and 18+ notice. All motion is disabled under prefers-reduced-motion. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
302915d888
commit
ad214a24dd
+63
-1
@@ -146,4 +146,66 @@
|
||||
html {
|
||||
@apply font-sans;
|
||||
}
|
||||
}
|
||||
}
|
||||
/* ---- Motion ---------------------------------------------------------- */
|
||||
@keyframes loki-fade-up {
|
||||
from { opacity: 0; transform: translateY(14px); }
|
||||
to { opacity: 1; transform: translateY(0); }
|
||||
}
|
||||
@keyframes loki-float {
|
||||
0%, 100% { transform: translateY(0); }
|
||||
50% { transform: translateY(-10px); }
|
||||
}
|
||||
@keyframes loki-ball-drop {
|
||||
0% { opacity: 0; transform: translateY(-18px) scale(0.6); }
|
||||
60% { opacity: 1; transform: translateY(3px) scale(1.06); }
|
||||
100% { transform: translateY(0) scale(1); }
|
||||
}
|
||||
@keyframes loki-shimmer {
|
||||
from { transform: translateX(-120%) skewX(-20deg); }
|
||||
to { transform: translateX(220%) skewX(-20deg); }
|
||||
}
|
||||
@keyframes loki-glow {
|
||||
0%, 100% { opacity: 0.35; transform: scale(1); }
|
||||
50% { opacity: 0.6; transform: scale(1.08); }
|
||||
}
|
||||
@keyframes loki-twinkle {
|
||||
0%, 100% { opacity: 0.15; }
|
||||
50% { opacity: 0.9; }
|
||||
}
|
||||
|
||||
@utility animate-fade-up {
|
||||
animation: loki-fade-up 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
|
||||
}
|
||||
@utility animate-float {
|
||||
animation: loki-float 5s ease-in-out infinite;
|
||||
}
|
||||
@utility animate-ball-drop {
|
||||
animation: loki-ball-drop 0.55s cubic-bezier(0.3, 1.4, 0.5, 1) both;
|
||||
}
|
||||
@utility animate-glow {
|
||||
animation: loki-glow 4s ease-in-out infinite;
|
||||
}
|
||||
@utility animate-twinkle {
|
||||
animation: loki-twinkle 3s ease-in-out infinite;
|
||||
}
|
||||
/* Gold sweep across a button; the element needs relative + overflow-hidden. */
|
||||
@utility shimmer {
|
||||
&::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
width: 40%;
|
||||
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
|
||||
animation: loki-shimmer 2.8s ease-in-out infinite;
|
||||
pointer-events: none;
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
*, *::before, *::after {
|
||||
animation-duration: 0.01ms !important;
|
||||
animation-iteration-count: 1 !important;
|
||||
transition-duration: 0.01ms !important;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user