Skylight Video Landing

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Video Playlist</title>
    <style>
        body {
            margin: 0;
            padding: 0;
            font-family: Arial, sans-serif;
            background: url('background.jpg') no-repeat center center fixed;
            background-size: cover;
            display: flex;
            height: 100vh;
            align-items: center;
            justify-content: center;
        }
        .container {
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 80%;
            max-width: 1200px;
            background: rgba(0, 0, 0, 0.7);
            padding: 20px;
            border-radius: 10px;
        }
        .logo {
            width: 100%;
            text-align: center;
            margin-bottom: 20px;
        }
        .logo img {
            max-width: 200px;
            height: auto;
        }
        .content {
            display: flex;
            width: 100%;
        }
        .playlist {
            width: 25%;
            padding: 10px;
            color: white;
        }
        .playlist ul {
            list-style: none;
            padding: 0;
        }
        .playlist li {
            cursor: pointer;
            padding: 10px;
            border-bottom: 1px solid #555;
        }
        .playlist li:hover {
            background: #333;
        }
        .video-container {
            width: 75%;
            display: flex;
            flex-direction: column;
            align-items: center;
            background: rgba(0, 0, 0, 0.5);
            padding: 10px;
            border-radius: 10px;
        }
        video {
            width: 100%;
            max-width: 800px;
            border-radius: 10px;
        }
        @media (max-width: 768px) {
            .content {
                flex-direction: column;
                align-items: center;
            }
            .playlist {
                width: 100%;
                text-align: center;
            }
            .video-container {
                width: 100%;
            }
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="logo">
            <img src="logo.svg" alt="Logo">
        </div>
        <div class="content">
            <div class="playlist">
                <h3>Explanation Videos</h3>
                <ul>
                    <li onclick="playVideo(0)">Flat Rate Scheme</li>
                    <li onclick="playVideo(1)">Backdated VAT</li>
                </ul>
            </div>
            <div class="video-container">
                <video id="videoPlayer" controls>
                    <source src="backdated_vat.mp4" type="video/mp4">
                </video>
            </div>
        </div>
    </div>
    <script>
        const videoFiles = ['backdated_vat.mp4', 'equip_frs.mp4'];
        let currentIndex = 0;
        const videoPlayer = document.getElementById("videoPlayer");

        function playVideo(index) {
            currentIndex = index;
            videoPlayer.src = videoFiles[index];
            videoPlayer.play();
        }

        videoPlayer.onended = function() {
            if (currentIndex < videoFiles.length - 1) {
                playVideo(currentIndex + 1);
            }
        };
    </script>
</body>
</html>
Call Us