Premium minimalist landing page (brand + single CTA)

Replaces the generic card at / with a single-screen, centered brand moment:

- Brand animation: 'SmartMenu' rises in as the protagonist (bold sans, Smart in
  ink + Menu in terracotta), then a delicate Fraunces-italic 'by Collina'
  signature fades in surrounded by soft twinkling SVG sparkles (Magic-UI style),
  over a slow radial brand glow. Pure CSS keyframes + inline SVG — no animation
  libs, no extra deps; stays light (first thing a prospect loads).
- Single sales CTA 'Solicita una demo' → /demo placeholder (flow designed later).
- Easter egg: the admin panel has no visible button; tapping the 'by Collina'
  signature navigates to /admin (discreet <a aria-label=Collina href=/admin>).
- Accessible: prefers-reduced-motion shows the final state (no sequence, sparkles
  static). Responsive mobile→desktop. Uses the existing warm Collina palette.

Verified: build passes; / returns 200 with the wordmark, sparkles, demo CTA, and
the Collina→/admin link; reduced-motion CSS present in the bundle.
This commit is contained in:
Jorem Juárez committed 2026-06-15 20:36:00 -06:00
1 parent 8fc95c3cab
commit b30430a1ea
2 files changed
+160 -12

No files matched your search

+70
View File
@@ -84,6 +84,76 @@ body {
transform: rotateY(180deg);
}
/* ---- Landing page brand animation (lightweight, pure CSS) ---- */
@keyframes lp-rise {
from {
opacity: 0;
transform: translateY(16px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes lp-sparkle {
0%,
100% {
opacity: 0;
transform: scale(0.2) rotate(0deg);
}
50% {
opacity: 1;
transform: scale(1) rotate(90deg);
}
}
@keyframes lp-glow {
0%,
100% {
opacity: 0.45;
transform: scale(1);
}
50% {
opacity: 0.7;
transform: scale(1.08);
}
}
.lp-smart {
animation: lp-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.lp-sign {
animation: lp-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.7s both;
}
.lp-cta {
animation: lp-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 1.05s both;
}
.lp-glow {
animation: lp-glow 6s ease-in-out infinite;
}
.lp-sparkle {
animation: lp-sparkle 2.6s ease-in-out infinite both;
/* delay accompanies the "by Collina" entrance; staggered per-sparkle below */
animation-delay: 0.7s;
}
/* Respect reduced motion: show the final state, skip the sequence. */
@media (prefers-reduced-motion: reduce) {
.lp-smart,
.lp-sign,
.lp-cta {
animation: none;
opacity: 1;
transform: none;
}
.lp-glow {
animation: none;
}
.lp-sparkle {
animation: none;
opacity: 0.55;
}
}
/* hide horizontal scrollbar on section tabs */
.no-scrollbar::-webkit-scrollbar {
display: none;
+90 -12
View File
@@ -1,20 +1,98 @@
import Link from 'next/link';
// 4-point "magic" sparkle.
function Sparkle({
className,
style,
color,
size,
}: {
className?: string;
style?: React.CSSProperties;
color: string;
size: number;
}) {
return (
<svg
aria-hidden
width={size}
height={size}
viewBox="0 0 24 24"
fill="none"
className={className}
style={style}
>
<path
d="M12 0c.6 6 2.4 9 12 12-9.6 3-11.4 6-12 12-.6-6-2.4-9-12-12C9.6 9 11.4 6 12 0Z"
fill={color}
/>
</svg>
);
}
// Sparkles scattered around the "by Collina" signature.
const SPARKLES: { top: string; left: string; size: number; color: string; delay: string }[] = [
{ top: '-18px', left: '-6%', size: 16, color: '#f59e0b', delay: '0.7s' },
{ top: '4px', left: '102%', size: 20, color: '#fb7185', delay: '1.0s' },
{ top: '34px', left: '8%', size: 12, color: '#fcd34d', delay: '1.4s' },
{ top: '40px', left: '88%', size: 14, color: '#d97706', delay: '0.9s' },
{ top: '-10px', left: '52%', size: 10, color: '#fbbf24', delay: '1.7s' },
{ top: '24px', left: '-2%', size: 9, color: '#fda4af', delay: '2.1s' },
{ top: '-2px', left: '78%', size: 11, color: '#f59e0b', delay: '1.2s' },
];
export default function Home() {
return (
<main className="flex min-h-screen flex-col items-center justify-center gap-6 p-6 text-center">
<div className="glass max-w-md rounded-3xl p-8">
<h1 className="display text-3xl font-semibold">Menú inteligente</h1>
<p className="mt-2 text-sm text-[var(--text)]/65">
Menús digitales elegantes para restaurantes · Collina Systems
</p>
<Link
href="/admin"
className="mt-6 inline-block rounded-full bg-[var(--accent)] px-6 py-3 text-sm font-medium text-white"
>
Panel maestro
</Link>
<main className="relative flex min-h-screen flex-col items-center justify-center overflow-hidden px-6 text-center">
{/* Soft brand glow behind the wordmark */}
<div
aria-hidden
className="lp-glow pointer-events-none absolute h-[42rem] w-[42rem] rounded-full blur-3xl"
style={{
background:
'radial-gradient(circle, rgba(180,83,9,0.16), rgba(217,119,6,0.07) 45%, transparent 70%)',
}}
/>
<div className="relative flex flex-col items-center">
{/* SmartMenu — the protagonist */}
<h1 className="lp-smart text-5xl font-extrabold tracking-tight sm:text-7xl">
<span className="text-[var(--text)]">Smart</span>
<span className="text-[var(--accent)]">Menu</span>
</h1>
{/* by Collina — delicate signature + sparkles. Tapping it opens /admin. */}
<div className="lp-sign relative mt-4">
{SPARKLES.map((s, i) => (
<Sparkle
key={i}
className="lp-sparkle pointer-events-none absolute"
style={{ top: s.top, left: s.left, animationDelay: s.delay }}
color={s.color}
size={s.size}
/>
))}
<Link
href="/admin"
aria-label="Collina"
className="display relative select-none text-lg font-light italic text-[var(--text)]/55 transition hover:text-[var(--text)]/80"
>
by Collina
</Link>
</div>
</div>
{/* Single sales CTA */}
<Link
href="/demo"
className="lp-cta mt-14 rounded-full bg-[var(--accent)] px-8 py-4 text-sm font-semibold tracking-wide text-white shadow-lg shadow-[var(--accent)]/20 transition hover:-translate-y-0.5 hover:shadow-xl"
>
Solicita una demo
</Link>
<p className="lp-cta mt-6 max-w-xs text-xs text-[var(--text)]/45">
Menús digitales que tus comensales reconocen en cualquier restaurante.
</p>
</main>
);
}