Untitled

 avatar
unknown
plain_text
4 days ago
2.2 kB
6
Indexable
<!DOCTYPE html>
<html lang="nl">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Parfum Samples</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 0;
            background-color: #f4f4f4;
            text-align: center;
        }
        header {
            background: #ffcccb;
            padding: 20px;
            font-size: 24px;
        }
        .container {
            max-width: 800px;
            margin: auto;
            padding: 20px;
            background: white;
            border-radius: 10px;
            box-shadow: 0 0 10px rgba(0,0,0,0.1);
        }
        .product {
            display: flex;
            justify-content: space-between;
            margin: 10px 0;
        }
        button {
            padding: 10px;
            background: #ff6666;
            border: none;
            color: white;
            cursor: pointer;
            border-radius: 5px;
        }
        button:hover {
            background: #ff3333;
        }
    </style>
</head>
<body>
    <header>Parfum Samples - Ruik altijd fris!</header>
    <div class="container">
        <h2>Onze Geuren</h2>
        <div class="product">
            <span>Frisse Lente</span>
            <button onclick="addToCart('Frisse Lente')">Bestel</button>
        </div>
        <div class="product">
            <span>Zoete Vanille</span>
            <button onclick="addToCart('Zoete Vanille')">Bestel</button>
        </div>
        <div class="product">
            <span>Houtachtige Musk</span>
            <button onclick="addToCart('Houtachtige Musk')">Bestel</button>
        </div>
        <h3>Jouw Bestelling:</h3>
        <ul id="cart"></ul>
    </div>
    <script>
        function addToCart(product) {
            let cart = document.getElementById("cart");
            let listItem = document.createElement("li");
            listItem.textContent = product;
            cart.appendChild(listItem);
        }
    </script>
</body>
</html>
Editor is loading...
Leave a Comment