Make an eye-catching ticket button. In :root define –accent: #e11d48; .ticket-btn: background-color: var(–accent), border-radius: 12px, any box-shadow, and transition: transform 0.2s ease. .ticket-btn:hover: transform: scale(1.05).
Turn the photos into a responsive grid. .gallery: display: grid, grid-template-columns: repeat(3, 1fr), gap: 12px. .wide: spans two columns with grid-column: span 2. Add a media query @media (max-width: 600px) in which .gallery has grid-template-columns: 1fr.
Lay out the bus ticket from Asmara to Keren. .ticket: position: relative. .tag: position: absolute, top: 10px, right: 10px. .route: a flex container with justify-content: space-between and align-items: center. .seat: hide it completely with display.
Style the chess club notice. .notice: box-sizing: border-box, padding: 20px, border: 3px solid #1d4ed8 and background-color: #eff6ff (keep width: 320px). .notice h2: colour #1d4ed8 and text-transform: uppercase. .when: font-style: italic. Make only the first list item bold, using the :first-child …
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).
