Home / Widgets / DantetheblackgoldendoodleFooter
Duplicate Snippet

Embed Snippet on Your Site

DantetheblackgoldendoodleFooter

Code Preview
universal
<style>
    .social-popup-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.7);
        z-index: 999999;
        animation: fadeIn 0.3s ease-in;
    }
    .social-popup-overlay.active {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .social-popup {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-radius: 20px;
        padding: 40px 30px;
        max-width: 450px;
        width: 90%;
        position: relative;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        animation: slideUp 0.4s ease-out;
        text-align: center;
    }
    .close-popup {
        position: absolute;
        top: 15px;
        right: 15px;
        background: rgba(255, 255, 255, 0.2);
        border: none;
        color: white;
        font-size: 24px;
        width: 35px;
        height: 35px;
        border-radius: 50%;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
    }
    .close-popup:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: rotate(90deg);
    }
    .popup-icon {
        font-size: 50px;
        margin-bottom: 20px;
    }
    .popup-title {
        color: white;
        font-size: 28px;
        font-weight: bold;
        margin-bottom: 15px;
        font-family: 'Arial', sans-serif;
    }
    .popup-description {
        color: rgba(255, 255, 255, 0.9);
        font-size: 16px;
        margin-bottom: 30px;
        line-height: 1.5;
    }
    .social-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    .social-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 15px 25px;
        border-radius: 50px;
        text-decoration: none;
        font-weight: bold;
        font-size: 16px;
        transition: all 0.3s ease;
        border: none;
        cursor: pointer;
        gap: 10px;
    }
    .tiktok-btn {
        background: #000000;
        color: white;
    }
    .tiktok-btn:hover {
        background: #1a1a1a;
        transform: translateY(-2px);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    }
    .instagram-btn {
        background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
        color: white;
    }
    .instagram-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 20px rgba(225, 48, 108, 0.4);
    }
    .facebook-btn {
        background: #1877F2;
        color: white;
    }
    .facebook-btn:hover {
        background: #166fe5;
        transform: translateY(-2px);
        box-shadow: 0 5px 20px rgba(24, 119, 242, 0.4);
    }
    .twitter-btn {
        background: #000000;
        color: white;
    }
    .twitter-btn:hover {
        background: #1a1a1a;
        transform: translateY(-2px);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    }
    .later-btn {
        background: rgba(255, 255, 255, 0.2);
        color: white;
        margin-top: 10px;
    }
    .later-btn:hover {
        background: rgba(255, 255, 255, 0.3);
    }
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
    @keyframes slideUp {
        from {
            opacity: 0;
            transform: translateY(50px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    @media (max-width: 480px) {
        .social-popup {
            padding: 30px 20px;
        }
        .popup-title {
            font-size: 24px;
        }
        .popup-description {
            font-size: 14px;
        }
        .social-btn {
            padding: 12px 20px;
            font-size: 14px;
        }
    }
</style>
<div class="social-popup-overlay" id="socialPopup">
    <div class="social-popup">
        <button class="close-popup" onclick="closeSocialPopup()">×</button>
        
        <div class="popup-icon">🚀</div>
        <h2 class="popup-title">Stay Connected!</h2>
        <p class="popup-description">
            Follow us on social media for exclusive content, updates, and behind-the-scenes fun!
        </p>
        <div class="social-buttons">
            <!-- TikTok Button - CHANGE "yourusername" TO YOUR TIKTOK USERNAME -->
            <a href="https://www.tiktok.com/@dantetheblackdoodle" target="_blank" class="social-btn tiktok-btn">
                <span>📱</span> Follow on TikTok
            </a>
            <!-- Instagram Button - CHANGE "yourusername" TO YOUR INSTAGRAM USERNAME -->
            <a href="https://www.instagram.com/dblackdoodle/" target="_blank" class="social-btn instagram-btn">
                <span>📸</span> Follow on Instagram
            </a>
            <!-- Facebook Button - CHANGE "yourusername" TO YOUR FACEBOOK PAGE NAME -->
            <a href="https://www.facebook.com/profile.php?id=61584919646305" target="_blank" class="social-btn facebook-btn">
                <span>👍</span> Follow on Facebook
            </a>
            <!-- X (Twitter) Button - CHANGE "yourusername" TO YOUR X USERNAME -->
            <a href="https://x.com/dantetbgdoodle" target="_blank" class="social-btn twitter-btn">
                <span></span> Follow on X
            </a>
            <button class="social-btn later-btn" onclick="closeSocialPopup()">Maybe Later</button>
        </div>
    </div>
</div>
<script>
    (function() {
        'use strict';
        
        const POPUP_DELAY = 2000; // Show after 2 seconds
        const DAYS_UNTIL_RESHOW = 7; // Don't show again for 7 days
        
        function shouldShowSocialPopup() {
            try {
                const lastShown = localStorage.getItem('socialPopupLastShown');
                if (!lastShown) return true;
                const daysSinceShown = (Date.now() - parseInt(lastShown)) / (1000 * 60 * 60 * 24);
                return daysSinceShown >= DAYS_UNTIL_RESHOW;
            } catch (e) {
                console.log('localStorage not available:', e);
                return true;
            }
        }
        function showSocialPopup() {
            if (shouldShowSocialPopup()) {
                setTimeout(function() {
                    const popup = document.getElementById('socialPopup');
                    if (popup) {
                        popup.classList.add('active');
                        try {
                            localStorage.setItem('socialPopupLastShown', Date.now().toString());
                        } catch (e) {
                            console.log('Could not save to localStorage:', e);
                        }
                    }
                }, POPUP_DELAY);
            }
        }
        window.closeSocialPopup = function() {
            const popup = document.getElementById('socialPopup');
            if (popup) {
                popup.classList.remove('active');
            }
        }
        const popupElement = document.getElementById('socialPopup');
        if (popupElement) {
            popupElement.addEventListener('click', function(e) {
                if (e.target === this) {
                    closeSocialPopup();
                }
            });
        }
        document.addEventListener('keydown', function(e) {
            if (e.key === 'Escape') {
                closeSocialPopup();
            }
        });
        // Wait for DOM to be ready
        if (document.readyState === 'loading') {
            document.addEventListener('DOMContentLoaded', showSocialPopup);
        } else {
            showSocialPopup();
        }
    })();
</script>

Comments

Add a Comment