You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
353 lines
8.5 KiB
353 lines
8.5 KiB
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>GREENTECH</title>
|
|
<style>
|
|
/* General Styling */
|
|
|
|
body {
|
|
font-family: Arial, sans-serif;
|
|
background-color: #0ced0c;
|
|
color: #04e64c;
|
|
background-image: url('./images/alok.png'); /* Add background image */
|
|
background-size: cover; /* Ensures the image covers the entire background */
|
|
background-position: center; /* Center the background image */
|
|
background-attachment: fixed; /* Keeps the background fixed during scroll */
|
|
}
|
|
body {
|
|
font-family: Arial, sans-serif;
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
header {
|
|
background-color: #333;
|
|
color: #fff;
|
|
padding: 20px 0;
|
|
}
|
|
|
|
footer {
|
|
background-color: #333;
|
|
color: #fff;
|
|
text-align: center;
|
|
padding: 10px;
|
|
position: absolute;
|
|
bottom: 0%;
|
|
width: 100%;
|
|
}
|
|
|
|
/* Navigation Container */
|
|
.nav-container {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 0 20px;
|
|
}
|
|
|
|
/* Logo */
|
|
#logo {
|
|
width: 150px;
|
|
}
|
|
|
|
/* Nav Items (Search Bar, Buttons, etc.) */
|
|
.nav-right {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
/* Search Bar */
|
|
.search-container {
|
|
margin-right: 20px;
|
|
}
|
|
|
|
#search-bar {
|
|
width: 200px;
|
|
padding: 8px;
|
|
font-size: 1rem;
|
|
border-radius: 5px;
|
|
border: 1px solid #ddd;
|
|
transition: border 0.3s;
|
|
}
|
|
|
|
#search-bar:focus {
|
|
border-color: #4CAF50;
|
|
outline: none;
|
|
}
|
|
|
|
/* Authentication Buttons */
|
|
.auth-buttons button {
|
|
margin: 0 10px;
|
|
padding: 10px 15px;
|
|
background-color: #4CAF50;
|
|
color: #fff;
|
|
border: none;
|
|
border-radius: 5px;
|
|
cursor: pointer;
|
|
transition: background-color 0.3s;
|
|
}
|
|
|
|
.auth-buttons button:hover {
|
|
background-color: #45a049;
|
|
}
|
|
|
|
#logout-btn {
|
|
display: none;
|
|
}
|
|
|
|
#notification-btn {
|
|
padding: 10px;
|
|
margin-left: 20px;
|
|
background-color: #4CAF50;
|
|
color: white;
|
|
border: none;
|
|
border-radius: 5px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
#notification-btn:hover {
|
|
background-color: #4CAF50;
|
|
}
|
|
|
|
#cart-btn {
|
|
padding: 10px;
|
|
background-color: #4CAF50;
|
|
color: white;
|
|
border: none;
|
|
border-radius: 5px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
#cart-btn:hover {
|
|
background-color:#4CAF50;
|
|
}
|
|
|
|
/* Product List */
|
|
#product-list {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: space-around;
|
|
margin-top: 30px;
|
|
padding: 0 20px;
|
|
}
|
|
|
|
/* Individual Product */
|
|
.product {
|
|
background-color: #fff;
|
|
border-radius: 10px;
|
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
|
margin: 10px;
|
|
padding: 20px;
|
|
width: 250px;
|
|
text-align: center;
|
|
transition: transform 0.3s;
|
|
}
|
|
|
|
.product:hover {
|
|
transform: scale(1.05);
|
|
}
|
|
|
|
/* Product Image */
|
|
.product-image {
|
|
width: 100%;
|
|
height: auto;
|
|
border-radius: 5px;
|
|
}
|
|
|
|
/* Product Title and Price */
|
|
.product h3 {
|
|
font-size: 1.2rem;
|
|
color: #333;
|
|
margin: 10px 0;
|
|
}
|
|
|
|
.price {
|
|
font-size: 1.1rem;
|
|
color: #4CAF50;
|
|
margin: 10px 0;
|
|
}
|
|
|
|
/* View More Button */
|
|
.view-more-btn {
|
|
padding: 10px 15px;
|
|
background-color: #2196F3;
|
|
color: white;
|
|
border: none;
|
|
border-radius: 5px;
|
|
cursor: pointer;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.view-more-btn:hover {
|
|
background-color: #1976D2;
|
|
}
|
|
|
|
/* Responsive Styling */
|
|
@media (max-width: 768px) {
|
|
.nav-container {
|
|
flex-direction: column;
|
|
align-items: center;
|
|
}
|
|
|
|
.nav-right {
|
|
margin-top: 15px;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
}
|
|
|
|
#search-bar {
|
|
width: 100%;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.product {
|
|
width: 100%;
|
|
max-width: 300px;
|
|
margin: 10px 0;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.product {
|
|
width: 100%;
|
|
max-width: 250px;
|
|
}
|
|
|
|
.auth-buttons button, #categories-btn, #cart-btn {
|
|
width: 100%;
|
|
margin: 5px 0;
|
|
}
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
<!-- Header and Navigation -->
|
|
<header>
|
|
<div class="nav-container">
|
|
<!-- Logo -->
|
|
<div class="logo">
|
|
<img src="logo.png" alt="E-Waste Marketplace Logo" id="logo">
|
|
</div>
|
|
|
|
<!-- Search Bar and Nav Items -->
|
|
<div class="nav-right">
|
|
<div class="search-container">
|
|
<input type="text" id="search-bar" placeholder="Search for Appliances..." onkeyup="searchProducts()">
|
|
</div>
|
|
|
|
<!-- Navigation Buttons (Login/Register) -->
|
|
<div class="auth-buttons">
|
|
<a href="login.html"><button id="login-btn">Login</button></a>
|
|
<a href="seller.html"><button id="register-btn">Register for Seller</button></a>
|
|
<a href="buyer.html"><button id="register-btn">Register for Buyer</button></a>
|
|
<button id="logout-btn" style="display: none;">Logout</button>
|
|
<a href="Categories.html"><button id="categories-btn">Categories</button></a>
|
|
<button id="cart-btn">Cart</button>
|
|
<a href="about.html"><button id="categories-btn">About Us</button></a>
|
|
<a href="contact.html"><button id="categories-btn">Contact Us</button></a>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</header>
|
|
|
|
<!-- Main Content -->
|
|
|
|
<!-- Footer -->
|
|
<footer>
|
|
<p>© 2025 GREENTECH. All rights reserved.</p>
|
|
</footer>
|
|
|
|
<script>
|
|
// Search functionality: Filter products by title
|
|
document.getElementById('search-bar').addEventListener('input', function() {
|
|
const searchQuery = this.value.toLowerCase();
|
|
const products = document.querySelectorAll('.product');
|
|
|
|
products.forEach(product => {
|
|
const productName = product.querySelector('h3').textContent.toLowerCase();
|
|
|
|
if (productName.includes(searchQuery)) {
|
|
product.style.display = 'block';
|
|
} else {
|
|
product.style.display = 'none';
|
|
}
|
|
});
|
|
});
|
|
|
|
// Login/Logout functionality
|
|
let isLoggedIn = false;
|
|
|
|
document.getElementById('login-btn').addEventListener('click', function() {
|
|
isLoggedIn = true;
|
|
updateLoginStatus();
|
|
});
|
|
|
|
document.getElementById('logout-btn').addEventListener('click', function() {
|
|
isLoggedIn = false;
|
|
updateLoginStatus();
|
|
});
|
|
|
|
// Function to update the UI based on login status
|
|
function updateLoginStatus() {
|
|
const loginBtn = document.getElementById('login-btn');
|
|
const logoutBtn = document.getElementById('logout-btn');
|
|
const userGreeting = document.getElementById('user-greeting');
|
|
|
|
if (isLoggedIn) {
|
|
loginBtn.style.display = 'none';
|
|
logoutBtn.style.display = 'block';
|
|
userGreeting.style.display = 'block';
|
|
userGreeting.textContent = "Welcome back, User!";
|
|
}
|
|
}
|
|
|
|
// Cart functionality (Basic for now)
|
|
let cartItemCount = 0;
|
|
|
|
document.getElementById('cart-btn').addEventListener('click', function() {
|
|
cartItemCount++;
|
|
updateCart();
|
|
});
|
|
|
|
|
|
updateLoginStatus();
|
|
|
|
</script>
|
|
<body>
|
|
<!-- Header Section -->
|
|
<header>
|
|
<!-- Navigation Bar Code -->
|
|
</header>
|
|
|
|
<!-- Main Summary Section -->
|
|
<section id="about-section" style="background-color: #f5f5f5b8; padding: 40px 20px; text-align: center;">
|
|
<div style="max-width: 800px; margin: 0 auto;">
|
|
<h2 style="color: #333; font-size: 2rem; margin-bottom: 20px;">Welcome to GREENTECH</h2>
|
|
<p style="color: #0b0202; font-size: 1.2rem; line-height: 1.8;">
|
|
At <strong>GREENTECH</strong>, we are dedicated to creating a sustainable future by providing a platform that connects buyers and sellers of electronic waste.
|
|
Our mission is to reduce e-waste, promote recycling, and enable individuals and businesses to responsibly buy and sell used or unwanted electronic products.
|
|
Together, we can minimize the impact of electronic waste on our environment and work towards a greener planet.
|
|
</p>
|
|
<p style="color: #000000; font-size: 1.2rem; line-height: 1.8;">
|
|
Whether you're looking to sell your old appliances or purchase refurbished electronics, GREENTECH makes it easy, secure, and environmentally friendly.
|
|
Join us today to be a part of the change!
|
|
</p>
|
|
</div>
|
|
</section>
|
|
|
|
|
|
<!-- Footer Section -->
|
|
<footer>
|
|
<p>© 2025 GREENTECH. All rights reserved.</p>
|
|
</footer>
|
|
</body>
|
|
|
|
|
|
|
|
</body>
|
|
</html>
|
|
|