0% found this document useful (0 votes)
12 views6 pages

SDL 1

The document is an HTML template for a website called 'GreenLife' that promotes eco-friendly products. It includes sections for a header with navigation links, a hero section highlighting the brand's mission, and a features section showcasing product attributes like recyclability and energy efficiency. The layout is responsive and styled with CSS to ensure a visually appealing presentation on various devices.

Uploaded by

Soham Mahajan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views6 pages

SDL 1

The document is an HTML template for a website called 'GreenLife' that promotes eco-friendly products. It includes sections for a header with navigation links, a hero section highlighting the brand's mission, and a features section showcasing product attributes like recyclability and energy efficiency. The layout is responsive and styled with CSS to ensure a visually appealing presentation on various devices.

Uploaded by

Soham Mahajan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

Assignment 1

Code:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>GreenLife - Eco-Friendly Products</title>
<style>
/* Reset and base styles */
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: Arial, sans-serif;
line-height: 1.6;
color: #333;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}

/* Header styles */
header {
background-color: #2ecc71;
color: white;
padding: 1rem 0;
}
nav {
display: flex;
justify-content: space-between;
align-items: center;
}
.logo {
font-size: 1.5rem;
font-weight: bold;
}
.nav-links {
display: flex;
gap: 1rem;
}
.nav-links a {
color: white;
text-decoration: none;
}

/* Hero section styles */


.hero {
background-color: #f1f8e9;
padding: 4rem 0;
text-align: center;
}
.hero h1 {
font-size: 2.5rem;
margin-bottom: 1rem;
}
.hero p {
font-size: 1.2rem;
margin-bottom: 2rem;
}
.cta-button {
display: inline-block;
background-color: #2ecc71;
color: white;
padding: 0.75rem 1.5rem;
text-decoration: none;
border-radius: 5px;
font-weight: bold;
transition: background-color 0.3s ease;
}
.cta-button:hover {
background-color: #27ae60;
}
/* Features section styles */
.features {
padding: 4rem 0;
}
.features h2 {
text-align: center;
margin-bottom: 2rem;
}
.feature-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 2rem;
}
.feature {
background-color: #f9f9f9;
padding: 1.5rem;
border-radius: 5px;
text-align: center;
}
.feature img {
width: 64px;
height: 64px;
margin-bottom: 1rem;
}

/* Footer styles */
footer {
background-color: #333;
color: white;
padding: 2rem 0;
text-align: center;
}

/* Responsive styles */
@media (max-width: 768px) {
.nav-links {
display: none;
}
.hero h1 {
font-size: 2rem;
}
.hero p {
font-size: 1rem;
}
}
</style>
</head>
<body>
<header>
<nav class="container">
<div class="logo">GreenLife</div>
<div class="nav-links">
<a href="#home">Home</a>
<a href="#features">Features</a>
<a href="#about">About</a>
<a href="#contact">Contact</a>
</div>
</nav>
</header>

<main>
<section class="hero" id="home">
<div class="container">
<h1>Eco-Friendly Products for a Sustainable Future</h1>
<p>Discover our range of environmentally conscious products that help you
reduce your carbon footprint.</p>
<a href="#" class="cta-button">Shop Now</a>
</div>
</section>

<section class="features" id="features">


<div class="container">
<h2>Our Features</h2>
<div class="feature-grid">
<div class="feature">
<img src="/placeholder.svg?height=64&width=64" alt="Recyclable">
<h3>100% Recyclable</h3>
<p>All our products are made from fully recyclable materials.</p>
</div>
<div class="feature">
<img src="/placeholder.svg?height=64&width=64" alt="Biodegradable">
<h3>Biodegradable</h3>
<p>Our packaging is designed to decompose naturally, leaving no
trace.</p>
</div>
<div class="feature">
<img src="/placeholder.svg?height=64&width=64" alt="Energy Efficient">
<h3>Energy Efficient</h3>
<p>Our products are designed to minimize energy consumption.</p>
</div>
</div>
</div>
</section>
</main>

<footer>
<div class="container">
<p>&copy; 2025 GreenLife. All rights reserved.</p>
</div>
</footer>
</body>
</html>

Output:

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy