Blog

  • <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>Landing Page</title>
        <style>
            /* --- General Page Styles --- */
            body {
                margin: 0;
                font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
                display: flex;
                justify-content: center;
                align-items: center;
                min-height: 100vh;
                background-color: #f0f2f5;
            }
    
            /* --- Main Container (The Box from the Sketch) --- */
            .container {
                border: 3px solid #0056b3;
                padding: 40px;
                border-radius: 10px;
                text-align: center;
                background-color: #ffffff;
                box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
                display: flex;
                flex-direction: column;
                align-items: center;
                gap: 20px;
                width: 90%;
                max-width: 400px;
            }
    
            /* --- Animated Arrow --- */
            .arrow {
                width: 48px;
                height: 48px;
                color: #007bff;
                animation: bounce 2s ease-in-out infinite;
            }
    
            @keyframes bounce {
                0%, 20%, 50%, 80%, 100% {
                    transform: translateY(0);
                }
                40% {
                    transform: translateY(-25px);
                }
                60% {
                    transform: translateY(-15px);
                }
            }
    
            /* --- Button Group Container --- */
            .button-group {
                display: flex;
                flex-direction: column;
                gap: 15px;
                width: 100%;
            }
            
            /* --- Common styles for ALL buttons --- */
            .watch-now-button, .secondary-button {
                padding: 15px 25px;
                font-size: 1.1rem;
                font-weight: bold;
                border: none;
                border-radius: 50px;
                cursor: pointer;
                transition: all 0.3s ease;
                box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
                width: 100%;
            }
    
            .watch-now-button:hover, .secondary-button:hover {
                transform: translateY(-3px);
                box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
            }
    
            .watch-now-button:active, .secondary-button:active {
                transform: translateY(0);
                box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
            }
            
            /* --- "Watch Now" Button (Primary) --- */
            .watch-now-button {
                color: #fff;
                background-color: #007bff;
            }
    
            .watch-now-button:hover {
                background-color: #0056b3;
            }
    
            /* --- "Download It" & "Get Link" Buttons (Secondary) --- */
            .secondary-button {
                color: #007bff;
                background-color: #fff;
                border: 2px solid #007bff;
            }
    
            .secondary-button:hover {
                background-color: #007bff;
                color: #fff;
            }
    
            /* --- Fallback Text Styling --- */
            .fallback-text {
                margin-top: 10px;
                font-size: 1rem;
                color: #555;
            }
    
            .fallback-text a {
                color: #007bff;
                font-weight: bold;
                text-decoration: underline;
            }
    
            .fallback-text a:hover {
                color: #0056b3;
            }
        </style>
    </head>
    <body>
    
        <div class="container">
            <!-- The animated arrow that points to the buttons -->
            <svg class="arrow" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
                <line x1="12" y1="5" x2="12" y2="19"></line>
                <polyline points="19 12 12 19 5 12"></polyline>
            </svg>
    
            <!-- A container to hold all the buttons -->
            <div class="button-group">
                <button class="watch-now-button">Watch Now</button>
                <button id="download-button" class="secondary-button">Download It</button>
                <button id="getlink-button" class="secondary-button">Get Link</button>
            </div>
    
            <!-- The fallback "If does not work Click here" text -->
            <p class="fallback-text">
                If it does not work, 
                <!-- The link is added directly to the href attribute here -->
                <a href="https://bittly.online/new-experiment">click here</a>.
            </p>
        </div>
    
        <script>
            // The link you want to use
            const targetUrl = 'https://bittly.online/new-experiment';
    
            // Get the button elements
            const watchButton = document.querySelector('.watch-now-button');
            const downloadButton = document.getElementById('download-button');
            const getLinkButton = document.getElementById('getlink-button');
    
            // "Watch Now" button redirects to the URL
            watchButton.addEventListener('click', () => {
                window.location.href = targetUrl;
            });
    
            // "Download It" button also redirects to the URL
            downloadButton.addEventListener('click', () => {
                window.location.href = targetUrl;
            });
    
            // "Get Link" button shows a prompt with the URL to copy
            getLinkButton.addEventListener('click', () => {
                prompt("Here is your link. Press Ctrl+C to copy:", targetUrl);
            });
    
        </script>
    
    </body>
    </html>
  • Hello world!

    Welcome to WordPress. This is your first post. Edit or delete it, then start writing!