SuperShipped // Item 19

SNIPPET VIEW

Live Render

HTML CODE

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Genesis Onboarding - Interactive</title>
    <script src="https://unpkg.com/@phosphor-icons/web"></script>
    <style>
        :root {
            --bg-page: #e9ecef;
            --card-white: #ffffff;
            --text-main: #000;
            --text-sub: #666;
            --accent: #7cb8f7;
        }

        * { box-sizing: border-box; margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }

        body {
            background: var(--bg-page);
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            overflow-x: hidden;
            padding: 20px;
        }

        .card {
            position: relative;
            width: 100%;
            background: var(--card-white);
            border-radius: 40px;
            overflow: hidden;
            box-shadow: 0 40px 100px rgba(0,0,0,0.1);
            display: flex;
            flex-direction: column;
            transition: max-width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        }

        @media (min-width: 1024px) { .card { max-width: 500px; } }
        @media (min-width: 1920px) { .card { max-width: 800px; } }
        @media (max-width: 1023px) { .card { max-width: 380px; } }

        /* --- 3D Visual Window --- */
        #visual-header {
            width: 100%;
            height: 500px;
            background: linear-gradient(to bottom, #7cb8f7 0%, #ffffff 100%);
            position: relative;
            overflow: hidden;
        }

        .layer {
            position: absolute;
            background-repeat: no-repeat;
            background-position: center;
            pointer-events: none;
            will-change: transform;
        }

        .layer-cloud {
            top: 5%; left: 0%; width: 200%; height: 150%;
            background-image: url('cloud.png'); background-size: contain; z-index: 1;
        }

        .layer-tree {
            bottom: 4%; right: -15%; width: 180%; height: 100%;
            background-image: url('tree.png'); background-size: contain; z-index: 4;
        }

        .layer-ground {
            bottom: 0%; left: -25%; width: 150%; height: 50%;
            background-image: url('ground.png'); background-size: cover;
            background-position: bottom center; z-index: 3;
        }

        /* --- Seamless Mask Content Area --- */
        .content {
            padding: 120px 40px 40px 40px;
            position: relative;
            z-index: 10;
            background: var(--card-white);
            margin-top: -250px; 
            -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 30%);
            mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 30%);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            flex-grow: 1;
        }

        h1 { font-size: 26px; font-weight: 800; line-height: 1.2; margin-bottom: 12px; letter-spacing: -0.5px; }
        .subtitle { font-size: 15px; color: var(--text-sub); margin-bottom: 30px; }

        /* --- Interactive Elements --- */

        /* Upload Row */
        .upload-row {
            display: flex; align-items: center; justify-content: space-between;
            padding: 16px 20px; border: 1px solid rgba(0,0,0,0.06); border-radius: 24px; margin-bottom: 24px;
            background: rgba(255,255,255,0.4);
            transition: all 0.3s ease;
        }
        .upload-row:hover {
            border-color: var(--accent);
            background: rgba(255,255,255,0.8);
            transform: translateY(-2px);
        }

        .avatar-circle {
            width: 50px; height: 50px; background: #fdf2ff; border-radius: 50%;
            display: flex; align-items: center; justify-content: center; font-size: 24px; color: #d447ab;
        }

        /* Input Field */
        .input-wrap {
            background: #f4f4f4; padding: 18px; border-radius: 20px;
            display: flex; align-items: center; margin-bottom: 30px; 
            border: 2px solid transparent;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        .input-wrap i { font-size: 20px; color: #999; margin-right: 12px; transition: color 0.3s; }
        
        .input-wrap:focus-within {
            background: #fff;
            border-color: var(--accent);
            box-shadow: 0 10px 20px rgba(124, 184, 247, 0.15);
        }
        .input-wrap:focus-within i { color: var(--accent); }

        input { border: none; background: transparent; outline: none; width: 100%; font-size: 16px; font-weight: 500; }

        /* Continue Button */
        .btn-continue {
            width: 100%; background: #000; color: #fff; border: none;
            padding: 22px; border-radius: 100px; font-size: 18px; font-weight: 700; cursor: pointer;
            display: flex; align-items: center; justify-content: center; gap: 10px;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        .btn-continue:hover {
            background: #222;
            transform: translateY(-4px);
            box-shadow: 0 15px 30px rgba(0,0,0,0.2);
        }
        .btn-continue:active { transform: translateY(0) scale(0.96); }

        .btn-continue i { font-size: 22px; transition: transform 0.3s; }
        .btn-continue:hover i { transform: translateX(5px); }

        /* Mobile Overlay */
        #mobile-overlay {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.95); color: white; z-index: 1000;
            display: none; flex-direction: column; justify-content: center; align-items: center; padding: 40px; text-align: center;
        }
    </style>
</head>
<body>

    <div id="mobile-overlay">
        <i class="ph-fill ph-device-mobile-speaker" style="font-size: 64px; margin-bottom: 20px; color: var(--accent);"></i>
        <h2>Enable Motion</h2>
        <p style="opacity: 0.7; margin: 10px 0 30px;">This journey requires your phone's tilt sensors for the 3D effect.</p>
        <button id="enable-btn" style="padding:16px 40px; border-radius:100px; border:none; background:var(--accent); color:#fff; font-weight:bold; cursor:pointer; font-size: 18px;">Get Started</button>
    </div>

    <main class="card">
        <div id="visual-header">
            <div class="layer layer-cloud" data-depth="0.03"></div>
            <div class="layer layer-tree" data-depth="0.06"></div>
            <div class="layer layer-ground" data-depth="0.12"></div>
        </div>

        <div class="content">
            <h1>Welcome to Genesis,<br>Your first journey here!</h1>
            <p class="subtitle">Add your Photo and Pick a username</p>

            <div class="upload-row">
                <div style="display:flex; align-items:center; gap:15px;">
                    <div class="avatar-circle">
                        <i class="ph-bold ph-user-circle"></i>
                    </div>
                    <div>
                        <strong style="font-size:15px; display:block;">Your Photo</strong>
                        <span style="color:#999; font-size:12px;">PNG or JPG up to 5MB</span>
                    </div>
                </div>
                <button style="background:#000; color:#fff; border:none; padding:12px 20px; border-radius:14px; font-size:13px; font-weight:700; cursor:pointer; transition: 0.2s;" onmouseover="this.style.opacity='0.8'" onmouseout="this.style.opacity='1'">Upload</button>
            </div>

            <div class="input-wrap">
                <i class="ph-bold ph-at"></i>
                <input type="text" placeholder="username">
            </div>

            <button class="btn-continue">
                <span>Continue</span>
                <i class="ph-bold ph-arrow-right"></i>
            </button>
        </div>
    </main>

    <script>
        const layers = document.querySelectorAll('.layer');
        let targetX = 0, targetY = 0;
        let currentX = 0, currentY = 0;
        const easing = 0.05;

        // Mouse Parallax
        document.addEventListener('mousemove', (e) => {
            targetX = (window.innerWidth / 2 - e.pageX);
            targetY = (window.innerHeight / 2 - e.pageY);
        });

        // Tilt Parallax
        function handleOrientation(event) {
            targetX = event.gamma * 12; 
            targetY = (event.beta - 45) * 12; 
        }

        // Permission Handlers
        const overlay = document.getElementById('mobile-overlay');
        const enableBtn = document.getElementById('enable-btn');
        if (typeof DeviceOrientationEvent !== 'undefined' && typeof DeviceOrientationEvent.requestPermission === 'function') {
            overlay.style.display = 'flex';
            enableBtn.onclick = () => {
                DeviceOrientationEvent.requestPermission().then(res => {
                    if (res === 'granted') {
                        window.addEventListener('deviceorientation', handleOrientation);
                        overlay.style.display = 'none';
                    }
                });
            };
        } else {
            window.addEventListener('deviceorientation', handleOrientation);
        }

        // Animation Loop
        function animate() {
            currentX += (targetX - currentX) * easing;
            currentY += (targetY - currentY) * easing;
            layers.forEach(layer => {
                const depth = parseFloat(layer.getAttribute('data-depth'));
                let scale = 1.1; 
                if (layer.classList.contains('layer-tree')) scale = 1.5;
                if (layer.classList.contains('layer-ground')) scale = 1.3;
                layer.style.transform = `translate3d(${currentX * depth}px, ${currentY * depth}px, 0) scale(${scale})`;
            });
            requestAnimationFrame(animate);
        }
        animate();
    </script>
</body>
</html>

AI PROMPT

Create a "Genesis Onboarding - Interactive" component. Use Phosphor Icons. Apply glass-morphism / backdrop blur, gradients, layered shadows, hover transitions. Color palette: #e9ecef, #ffffff, #000, #666, #7cb8f7. Layout: Flexbox, full-viewport sizing. Interactivity: mouse tracking, click interactions, continuous animation loop. Includes form input fields.