Spaces:
Running
Running
space background for the main viewport - Follow Up Deployment
Browse files- index.html +43 -3
index.html
CHANGED
|
@@ -208,9 +208,25 @@
|
|
| 208 |
|
| 209 |
<!-- Hero Section -->
|
| 210 |
<section id="home" class="min-h-screen flex items-center justify-center relative overflow-hidden pt-16">
|
| 211 |
-
<div class="absolute inset-0 z-0">
|
| 212 |
-
<
|
| 213 |
-
<div class="absolute inset-0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 214 |
</div>
|
| 215 |
|
| 216 |
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 relative z-10 text-center">
|
|
@@ -678,6 +694,30 @@
|
|
| 678 |
</footer>
|
| 679 |
|
| 680 |
<script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 681 |
// Mobile menu toggle
|
| 682 |
document.getElementById('mobile-menu-button').addEventListener('click', function() {
|
| 683 |
const menu = document.getElementById('mobile-menu');
|
|
|
|
| 208 |
|
| 209 |
<!-- Hero Section -->
|
| 210 |
<section id="home" class="min-h-screen flex items-center justify-center relative overflow-hidden pt-16">
|
| 211 |
+
<div class="absolute inset-0 z-0 overflow-hidden">
|
| 212 |
+
<!-- Starfield Background -->
|
| 213 |
+
<div id="starfield" class="absolute inset-0"></div>
|
| 214 |
+
|
| 215 |
+
<!-- Nebula Gradient -->
|
| 216 |
+
<div class="absolute inset-0 bg-gradient-to-br from-purple-900/30 via-blue-900/20 to-black/80"></div>
|
| 217 |
+
|
| 218 |
+
<!-- Subtle Space Texture -->
|
| 219 |
+
<div class="absolute inset-0 opacity-10" style="
|
| 220 |
+
background-image: radial-gradient(circle at center,
|
| 221 |
+
rgba(255,255,255,0.8) 0%,
|
| 222 |
+
transparent 70%);
|
| 223 |
+
background-size: 200% 200%;
|
| 224 |
+
animation: gradientPulse 30s infinite alternate;
|
| 225 |
+
"></div>
|
| 226 |
+
|
| 227 |
+
<!-- Shooting Stars -->
|
| 228 |
+
<div class="shooting-star" style="top: 10%; left: 20%;"></div>
|
| 229 |
+
<div class="shooting-star" style="top: 30%; left: 80%; animation-delay: 3s;"></div>
|
| 230 |
</div>
|
| 231 |
|
| 232 |
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 relative z-10 text-center">
|
|
|
|
| 694 |
</footer>
|
| 695 |
|
| 696 |
<script>
|
| 697 |
+
// Create starfield
|
| 698 |
+
const starfield = document.getElementById('starfield');
|
| 699 |
+
if (starfield) {
|
| 700 |
+
const starsCount = 150;
|
| 701 |
+
for (let i = 0; i < starsCount; i++) {
|
| 702 |
+
const star = document.createElement('div');
|
| 703 |
+
star.classList.add('star');
|
| 704 |
+
|
| 705 |
+
// Random star properties
|
| 706 |
+
const size = Math.random() * 2 + 1;
|
| 707 |
+
const x = Math.random() * 100;
|
| 708 |
+
const y = Math.random() * 100;
|
| 709 |
+
const opacity = Math.random() * 0.8 + 0.2;
|
| 710 |
+
|
| 711 |
+
star.style.width = `${size}px`;
|
| 712 |
+
star.style.height = `${size}px`;
|
| 713 |
+
star.style.left = `${x}%`;
|
| 714 |
+
star.style.top = `${y}%`;
|
| 715 |
+
star.style.opacity = opacity;
|
| 716 |
+
|
| 717 |
+
starfield.appendChild(star);
|
| 718 |
+
}
|
| 719 |
+
}
|
| 720 |
+
|
| 721 |
// Mobile menu toggle
|
| 722 |
document.getElementById('mobile-menu-button').addEventListener('click', function() {
|
| 723 |
const menu = document.getElementById('mobile-menu');
|