🏗 Day 21 : Final Project: Responsive Landing Page

🏗 Day 21 — Final Project: Responsive Landing Page

Congratulations, Rahul! 🎉 You’ve completed the 20-day CSS journey — and now it’s time to put everything together. In this final day, you’ll build a **Responsive Landing Page** using only HTML and CSS. We’ll use concepts like Flexbox, Grid, Typography, Colors, and Media Queries — everything you’ve learned so far.

🧱 1️⃣ Project Overview

We’ll build a modern, minimal landing page with:

  • ✔️ A responsive navigation bar
  • ✔️ Hero section with headline and call-to-action
  • ✔️ Features section (3-column layout)
  • ✔️ Footer with links

💡 2️⃣ HTML Structure

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Responsive Landing Page</title>
  <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap" rel="stylesheet">
</head>
<body>
  <header>
    <nav>
      <div class="logo">MyBrand</div>
      <ul>
        <li><a href="#">Home</a></li>
        <li><a href="#">About</a></li>
        <li><a href="#">Contact</a></li>
      </ul>
    </nav>
  </header>

  <section class="hero">
    <h1>Welcome to Modern Web Design</h1>
    <p>Learn how to build beautiful, responsive websites using HTML and CSS.</p>
    <button>Get Started</button>
  </section>

  <section class="features">
    <div>
      <h3>💻 Fast</h3>
      <p>Built with clean and efficient code.</p>
    </div>
    <div>
      <h3>🎨 Beautiful</h3>
      <p>Designed with simplicity and elegance.</p>
    </div>
    <div>
      <h3>📱 Responsive</h3>
      <p>Looks great on every device.</p>
    </div>
  </section>

  <footer>
    <p>© 2025 MyBrand. All rights reserved.</p>
  </footer>
</body>
</html>

🎨 3️⃣ CSS Styling

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  background: #f5f5f5;
  color: #333;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1976d2;
  color: white;
  padding: 10px 20px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav a {
  text-decoration: none;
  color: white;
  font-weight: 600;
}

.hero {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, #2196f3, #1976d2);
  color: white;
}

.hero button {
  background: white;
  color: #1976d2;
  border: none;
  padding: 12px 30px;
  margin-top: 20px;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 50px;
}

.features div {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

footer {
  text-align: center;
  padding: 20px;
  background: #1565c0;
  color: white;
  margin-top: 50px;
}

@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
  }
  .hero {
    padding: 60px 10px;
  }
}

🧠 4️⃣ Practice Task

  1. Customize this page with your own colors and brand name.
  2. Add more sections like testimonials or pricing.
  3. Make sure it’s fully responsive across devices.

🎯 Summary

You’ve built your first complete responsive webpage using HTML and CSS. 🎉 From grids and flex layouts to media queries and typography — you’ve learned it all! This project marks the end of your **HTML & CSS full course**, and the beginning of your web developer journey.

Comments