JSFiddle - React, Tailwind, and code Playground

by Pankaj Kargirwar

HTML

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Tour Navigator</title>
    <style>
        /* Include the CSS provided above here */
        #container {
            position: fixed;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent background */
            border-radius: 10px;
            padding: 10px 20px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
            z-index: 1000; /* Ensure it appears above other elements */
        }

        #button {
            background-color: #4CAF50; /* Green */
            color: white;
            border: none;
            padding: 10px 20px;
            text-align: center;
            text-decoration: none;
            display: inline-block;
            font-size: 16px;
            margin: 0 10px;
            border-radius: 5px;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }

        #button:hover {
            background-color: #45a049; /* Darker green on hover */
        }

        .icon {
            width: 30px;
            height: 30px;
            cursor: pointer;
            margin: 0 10px;
            transition: transform 0.3s ease, opacity 0.3s ease;
        }

        .icon:hover {
            transform: scale(1.1); /* Slightly enlarge on hover */
            opacity: 0.8; /* Slightly reduce opacity on hover */
        }
    </style>
</head>
<body>
    <div id="container">
        <button id="button">Take the Tour</button>
        <img id="prev" class="icon" src="prev-icon.png" title="Previous" alt="Previous">
        <img id="next" class="icon" src="next-icon.png" title="Next" alt="Next">
    </div>
</body>
</html>