Untitled

mail@pastecode.io avatar
unknown
plain_text
2 months ago
1.7 kB
2
Indexable
Never
<!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">
</head>
<body>
    <header>
        <h1>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>
    <div id="productPage" class="hidden">
        <button id="backBtn">Back to Products</button>
        <div id="productDetails"></div>
        <div id="reviewContainer"></div>
        <div id="reviewForm" class="hidden">
            <h2>Add a Review</h2>
            <input type="text" id="reviewName" placeholder="Your Name">
            <textarea id="reviewContent" placeholder="Your Review"></textarea>
            <button id="submitReviewBtn">Submit Review</button>
        </div>
    </div>
    <script src="script.js"></script>
</body>
</html>
Leave a Comment