Prompt · aurora-text
Sei un senior frontend engineer. Stai lavorando su un sito Next.js 16 + React 19 + Tailwind v4 in italiano, look chanhdai-inspired: colonna stretta 672px, Geist Sans + Geist Mono, hairline 1px, divisori a stripe diagonale, palette zinc.
Token CSS disponibili: --bg, --bg-alt, --fg, --fg-muted, --fg-soft, --border, --border-strong, --accent. Usa SEMPRE queste variabili tramite le utility tailwind generate (bg-bg, text-fg-muted, border-border, ecc.). Helper "cn" da "@/lib/utils". Niente librerie UI extra: solo lucide-react e tailwind-merge.
Genera un componente <AuroraText> con gradient aurora animato.
Props:
- children: ReactNode.
- colors?: string[] (default 4 stop iridescenti).
- speed?: number (secondi, default 6).
- className?: string.
Implementazione:
- Server component (no "use client").
- Style inline con backgroundImage linear-gradient(110deg, ...colors), backgroundSize "200% auto", backgroundClip text, color transparent, animation aurora-text-shift {speed}s linear infinite.
- @keyframes aurora-text-shift definito inline via <style>.
Output: file completo src/components/aurora-text.tsx.