Preskoči na glavni sadržaj
← 🎨 CSS as a design system·Modul B9 · Lekcija 8
ZadatakBuild a hero. .hero has padding clamp(2rem, 8vw, 6rem) clamp(1rem, 4vw, 3rem), text-align center, min-height 60vh, display flex, flex-direction column, justify-content center, gap var(--space-lg), background linear-gradient(135deg, primary 0%, accent 100%), color white. .hero h1 has font-size clamp(2rem, 6vw + 1rem, 4.5rem), font-weight 800, letter-spacing -0.02em, line-height 1.1, text-wrap balance, max-width 22ch, margin 0 auto. .hero p has font-size clamp(1rem, 2vw + 0.5rem, 1.25rem), opacity 0.9, max-width 50ch, margin 0 auto, text-wrap pretty. .hero .ctas display flex, gap var(--space-md), justify-content center, flex-wrap wrap. @keyframes appear from opacity 0 translateY 20px to opacity 1 translateY 0. Stagger animations on h1, p, ctas (delays 0/0.15/0.30s). reduced-motion override.

Capstone 8: Dio heroja s ulaznom animacijom

200 XP14 min
Teorija

A landing-page hero that wins attention

  • Fluid h1 with text-wrap: balance.
  • Subtitle with text-wrap: pretty.
  • Two CTAs (primary + secondary).
  • Entrance animation: stagger fade + slide.
  • All respects prefers-reduced-motion.
🔒

Registriraj se i počni kodirati

Teorija je otvorena svima. Editor, pregled uživo i provjera otključavaju se s 7-dnevnim besplatnim probnim periodom — potrebna kartica, otkaži kad god.

Registracija — besplatan probni period →

Prvih 10 lekcija u svakom smjeru je besplatno. Bez kartice.

← PrethodnaSljedeća lekcija →

Jedan Python ili web savjet dnevno — emailom

Kratko, ručno pisano, bez spama. Odjavi se jednim klikom.