The page is responsive. Now add the motion at the end of the CSS: .card: transition: transform 0.3s ease; .card:hover: transform: translateY(-6px); @keyframes fade-in from opacity: 0 and transform: translateY(20px) to opacity: 1 and transform: translateY(0). .hero: animation: fade-in 0.8s …
The page has all the CSS from lessons 9.1 and 9.2. At the end of the CSS add: .hero h1: font-size: clamp(28px, 6vw, 48px); A media query @media (max-width: 700px) containing .site-header with flex-direction: column and gap: 8px, and .menu-grid, …
The header is done. Now add the grids: .menu, .about: padding: 32px 24px. .menu-grid: display: grid, grid-template-columns: repeat(3, 1fr), gap: 20px. .card: padding: 16px, border-radius: var(–radius), white background, box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1). .price: bold, color: var(–accent). …
The page has the CSS from lesson 9.1. Add the header layout below it: .site-header: display: flex, justify-content: space-between, align-items: center, padding: 16px 24px, background-color: white. .nav: display: flex, gap: 20px, list-style: none, margin: 0, padding: 0. .nav a: color: …
Your tokens and base styles are done. Now add the first components (after the existing rules): .logo: font-size: 22px, bold, color: var(–coffee), no underline. .hero: padding: 48px 24px, text-align: center, background-color: #f3e3cf. .btn: display: inline-block, padding: 12px 24px, border-radius: 999px, …
Start the Selam Café stylesheet. :root: –coffee: #6f4e37; –cream: #fdf6ec; –accent: #d97706; –text: #2b2118; –radius: 12px; *: box-sizing: border-box; body: margin: 0, font-family: Arial, sans-serif, background-color: var(–cream), color: var(–text), line-height: 1.5. h1, h2, h3: color: var(–coffee).
Fill in the empty sections of this organised stylesheet. Variables: :root with –brand: #7c3aed; Components: .card with padding: 16px, border-radius: 12px and background #f5f3ff; .card-title with color: var(–brand); .card-price with font-weight: bold.
Write one button component and one modifier. .btn: display: inline-block, padding: 10px 20px, border: 2px solid #b45309, border-radius: 8px, background-color: #b45309, color: white, text-decoration: none. .btn-outline (written after .btn): background-color: transparent, color: #b45309.
Polish the Selam Tours page. The top bar is exactly 60px high. .hero: min-height: calc(100vh – 60px); so the hero fills the rest of the screen. New rule .hero h1: font-size: clamp(2rem, 7vw, 4rem); .card: padding: max(12px, 3vw);
Make Ruta’s bakery card fluid. .menu: width: min(90%, 600px); New rule .menu h1: font-size: clamp(24px, 5vw, 40px); .note: width: calc(100% – 32px);
