Current File : /home/getxxhzo/digital.xpertbee.com/index.php
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Coffee Shop</title>
    <style>
        body {
            font-family: 'Arial', sans-serif;
            margin: 0;
            padding: 0;
            background-color: #f4f4f4;
            color: #333;
        }

        header {
            background: #5C3D2E;
            padding: 20px;
            text-align: center;
            color: #fff;
        }

        .title {
            font-size: 3em;
            transition: transform 0.5s;
        }

        .title:hover {
            transform: scale(1.1);
        }

        .hero {
            text-align: center;
            padding: 50px;
            background: #D8C8B6;
            animation: fadeIn 1.5s;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .explore-btn {
            background: #5C3D2E;
            color: white;
            border: none;
            padding: 10px 20px;
            font-size: 1.2em;
            cursor: pointer;
            transition: background 0.3s, transform 0.3s;
        }

        .explore-btn:hover {
            background: #7B4D39;
            transform: scale(1.05);
        }

        .menu {
            padding: 20px;
        }

        .menu h2 {
            text-align: center;
            animation: slideIn 1s;
        }

        .coffee-item {
            opacity: 0;
            transform: translateX(100%);
            animation: slideInRight 0.5s forwards;
        }

        @keyframes slideInRight {
            from {
                transform: translateX(100%);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }

        footer {
            text-align: center;
            padding: 10px;
            background: #5C3D2E;
            color: #fff;
            position: relative;
        }
    </style>
</head>
<body>
    <header>
        <h1 class="title">Coffee Shop</h1>
    </header>
    <main>
        <section class="hero">
            <h2>Welcome to Coffee Shop</h2>
            <p>Discover a variety of the best coffees here!</p>
            <button class="explore-btn" onclick="explore()">Explore</button>
        </section>
        <section class="menu">
            <h2>Coffee Menu</h2>
            <ul>
                <li class="coffee-item">Espresso</li>
                <li class="coffee-item">Cappuccino</li>
                <li class="coffee-item">Latte</li>
                <li class="coffee-item">Americano</li>
                <li class="coffee-item">Mocha</li>
            </ul>
        </section>
    </main>
    <footer>
        <p>&copy; 2024 Coffee Shop</p>
    </footer>
    <script>
        function explore() {
            const menuSection = document.querySelector('.menu');
            menuSection.scrollIntoView({ behavior: 'smooth' });
            alert("Explore our various coffee options!");
        }

        // Animation for the title when the page loads
        window.onload = () => {
            const title = document.querySelector('.title');
            title.classList.add('animate');

            // Trigger coffee item animations
            const coffeeItems = document.querySelectorAll('.coffee-item');
            coffeeItems.forEach((item, index) => {
                setTimeout(() => {
                    item.style.animationDelay = `${index * 0.2}s`;
                    item.style.opacity = '1';
                    item.style.animation = 'slideInRight 0.5s forwards';
                }, index * 200); // stagger the animations
            });
        };

        // Hover animation for the title
        const title = document.querySelector('.title');
        title.addEventListener('mouseover', () => {
            title.style.transition = "transform 0.5s";
            title.style.transform = "rotate(-5deg)";
        });

        title.addEventListener('mouseout', () => {
            title.style.transform = "rotate(0deg)";
        });
    </script>
</body>
</html>