Bcacet
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Fresh Veggies Store</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f7fff2;
color: #333;
}
header {
background-color: #4CAF50;
padding: 20px;
text-align: center;
color: white;
}
nav {
background-color: #388E3C;
display: flex;
justify-content: center;
}
nav a {
color: white;
padding: 14px 20px;
text-decoration: none;
font-weight: bold;
}
nav a:hover {
background-color: #2E7D32;
}
.container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 20px;
padding: 20px;
}
.card {
background-color: white;
border-radius: 10px;
overflow: hidden;
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
text-align: center;
padding-bottom: 10px;
}
.card img {
width: 100%;
height: 200px;
object-fit: cover;
}
.card h3 {
margin: 10px 0;
}
.price {
color: green;
font-weight: bold;
}
footer {
background-color: #4CAF50;
text-align: center;
padding: 10px;
color: white;
}
</style>
</head>
<body>
<header>
<h1>🌱 Fresh Veggies Store</h1>
<p>Healthy • Organic • Farm Fresh</p>
</header>
<nav>
<a href="#">Home</a>
<a href="#">Products</a>
<a href="#">About Us</a>
<a href="#">Contact</a>
</nav>
<div class="container">
<div class="card">
<img src="https://source.unsplash.com/400x300/?tomato" alt="Tomatoes">
<h3>Fresh Tomatoes</h3>
<p class="price">₹40 / kg</p>
</div>
<div class="card">
<img src="https://source.unsplash.com/400x300/?carrot" alt="Carrots">
<h3>Organic Carrots</h3>
<p class="price">₹50 / kg</p>
</div>
<div class="card">
<img src="https://source.unsplash.com/400x300/?cabbage" alt="Cabbage">
<h3>Green Cabbage</h3>
<p class="price">₹30 / kg</p>
</div>
<div class="card">
<img src="https://source.unsplash.com/400x300/?potato" alt="Potatoes">
<h3>Farm Potatoes</h3>
<p class="price">₹25 / kg</p>
</div>
</div>
<footer>
<p>© 2025 Fresh Veggies Store | Designed for Blogger</p>
</footer>
</body>
</html>
Comments
Post a Comment