Create a modern, responsive landing page that showcases your CSS skills and design abilities.
A landing page is often the first impression visitors have of a website or product. This project will teach you how to create an engaging, conversion-focused landing page using modern CSS techniques.
Beginner: 4-6 hours | Intermediate: 3-4 hours | Advanced: 2-3 hours
Difficulty Level: Beginner to Intermediate
Transform your ideas into reality with our cutting-edge solutions
Lightning-fast loading times and smooth interactions.
Enterprise-grade security and 99.9% uptime guarantee.
Round-the-clock customer support and technical assistance.
landing-page/
├── index.html
├── styles.css
├── images/
└── README.md
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Your Landing Page</title>
<link rel="stylesheet" href="styles.css">
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
</head>
<body>
<header class="header">
<!-- Navigation content -->
</header>
<main>
<section class="hero">
<!-- Hero content -->
</section>
<section class="features">
<!-- Features content -->
</section>
<section class="contact">
<!-- Contact content -->
</section>
</main>
<footer class="footer">
<!-- Footer content -->
</footer>
</body>
</html>
/* CSS Reset */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* CSS Variables */
:root {
--primary-color: #667eea;
--secondary-color: #764ba2;
--accent-color: #f093fb;
--text-color: #333;
--light-text: #666;
--background: #fff;
--border-radius: 8px;
--transition: all 0.3s ease;
}
/* Base Styles */
body {
font-family: 'Inter', sans-serif;
line-height: 1.6;
color: var(--text-color);
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 2rem;
}
/* Typography */
h1, h2, h3, h4, h5, h6 {
font-weight: 600;
line-height: 1.2;
margin-bottom: 1rem;
}
h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
@media (max-width: 768px) {
h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
}
<header class="header">
<div class="container">
<nav class="nav">
<div class="nav-logo">
<img src="logo.svg" alt="Logo">
</div>
<ul class="nav-menu">
<li><a href="#features">Features</a></li>
<li><a href="#pricing">Pricing</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
<button class="nav-cta">Get Started</button>
<div class="hamburger">
<span></span>
<span></span>
<span></span>
</div>
</nav>
</div>
</header>
.header {
position: fixed;
top: 0;
left: 0;
right: 0;
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(10px);
z-index: 1000;
padding: 1rem 0;
box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}
.nav {
display: flex;
justify-content: space-between;
align-items: center;
}
.nav-logo img {
height: 40px;
}
.nav-menu {
display: flex;
list-style: none;
gap: 2rem;
}
.nav-menu a {
text-decoration: none;
color: var(--text-color);
font-weight: 500;
transition: var(--transition);
}
.nav-menu a:hover {
color: var(--primary-color);
}
.nav-cta {
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
color: white;
border: none;
padding: 0.75rem 1.5rem;
border-radius: var(--border-radius);
font-weight: 600;
cursor: pointer;
transition: var(--transition);
}
.nav-cta:hover {
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}
.hamburger {
display: none;
flex-direction: column;
cursor: pointer;
}
.hamburger span {
width: 25px;
height: 3px;
background: var(--text-color);
margin: 3px 0;
transition: var(--transition);
}
@media (max-width: 768px) {
.nav-menu {
display: none;
}
.nav-cta {
display: none;
}
.hamburger {
display: flex;
}
}
<section class="hero">
<div class="container">
<div class="hero-content">
<h1 class="hero-title">
Transform Your Ideas Into Reality
</h1>
<p class="hero-description">
Our platform provides everything you need to bring your vision to life.
Start building today and see the difference.
</p>
<div class="hero-buttons">
<a href="#" class="btn btn-primary">Get Started</a>
<a href="#" class="btn btn-secondary">Learn More</a>
</div>
</div>
<div class="hero-image">
<img src="hero-image.png" alt="Platform Preview">
</div>
</div>
</section>
.hero {
padding: 8rem 0 4rem;
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
color: white;
min-height: 100vh;
display: flex;
align-items: center;
}
.hero .container {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 4rem;
align-items: center;
}
.hero-title {
font-size: 3.5rem;
font-weight: 700;
margin-bottom: 1.5rem;
line-height: 1.1;
}
.hero-description {
font-size: 1.25rem;
margin-bottom: 2rem;
opacity: 0.9;
line-height: 1.6;
}
.hero-buttons {
display: flex;
gap: 1rem;
flex-wrap: wrap;
}
.btn {
padding: 1rem 2rem;
border-radius: var(--border-radius);
text-decoration: none;
font-weight: 600;
transition: var(--transition);
display: inline-block;
}
.btn-primary {
background: white;
color: var(--primary-color);
}
.btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}
.btn-secondary {
background: transparent;
color: white;
border: 2px solid white;
}
.btn-secondary:hover {
background: white;
color: var(--primary-color);
}
.hero-image img {
width: 100%;
height: auto;
border-radius: var(--border-radius);
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}
@media (max-width: 768px) {
.hero .container {
grid-template-columns: 1fr;
text-align: center;
}
.hero-title {
font-size: 2.5rem;
}
.hero-buttons {
justify-content: center;
}
}
<section class="features" id="features">
<div class="container">
<div class="section-header">
<h2>Why Choose Our Platform</h2>
<p>Discover the features that make us stand out from the competition</p>
</div>
<div class="features-grid">
<div class="feature-card">
<div class="feature-icon">
<i class="fas fa-rocket"></i>
</div>
<h3>Lightning Fast</h3>
<p>Optimized for speed and performance</p>
</div>
<div class="feature-card">
<div class="feature-icon">
<i class="fas fa-shield-alt"></i>
</div>
<h3>Secure & Reliable</h3>
<p>Enterprise-grade security</p>
</div>
<div class="feature-card">
<div class="feature-icon">
<i class="fas fa-headset"></i>
</div>
<h3>24/7 Support</h3>
<p>Always here when you need us</p>
</div>
</div>
</div>
</section>
.features {
padding: 5rem 0;
background: #f8f9fa;
}
.section-header {
text-align: center;
margin-bottom: 4rem;
}
.section-header h2 {
font-size: 2.5rem;
margin-bottom: 1rem;
}
.section-header p {
font-size: 1.2rem;
color: var(--light-text);
max-width: 600px;
margin: 0 auto;
}
.features-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
}
.feature-card {
background: white;
padding: 2.5rem;
border-radius: var(--border-radius);
text-align: center;
box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
transition: var(--transition);
}
.feature-card:hover {
transform: translateY(-10px);
box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}
.feature-icon {
width: 80px;
height: 80px;
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 1.5rem;
}
.feature-icon i {
font-size: 2rem;
color: white;
}
.feature-card h3 {
font-size: 1.5rem;
margin-bottom: 1rem;
}
.feature-card p {
color: var(--light-text);
line-height: 1.6;
}