首页弹窗公告

图片[1]-首页弹窗公告
<html lang="en">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>易码付</title>
    <style>
        body {
            font-family: 'Poppins', sans-serif;
            margin: 0;
            padding: 0;
            overflow-x: hidden;
        }

        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            backdrop-filter: blur(10px);
            background-color: rgba(0, 0, 0, 0.7);
            opacity: 0;
            transition: opacity 0.2s ease-in-out, backdrop-filter 0.4s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }

        .modal-content {
            background: linear-gradient(135deg, #3a8ddf, #0d47a1);
            padding: 2vw;
            border-radius: 15px;
            text-align: center;
            width: 70%;
            max-width: 350px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), inset 0 0 10px rgba(255, 255, 255, 0.1);
            border: 3px solid rgba(255, 255, 255, 0.3);
            transform: translateY(-40px) scale(0.9);
            opacity: 0;
            transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55), opacity 0.3s ease;
        }

        .modal-content img {
            width: 25vw;
            max-width: 200px;
            margin-bottom: 1.5vw;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
            border-radius: 10px;
            filter: brightness(1.2) contrast(1.2);
            transition: box-shadow 0.4s ease-in-out, filter 0.4s ease-in-out;
        }

        .modal-content img:hover {
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
            filter: brightness(1.4) contrast(1.4);
        }

        .modal-content .icon {
            font-size: 6vw;
            margin-bottom: 1.5vw;
            color: #fff;
            animation: pulse 1.5s infinite;
            text-shadow: 0 0 15px rgba(255, 255, 255, 0.9);
            filter: brightness(1.5);
        }

        .modal-content h2, .modal-content p {
            color: white;
            margin: 0;
            text-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
        }

        .modal-content h2 {
            font-size: 4vw;
            max-font-size: 22px;
            margin-bottom: 1vw;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.3vw;
            background: linear-gradient(135deg, #ff4b1f, #1fddff);
            -webkit-background-clip: text;
            color: transparent;
            animation: fadeIn 1s ease-in-out;
        }

        .modal-content p {
            font-size: 3vw;
            max-font-size: 16px;
            font-weight: 400;
            line-height: 1.5;
            margin-bottom: 1.5vw;
            animation: fadeIn 1s ease-in-out;
        }

        .runtime {
            font-size: 3vw;
            max-font-size: 16px;
            font-weight: 400;
            text-align: center;
            margin-top: 1vw;
            text-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
            animation: fadeIn 1s ease-in-out;
            background: linear-gradient(135deg, #ff4b1f, #1fddff);
            -webkit-background-clip: text;
            color: transparent;
        }

        .modal-content .btn {
            color: white;
            background: linear-gradient(135deg, #1E5799, #207cca);
            padding: 1vw 3vw;
            text-decoration: none;
            border-radius: 50px;
            cursor: pointer;
            display: inline-block;
            margin-top: 2vw;
            font-size: 0.8rem;
            margin-right: 1vw;
            box-shadow: 0px 15px 25px rgba(0, 0, 0, 0.3), inset 0 0 8px rgba(255, 255, 255, 0.2);
            transition: all 0.3s ease;
            animation: bounceIn 0.8s ease-in-out;
            filter: brightness(1.2);
        }

        .modal-content .btn:hover {
            background: linear-gradient(135deg, #005a9e, #017acb);
            box-shadow: 0px 20px 35px rgba(0, 0, 0, 0.4), inset 0 0 12px rgba(255, 255, 255, 0.3);
            transform: translateY(-6px) scale(1.06);
            filter: brightness(1.5) saturate(1.2);
        }

        @keyframes fadeIn {
            0% { opacity: 0; }
            100% { opacity: 1; }
        }

        @keyframes pulse {
            0%, 100% {
                transform: scale(1);
                opacity: 1;
            }
            50% {
                transform: scale(1.1);
                opacity: 0.8;
            }
        }

        @keyframes bounceIn {
            0%, 60%, 75%, 90%, 100% {
                transform: translateY(0);
            }
            40% {
                transform: translateY(-20px);
            }
            70% {
                transform: translateY(-10px);
            }
        }

        @media (min-width: 768px) {
            .modal-content {
                width: 40%;
                padding: 1.5vw;
            }

            .modal-content img {
                width: 20vw;
            }

            .modal-content h2 {
                font-size: 1.4rem;
            }

            .modal-content p {
                font-size: 0.9rem;
            }

            .modal-content .icon {
                font-size: 2.5rem;
            }

            .modal-content .btn {
                font-size: 1rem;
                padding: 0.8vw 2vw;
                margin-top: 1.5vw;
            }
        }
    </style>
    <div id="myModal" class="modal">
        <div class="modal-content">
            <img src="/Template/Index/mm3/assets/upload/images/20231130/c77d2211a47ce221adbf6e66dd155006.png" alt="Site Logo">
            <div class="icon">🎉</div>
            <h2>平台公告</h2>
            <p>严禁黄赌毒等违法网站接入
            <br>本站为会员制,注册送余额
            <br>0费率,收款秒到账,云端秒回调</p>
            <h2>套餐价格</h2>
            <p>一月会员:9.9(不支持自选云端)
            <br>季度会员:29.9(通道全部开放)
            <br>一年会员:79.9(通道全部开放)
            <br>新用户注册可试用三天
            <br>如有疑问联系客服:2363227984</p>
            <a class="btn" id="closeBtn">关闭</a>
            <a class="btn" id="redirectBtn">登录</a>
        </div>
    </div>
    <script>
        const startTime = new Date('2024-08-01T12:00:00').getTime();

        function updateRuntime() {
            const currentTime = Date.now();
            const elapsedTime = Math.floor((currentTime - startTime) / 1000);

            const days = Math.floor(elapsedTime / (24 * 60 * 60));
            const hours = Math.floor((elapsedTime % (24 * 60 * 60)) / (60 * 60));
            const minutes = Math.floor((elapsedTime % (60 * 60)) / 60);
            const seconds = elapsedTime % 60;

            document.getElementById("runtime").textContent = `网站已运行: ${days}天 ${hours}小时 ${minutes}分钟 ${seconds}秒`;
        }

        setInterval(updateRuntime, 1000);

        const modal = document.getElementById("myModal");
        const closeBtn = document.getElementById("closeBtn");
        const redirectBtn = document.getElementById("redirectBtn");

        window.onload = function () {
            modal.style.display = "flex";
            setTimeout(function() {
                modal.style.opacity = 1;
                modal.querySelector('.modal-content').style.transform = 'translateY(0) scale(1)';
                modal.querySelector('.modal-content').style.opacity = 1;
            }, 50);
        };

        closeBtn.onclick = function () {
            modal.style.opacity = 0;
            modal.querySelector('.modal-content').style.transform = 'translateY(-40px) scale(0.9)';
            setTimeout(function() {
                modal.style.display = "none";
            }, 400);
        };

        redirectBtn.onclick = function () {
            window.location.href = "/User/Login/Index";
        };
    </script>
</body>
</html>

站长群集#技术教程交流Q群:464723236 (新群&禁广)

守约者DNS二级域名分发系统www.kuz5.com(防失联)
© 版权声明
THE END
喜欢就支持一下吧
点赞5赞赏 分享
评论 抢沙发
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

图形验证码
取消
昵称表情代码图片快捷回复

    暂无评论内容