| 
 | 1 | +<!-- Asset For The Background -->  | 
 | 2 | +<!DOCTYPE html>  | 
 | 3 | +<html lang="en">  | 
 | 4 | +<head>  | 
 | 5 | +  <meta charset="UTF-8">  | 
 | 6 | +  <meta name="viewport" content="width=device-width, initial-scale=1.0">  | 
 | 7 | + | 
 | 8 | + | 
 | 9 | +  <style>  | 
 | 10 | +    :root {  | 
 | 11 | +      --fade-dur: 500ms;  | 
 | 12 | +      --logo-size: 100px;  | 
 | 13 | +    }  | 
 | 14 | + | 
 | 15 | +    * {  | 
 | 16 | +      box-sizing: border-box;  | 
 | 17 | +      margin: 0;  | 
 | 18 | +      padding: 0;  | 
 | 19 | +    }  | 
 | 20 | + | 
 | 21 | +    body {  | 
 | 22 | +      height: 100vh;  | 
 | 23 | +      width: 100vw;  | 
 | 24 | +      display: flex;  | 
 | 25 | +      justify-content: center;  | 
 | 26 | +      align-items: center;  | 
 | 27 | +      background: transparent;  | 
 | 28 | +      background-size: 400% 400%;  | 
 | 29 | +      animation: gradientMove 10s ease infinite;  | 
 | 30 | +      overflow: hidden;  | 
 | 31 | +      font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;  | 
 | 32 | +      color: white;  | 
 | 33 | +      position: relative;  | 
 | 34 | +    }  | 
 | 35 | + | 
 | 36 | +    @keyframes gradientMove {  | 
 | 37 | +      0% { background-position: 0% 50%; }  | 
 | 38 | +      50% { background-position: 100% 50%; }  | 
 | 39 | +      100% { background-position: 0% 50%; }  | 
 | 40 | +    }  | 
 | 41 | + | 
 | 42 | +    /* Falling Dots (Snow) */  | 
 | 43 | +    .dot {  | 
 | 44 | +      position: absolute;  | 
 | 45 | +      background: white;  | 
 | 46 | +      border-radius: 50%;  | 
 | 47 | +      opacity: 0.4;  | 
 | 48 | +      top: -10px;  | 
 | 49 | +      animation: fall linear infinite;  | 
 | 50 | +    }  | 
 | 51 | + | 
 | 52 | +    @keyframes fall {  | 
 | 53 | +      0% {  | 
 | 54 | +        transform: translateY(0) scale(1);  | 
 | 55 | +        opacity: 0.8;  | 
 | 56 | +      }  | 
 | 57 | +      100% {  | 
 | 58 | +        transform: translateY(110vh) scale(1.2);  | 
 | 59 | +        opacity: 0.2;  | 
 | 60 | +      }  | 
 | 61 | +    }  | 
 | 62 | + | 
 | 63 | +    | 
 | 64 | +    .container {  | 
 | 65 | +      display: flex;  | 
 | 66 | +      align-items: center;  | 
 | 67 | +      gap: 40px;  | 
 | 68 | +      z-index: 10;  | 
 | 69 | +      text-align: center;  | 
 | 70 | +    }  | 
 | 71 | + | 
 | 72 | +    .text-section {  | 
 | 73 | +      display: flex;  | 
 | 74 | +      flex-direction: column;  | 
 | 75 | +      align-items: center;  | 
 | 76 | +    }  | 
 | 77 | + | 
 | 78 | +    h1 {  | 
 | 79 | +      font-size: 64px;  | 
 | 80 | +      line-height: 1;  | 
 | 81 | +    }  | 
 | 82 | + | 
 | 83 | +    h1:first-child {  | 
 | 84 | +      color: #808080;  | 
 | 85 | +    }  | 
 | 86 | + | 
 | 87 | +    h1:last-child {  | 
 | 88 | +      color: white;  | 
 | 89 | +    }  | 
 | 90 | + | 
 | 91 | +    .text-container {  | 
 | 92 | +      position: relative;  | 
 | 93 | +      display: inline-block;  | 
 | 94 | +      padding-bottom: 8px;  | 
 | 95 | +    }  | 
 | 96 | + | 
 | 97 | +    .underline {  | 
 | 98 | +      position: absolute;  | 
 | 99 | +      bottom: 0;  | 
 | 100 | +      left: 0;  | 
 | 101 | +      height: 3px;  | 
 | 102 | +      width: 100%;  | 
 | 103 | +      background: linear-gradient(90deg, #818cf8, #a78bfa);  | 
 | 104 | +      border-radius: 10px;  | 
 | 105 | +      box-shadow: 0 0 10px #a78bfa;  | 
 | 106 | +    }  | 
 | 107 | + | 
 | 108 | +    h2 {  | 
 | 109 | +      font-size: 32px;  | 
 | 110 | +      margin-top: 10px;  | 
 | 111 | +      color: white;  | 
 | 112 | +      font-weight: 500;  | 
 | 113 | +    }  | 
 | 114 | + | 
 | 115 | +    #Changing-Text {  | 
 | 116 | +      display: inline-block;  | 
 | 117 | +      opacity: 1;  | 
 | 118 | +      transition: opacity var(--fade-dur) ease;  | 
 | 119 | +      margin-left: 8px;  | 
 | 120 | +    }  | 
 | 121 | + | 
 | 122 | +    .fade-out { opacity: 0; }  | 
 | 123 | +    .fade-in { opacity: 1; }  | 
 | 124 | + | 
 | 125 | +    .logo {  | 
 | 126 | +      width: var(--logo-size);  | 
 | 127 | +      height: var(--logo-size);  | 
 | 128 | +      user-select: none;  | 
 | 129 | +    }  | 
 | 130 | +  </style>  | 
 | 131 | +</head>  | 
 | 132 | +<body>  | 
 | 133 | + | 
 | 134 | +  <!-- Snow dots -->  | 
 | 135 | +  <script>  | 
 | 136 | +    const numDots = 1000;  | 
 | 137 | +    for (let i = 0; i < numDots; i++) {  | 
 | 138 | +      const dot = document.createElement('div');  | 
 | 139 | +      dot.classList.add('dot');  | 
 | 140 | +      const size = Math.random() * 4 + 2;  | 
 | 141 | +      dot.style.width = `${size}px`;  | 
 | 142 | +      dot.style.height = `${size}px`;  | 
 | 143 | +      dot.style.left = `${Math.random() * 100}%`;  | 
 | 144 | +      dot.style.animationDuration = `${1 + Math.random() * 10}s`;  | 
 | 145 | +      dot.style.animationDelay = `${Math.random() * 5}s`;  | 
 | 146 | +      document.body.appendChild(dot);  | 
 | 147 | + | 
 | 148 | +     | 
 | 149 | +      dot.addEventListener("animationiteration", () => {  | 
 | 150 | +        dot.style.left = `${Math.random() * 100}%`;  | 
 | 151 | +        dot.style.animationDuration = `${4 + Math.random() * 8}s`;  | 
 | 152 | +      });  | 
 | 153 | +    }  | 
 | 154 | +  </script>  | 
 | 155 | + | 
 | 156 | +  <div class="container">  | 
 | 157 | +    <div class="text-section">  | 
 | 158 | +      <div class="text-container">  | 
 | 159 | +        <h1 style="color: #E1D9D1;">Bloxcraft <span style="color: white;">UBG</span></h1>  | 
 | 160 | +        <h2><span id="Changing-Text" style="color:#E1D9D1;">T00ls</span></h2>  | 
 | 161 | +        <div class="underline"></div>  | 
 | 162 | +      </div>  | 
 | 163 | +    </div>  | 
 | 164 | + | 
 | 165 | +    <img src="https://bloxcraft-ubg.pages.dev/bloxcraft_transparent.png" alt="Logo" class="logo">  | 
 | 166 | +  </div>  | 
 | 167 | + | 
 | 168 | +  <script>  | 
 | 169 | +    const words = [  | 
 | 170 | +      "T00ls",  | 
 | 171 | +      "Tools"  | 
 | 172 | +    ];  | 
 | 173 | + | 
 | 174 | +    const textElement = document.getElementById("Changing-Text");  | 
 | 175 | +    let index = 0;  | 
 | 176 | + | 
 | 177 | +    function changeWord() {  | 
 | 178 | +      textElement.classList.add("fade-out");  | 
 | 179 | +      setTimeout(() => {  | 
 | 180 | +        index = (index + 1) % words.length;  | 
 | 181 | +        textElement.textContent = words[index];  | 
 | 182 | +        textElement.classList.remove("fade-out");  | 
 | 183 | +        textElement.classList.add("fade-in");  | 
 | 184 | +        setTimeout(() => textElement.classList.remove("fade-in"), 600);  | 
 | 185 | +      }, 600);  | 
 | 186 | +    }  | 
 | 187 | + | 
 | 188 | +    setInterval(changeWord, 2200);  | 
 | 189 | +  </script>  | 
 | 190 | +</body>  | 
 | 191 | +</html>  | 
0 commit comments