Project: Landing Page Styles
Style a landing page: hero with gradient, centred content, feature grid and a call to action button. Use variables for colours so the theme is easy to change.
Example
<style>
:root { --accent: #04AA6D } .hero { text-align: center; padding: 24px; background: linear-gradient(135deg, #0f766e, #0f172a) } .cta { display: inline-block; margin-top: 8px; padding: 8px 16px; background: var(--accent); color: #fff; border-radius: 6px; text-decoration: none }
</style>
<section class="hero"><h2>Learn to code</h2><a class="cta" href="#">Start free</a></section>Exercise
Read a variable.
background: (--accent);
Quiz Test
These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.