Untitled
user_0174950
plain_text
2 years ago
2.4 kB
5
Indexable
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Dynamic Product Showcase</title>
<link rel="stylesheet" href="styles.css" />
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
}
header {
background-color: #333;
color: #fff;
padding: 10px 20px;
display: flex;
justify-content: space-between;
align-items: center;
}
header h1 {
margin: 0;
}
#userActions button {
display: none;
}
main {
padding: 20px;
}
.filters {
margin-bottom: 20px;
}
.filters select {
margin-right: 10px;
}
.card-container {
display: flex;
flex-wrap: wrap;
gap: 20px;
}
.card {
border: 1px solid #ccc;
border-radius: 5px;
padding: 10px;
width: 300px;
}
.card img {
max-width: 100%;
border-radius: 5px;
}
.card h3 {
margin-top: 0;
}
.card p {
margin: 5px 0;
}
.card button {
padding: 5px 10px;
background-color: #333;
color: #fff;
border: none;
border-radius: 5px;
cursor: pointer;
}
.review-container {
margin-top: 20px;
}
.review-container h2 {
margin-bottom: 10px;
}
/* Existing CSS styles */
.hidden {
display: none;
}
#productPage {
padding: 20px;
}
#productDetails {
margin-bottom: 20px;
}
#backBtn {
margin-bottom: 20px;
}
</style>
</head>
<body>
<header>
<h1>Dynamic Product Showcase</h1>
<div id="userActions">
<button id="signupBtn">Sign Up</button>
<button id="loginBtn">Login</button>
<button id="logoutBtn">Logout</button>
</div>
</header>
<main>
<div class="filters">
<label for="filterDropdown">Filter by Category:</label>
<select id="filterDropdown"></select>
<label for="sortDropdown">Sort by:</label>
<select id="sortDropdown">
<option value="price-low-high">Price: Low to High</option>
<option value="price-high-low">Price: High to Low</option>
<option value="rating-high-low">Rating: High to Low</option>
</select>
</div>
<div id="productContainer" class="card-container"></div>
</main>
<script src="script.js"></script>
</body>
</html>Editor is loading...
Leave a Comment