Astra-Form Pro Landing Page Template

This is a snippet of a high-tech, space-themed landing page I'm building. It features a CSS starfield background, neon variables, and a glassmorphism header design for a futuristic world builder application.
Anonymous
html
02/09/2026 4:16 AM
8.4 KB
23
Indexable
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Astra-Form Pro | World Builder</title>
    <style>
        :root {
            --neon-blue: #00f2ff;
            --deep-space: #05050a;
            --glass: rgba(255, 255, 255, 0.05);
        }

        body {
            background-color: var(--deep-space);
            color: #fff;
            font-family: 'Inter', sans-serif;
            margin: 0;
            overflow-x: hidden;
            scroll-behavior: smooth;
        }

        /* Animated Starfield Background */
        #stars {
            position: fixed;
            width: 100%;
            height: 100%;
            z-index: -1;
            background: radial-gradient(ellipse at bottom, #1B2735 0%, #090A0F 100%);
        }

        header {
            display: flex;
            justify-content: space-between;
            padding: 20px 50px;
            backdrop-filter: blur(10px);
            position: sticky;
            top: 0;
            z-index: 100;
            border-bottom: 1px solid var(--glass);
        }

        .hero {
            height: 90vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
        }

        .hero h1 {
            font-size: 5rem;
            margin: 0;
            background: linear-gradient(to right, #fff, var(--neon-blue));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            filter: drop-shadow(0 0 10px rgba(0,242,255,0.5));
        }

        /* Interactive Gravity Tool */
        .tool-section {
            padding: 100px 50px;
            background: var(--glass);
            margin: 20px;
            border-radius: 20px;
            border: 1px solid rgba(255,255,255,0.1);
        }

        .calc-container {
            max-width: 500px;
            margin: auto;
            text-align: center;
        }

        input {
            background: transparent;
            border: 1px solid var(--neon-blue);
            color: white;
            padding: 10px;
            border-radius: 5px;
            margin: 10px 0;
        }

        .result-display {
            font-size: 2rem;
            color: var(--neon-blue);
            margin-top: 20px;
        }

        /* Portfolio Cards */
        .grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
            padding: 50px;
        }

        .card {
            background: rgba(255, 255, 255, 0.03);
            border-radius: 15px;
            padding: 2px; /* For the gradient border effect */
            background: linear-gradient(45deg, transparent, var(--neon-blue));
            transition: transform 0.3s ease;
        }

        .card-inner {
            background: var(--deep-space);
            padding: 30px;
            border-radius: 13px;
            height: 100%;
        }

        .card:hover {
            transform: translateY(-10px);
        }

        .badge {
            background: #00f2ff33;
            color: var(--neon-blue);
            padding: 5px 10px;
            border-radius: 20px;
            font-size: 0.8rem;
            text-transform: uppercase;
        }

    </style>
</head>
<body>

    <div id="stars"></div>

    <header>
        <div class="logo">ASTRA-FORM</div>
        <nav>PROJECTS | CALCULATOR | CONTACT</nav>
    </header>

    <section class="hero">
        <div class="badge">Next-Gen Terraforming</div>
        <h1>Design Your Legacy.</h1>
        <p>From core composition to atmospheric bioluminescence.</p>
    </section>

    <section class="tool-section">
        <div class="calc-container">
            <h2>Surface Gravity Simulator</h2>
            <p>Enter planet mass (relative to Earth):</p>
            <input type="number" id="massInput" placeholder="Earth Mass (e.g. 1.0)" step="0.1" oninput="calcGravity()">
            <div class="result-display" id="gravityResult">9.8 m/s²</div>
            <p><small>*Based on standard Earth radius for simulation</small></p>
        </div>
    </section>

    <div class="grid">
        <div class="card">
            <div class="card-inner">
                <div class="badge">Stable</div>
                <h3>Veridian Prime</h3>
                <p>Tropical archipelagos with double-moon tidal synchronization.</p>
            </div>
        </div>
        <div class="card">
            <div class="card-inner">
                <div class="badge">Extreme</div>
                <h3>Krios-9</h3>
                <p>Sub-zero methane oceans and crystalline geological structures.</p>
            </div>
        </div>
        <div class="card">
            <div class="card-inner">
                <div class="badge">In Progress</div>
                <h3>Nova-Centauri</h3>
                <p>Ring-system installation and tectonic stabilization in progress.</p>
            </div>
        </div>
    </div>

    <script>
        // Gravity Calculation Logic
        function calcGravity() {
            const mass = document.getElementById('massInput').value;
            const resultDisplay = document.getElementById('gravityResult');
            
            if(mass > 0) {
                // Simplified formula: g = (G * M) / R^2 
                // Using Earth-relative units for simplicity
                const g = (9.8 * mass).toFixed(2);
                resultDisplay.innerText = g + " m/s²";
            } else {
                resultDisplay.innerText = "0.00 m/s²";
            }
        }

        // Particle Starfield Generation (Simulated)
        const starContainer = document.getElementById('stars');
        for (let i = 0; i < 150; i++) {
            const star = document.createElement('div');
            star.style.position = 'absolute';
            star.style.left = Math.random() * 100 + '%';
            star.style.top = Math.random() * 100 + '%';
            star.style.width = Math.random() * 3 + 'px';
            star.style.height = star.style.width;
            star.style.backgroundColor = '#fff';
            star.style.opacity = Math.random();
            star.style.borderRadius = '50%';
            starContainer.appendChild(star);
        }
    </script>
</body>
</html>
Editor is loading...
Leave a Comment