<!
DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ShopEase - Your One-Stop Shopping Destination</title>
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/
css/all.min.css" rel="stylesheet">
<style>
:root {
--primary-color: #f57224;
--secondary-color: #f85606;
--background-color: #f5f5f5;
--text-color: #212121;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Roboto', sans-serif;
line-height: 1.6;
color: var(--text-color);
background-color: var(--background-color);
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 15px;
}
/* Header Styles */
header {
background-color: var(--primary-color);
padding: 10px 0;
}
.top-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 10px;
}
.logo {
font-size: 24px;
font-weight: bold;
color: #fff;
text-decoration: none;
}
.search-bar {
flex-grow: 1;
margin: 0 20px;
}
.search-bar input {
width: 100%;
padding: 10px;
border: none;
border-radius: 4px;
}
.user-actions a {
color: #fff;
text-decoration: none;
margin-left: 15px;
}
nav ul {
list-style-type: none;
display: flex;
}
nav ul li {
margin-right: 20px;
}
nav ul li a {
color: #fff;
text-decoration: none;
}
/* Main Content Styles */
.hero {
background: url('/api/placeholder/1200/400') no-repeat center
center/cover;
height: 400px;
display: flex;
align-items: center;
justify-content: center;
color: #fff;
text-align: center;
margin-bottom: 30px;
}
.hero h1 {
font-size: 48px;
margin-bottom: 20px;
}
.hero .btn {
background-color: var(--secondary-color);
color: #fff;
padding: 10px 20px;
text-decoration: none;
border-radius: 4px;
font-weight: bold;
}
.section-title {
font-size: 24px;
margin-bottom: 20px;
padding-bottom: 10px;
border-bottom: 2px solid var(--primary-color);
}
.product-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 20px;
margin-bottom: 40px;
}
.product-card {
background-color: #fff;
border-radius: 4px;
overflow: hidden;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
transition: transform 0.3s ease;
}
.product-card:hover {
transform: translateY(-5px);
}
.product-card img {
width: 100%;
height: 200px;
object-fit: cover;
}
.product-info {
padding: 15px;
}
.product-title {
font-weight: bold;
margin-bottom: 10px;
}
.product-price {
color: var(--secondary-color);
font-weight: bold;
}
.categories {
display: flex;
justify-content: space-between;
margin-bottom: 40px;
}
.category-card {
text-align: center;
padding: 20px;
background-color: #fff;
border-radius: 4px;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
transition: transform 0.3s ease;
}
.category-card:hover {
transform: translateY(-5px);
}
.category-card i {
font-size: 48px;
color: var(--primary-color);
margin-bottom: 10px;
}
/* Footer Styles */
footer {
background-color: #333;
color: #fff;
padding: 40px 0;
}
.footer-content {
display: flex;
justify-content: space-between;
}
.footer-section {
flex: 1;
margin-right: 30px;
}
.footer-section h3 {
margin-bottom: 20px;
}
.footer-section ul {
list-style-type: none;
}
.footer-section ul li {
margin-bottom: 10px;
}
.footer-section ul li a {
color: #fff;
text-decoration: none;
}
.social-icons {
margin-top: 20px;
}
.social-icons a {
color: #fff;
font-size: 24px;
margin-right: 15px;
}
/* Responsive Design */
@media (max-width: 768px) {
.top-header {
flex-direction: column;
}
.search-bar {
margin: 15px 0;
width: 100%;
}
nav ul {
flex-wrap: wrap;
}
.product-grid {
grid-template-columns: repeat(2, 1fr);
}
.categories {
flex-wrap: wrap;
}
.category-card {
flex-basis: calc(50% - 10px);
margin-bottom: 20px;
}
.footer-content {
flex-direction: column;
}
.footer-section {
margin-bottom: 30px;
}
}
</style>
</head>
<body>
<header>
<div class="container">
<div class="top-header">
<a href="#" class="logo">ShopEase</a>
<div class="search-bar">
<input type="text" placeholder="Search products, brands and
categories">
</div>
<div class="user-actions">
<a href="#"><i class="fas fa-user"></i> Login</a>
<a href="#"><i class="fas fa-shopping-cart"></i> Cart</a>
</div>
</div>
<nav>
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">Categories</a></li>
<li><a href="#">Flash Sale</a></li>
<li><a href="#">Top Brands</a></li>
<li><a href="#">New Arrivals</a></li>
</ul>
</nav>
</div>
</header>
<main>
<section class="hero">
<div class="hero-content">
<h1>Welcome to ShopEase</h1>
<p>Discover amazing deals on top brands</p>
<a href="#" class="btn">Shop Now</a>
</div>
</section>
<div class="container">
<section class="categories">
<div class="category-card">
<i class="fas fa-tshirt"></i>
<h3>Fashion</h3>
</div>
<div class="category-card">
<i class="fas fa-mobile-alt"></i>
<h3>Electronics</h3>
</div>
<div class="category-card">
<i class="fas fa-home"></i>
<h3>Home & Living</h3>
</div>
<div class="category-card">
<i class="fas fa-dumbbell"></i>
<h3>Sports & Outdoors</h3>
</div>
<div class="category-card">
<i class="fas fa-baby"></i>
<h3>Baby & Toys</h3>
</div>
</section>
<section>
<h2 class="section-title">Flash Deals</h2>
<div class="product-grid">
<div class="product-card">
<img src="/api/placeholder/200/200" alt="Product 1">
<div class="product-info">
<div class="product-title">Wireless Earbuds</div>
<div class="product-price">$49.99</div>
</div>
</div>
<div class="product-card">
<img src="/api/placeholder/200/200" alt="Product 2">
<div class="product-info">
<div class="product-title">Smart Watch</div>
<div class="product-price">$89.99</div>
</div>
</div>
<div class="product-card">
<img src="/api/placeholder/200/200" alt="Product 3">
<div class="product-info">
<div class="product-title">Portable Charger</div>
<div class="product-price">$29.99</div>
</div>
</div>
<div class="product-card">
<img src="/api/placeholder/200/200" alt="Product 4">
<div class="product-info">
<div class="product-title">Bluetooth Speaker</div>
<div class="product-price">$69.99</div>
</div>
</div>
</div>
</section>
<section>
<h2 class="section-title">Top Selling Products</h2>
<div class="product-grid">
<div class="product-card">
<img src="/api/placeholder/200/200" alt="Product 5">
<div class="product-info">
<div class="product-title">Smartphone</div>
<div class="product-price">$399.99</div>
</div>
</div>
<div class="product-card">
<img src="/api/placeholder/200/200" alt="Product 6">
<div class="product-info">
<div class="product-title">Laptop</div>
<div class="product-price">$799.99</div>
</div>
</div>
<div class="product-card">
<img src="/api/placeholder/200/200" alt="Product 7">
<div class="product-info">
<div class="product-title">4K TV</div>
<div class="product-price">$599.99</div>
</div>
</div>
<div class="product-card">
<img src="/api/placeholder/200/200" alt="Product 8">
<div class="product-info">
<div class="product-title">Gaming Console</div>
<div class="product-price">$349.99</div>
</div>
</div>
</div>
</section>
</div>
</main>
<footer>
<div class="container">
<div class="footer-content">
<div class="footer-section">
<h3>Customer Service</h3>
<ul>
<li><a href="#">Help Center</a></li>
<li><a href="#">How to Buy</a></li>
<li><a href="#">Returns & Refunds</a></li>
<li><a href="#">Contact Us</a></li>
</ul>
</div>
<div class="footer-section">
<h3>About ShopEase</h3>
<ul>
<li><a href="#">About Us</a></li>
<li><a href="#">Careers</a></li>
<li><a href="#">Terms & Conditions</a></li>
<li><a href="#">Privacy Policy</a></li>
</ul>
</div>
<div class="footer-section">
<h3>Payment Methods</h3>
<p>Cash on Delivery</p>
<p>Credit Card</p>
<p>Debit Card</p>
<p>Online Banking</p>
</div>
<div class="footer-section">
<h3>Follow Us</h3>
<div class="social-icons">
<a href="#"><i class="fab fa-facebook"></i></a>
<a href="#"><i class="fab fa-twitter"></i></a>
<a href="#"><i class="fab fa-instagram"></i></a>
<a href="#"><i class="fab fa-youtube"></i></a>
</div>
</div>
</div>
</div>
</footer>
<script>
// Add to cart functionality
const addToCartButtons = document.querySelectorAll('.add-to-cart');
addToCartButtons.forEach(button => {
button.addEventListener('click', () => {
// Add product to cart logic here
alert('Product added to cart!');
});
});
// Simple animation for product cards
const productCards = document.querySelectorAll('.product-card');
const observer = new IntersectionObserver((entries) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
entry.target.style.opacity = 1;
entry.target.style.transform = 'translateY(0)';
}
});
}, { threshold: 0.1 });
productCards.forEach(card => {
card.style.opacity = 0;
card.style.transform = 'translateY(20px)';
card.style.transition = 'opacity 0.5s ease, transform 0.5s ease';
observer.observe(card);
});