Please make the whole website christmas theme. Maybe with snow effect
Browse files- components/footer.js +20 -2
- index.html +25 -14
- script.js +12 -12
- style.css +26 -14
components/footer.js
CHANGED
|
@@ -4,13 +4,31 @@ class CustomFooter extends HTMLElement {
|
|
| 4 |
this.shadowRoot.innerHTML = `
|
| 5 |
<style>
|
| 6 |
footer {
|
| 7 |
-
background: rgba(
|
| 8 |
backdrop-filter: blur(10px);
|
| 9 |
color: white;
|
| 10 |
padding: 3rem 2rem;
|
| 11 |
text-align: center;
|
| 12 |
-
border-top: 1px solid rgba(
|
|
|
|
|
|
|
| 13 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
.footer-content {
|
| 15 |
max-width: 1200px;
|
| 16 |
margin: 0 auto;
|
|
|
|
| 4 |
this.shadowRoot.innerHTML = `
|
| 5 |
<style>
|
| 6 |
footer {
|
| 7 |
+
background: linear-gradient(to right, rgba(11, 64, 0, 0.8), rgba(139, 0, 0, 0.8));
|
| 8 |
backdrop-filter: blur(10px);
|
| 9 |
color: white;
|
| 10 |
padding: 3rem 2rem;
|
| 11 |
text-align: center;
|
| 12 |
+
border-top: 1px solid rgba(255, 215, 0, 0.5);
|
| 13 |
+
position: relative;
|
| 14 |
+
overflow: hidden;
|
| 15 |
}
|
| 16 |
+
footer::before {
|
| 17 |
+
content: "🎄";
|
| 18 |
+
position: absolute;
|
| 19 |
+
bottom: 0;
|
| 20 |
+
left: 10%;
|
| 21 |
+
font-size: 2rem;
|
| 22 |
+
opacity: 0.3;
|
| 23 |
+
}
|
| 24 |
+
footer::after {
|
| 25 |
+
content: "❄";
|
| 26 |
+
position: absolute;
|
| 27 |
+
bottom: 0;
|
| 28 |
+
right: 10%;
|
| 29 |
+
font-size: 2rem;
|
| 30 |
+
opacity: 0.3;
|
| 31 |
+
}
|
| 32 |
.footer-content {
|
| 33 |
max-width: 1200px;
|
| 34 |
margin: 0 auto;
|
index.html
CHANGED
|
@@ -13,9 +13,9 @@
|
|
| 13 |
<style>
|
| 14 |
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Montserrat:wght@400;600;700&display=swap');
|
| 15 |
.hero-gradient {
|
| 16 |
-
background: linear-gradient(135deg, #
|
| 17 |
}
|
| 18 |
-
|
| 19 |
animation: pulse 2s infinite;
|
| 20 |
}
|
| 21 |
@keyframes pulse {
|
|
@@ -55,15 +55,15 @@
|
|
| 55 |
<script src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
|
| 56 |
<!-- Navigation -->
|
| 57 |
<nav class="relative z-10 bg-black bg-opacity-80 border-b border-yellow-500">
|
| 58 |
-
<!--
|
| 59 |
-
<div class="w-full bg-gradient-to-r from-
|
| 60 |
-
<div class="flex items-center justify-center space-x-2">
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
</div>
|
| 65 |
</div>
|
| 66 |
-
|
| 67 |
<div class="flex justify-between items-center">
|
| 68 |
<div class="flex items-center space-x-2">
|
| 69 |
<i data-feather="zap" class="text-yellow-500 w-6 h-6"></i>
|
|
@@ -111,9 +111,15 @@
|
|
| 111 |
</div>
|
| 112 |
</div>
|
| 113 |
<div class="md:w-1/2 flex justify-center">
|
| 114 |
-
<div class="vr-headset pulse-animation">
|
| 115 |
-
|
| 116 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 117 |
</div>
|
| 118 |
</div>
|
| 119 |
</div>
|
|
@@ -122,7 +128,12 @@
|
|
| 122 |
<section id="features" class="relative z-10 py-20 bg-black bg-opacity-90">
|
| 123 |
<div class="container mx-auto px-6">
|
| 124 |
<h2 class="text-4xl font-bold text-center mb-16 font-['Bebas+Neue'] tracking-wider">
|
| 125 |
-
<span class="text-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 126 |
</h2>
|
| 127 |
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
|
| 128 |
<!-- Feature 1 -->
|
|
|
|
| 13 |
<style>
|
| 14 |
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Montserrat:wght@400;600;700&display=swap');
|
| 15 |
.hero-gradient {
|
| 16 |
+
background: linear-gradient(135deg, #0a2e38 0%, #1a1a1a 50%, #3a0000 100%);
|
| 17 |
}
|
| 18 |
+
.pulse-animation {
|
| 19 |
animation: pulse 2s infinite;
|
| 20 |
}
|
| 21 |
@keyframes pulse {
|
|
|
|
| 55 |
<script src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
|
| 56 |
<!-- Navigation -->
|
| 57 |
<nav class="relative z-10 bg-black bg-opacity-80 border-b border-yellow-500">
|
| 58 |
+
<!-- Christmas Banner -->
|
| 59 |
+
<div class="w-full bg-gradient-to-r from-green-700 via-red-600 to-green-700 text-center py-2 px-4 animate-pulse">
|
| 60 |
+
<div class="flex items-center justify-center space-x-2">
|
| 61 |
+
<i data-feather="gift" class="text-white"></i>
|
| 62 |
+
<span class="text-white font-bold">Merry Christmas! Get 15% off all plans with code HOLIDAY15</span>
|
| 63 |
+
<i data-feather="gift" class="text-white"></i>
|
| 64 |
+
</div>
|
| 65 |
</div>
|
| 66 |
+
<div class="container mx-auto px-6 py-4">
|
| 67 |
<div class="flex justify-between items-center">
|
| 68 |
<div class="flex items-center space-x-2">
|
| 69 |
<i data-feather="zap" class="text-yellow-500 w-6 h-6"></i>
|
|
|
|
| 111 |
</div>
|
| 112 |
</div>
|
| 113 |
<div class="md:w-1/2 flex justify-center">
|
| 114 |
+
<div class="vr-headset pulse-animation relative">
|
| 115 |
+
<img src="https://huggingface.co/spaces/Fazbeeer/mindmaster-vr-arena-clone/resolve/main/images/Screen_Shot_2025-10-31_at_9.36.06_AM-removebg-preview%20(1).png" alt="VR Headset" class="rounded-lg shadow-2xl mx-auto w-full h-auto max-w-md object-contain">
|
| 116 |
+
<div class="absolute -top-4 -left-4 w-16 h-16 bg-red-500 rounded-full flex items-center justify-center text-white text-2xl">
|
| 117 |
+
<i data-feather="gift"></i>
|
| 118 |
+
</div>
|
| 119 |
+
<div class="absolute -bottom-4 -right-4 w-16 h-16 bg-green-500 rounded-full flex items-center justify-center text-white text-2xl">
|
| 120 |
+
<i data-feather="star"></i>
|
| 121 |
+
</div>
|
| 122 |
+
</div>
|
| 123 |
</div>
|
| 124 |
</div>
|
| 125 |
</div>
|
|
|
|
| 128 |
<section id="features" class="relative z-10 py-20 bg-black bg-opacity-90">
|
| 129 |
<div class="container mx-auto px-6">
|
| 130 |
<h2 class="text-4xl font-bold text-center mb-16 font-['Bebas+Neue'] tracking-wider">
|
| 131 |
+
<span class="text-red-500">TRAIN</span> <span class="text-green-500">YOUR</span> <span class="text-white">MIND</span>
|
| 132 |
+
<div class="mt-4 text-xl text-yellow-300 flex justify-center items-center">
|
| 133 |
+
<i data-feather="star" class="w-6 h-6 mx-2"></i>
|
| 134 |
+
<span>Holiday Special</span>
|
| 135 |
+
<i data-feather="star" class="w-6 h-6 mx-2"></i>
|
| 136 |
+
</div>
|
| 137 |
</h2>
|
| 138 |
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
|
| 139 |
<!-- Feature 1 -->
|
script.js
CHANGED
|
@@ -67,18 +67,18 @@ const loadTranslateStyles = () => {
|
|
| 67 |
clearInterval(translateInterval);
|
| 68 |
}
|
| 69 |
}, 100);
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
document.body.appendChild(
|
| 82 |
}
|
| 83 |
// Smooth scrolling for anchor links
|
| 84 |
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
|
|
|
|
| 67 |
clearInterval(translateInterval);
|
| 68 |
}
|
| 69 |
}, 100);
|
| 70 |
+
// Create snowflakes
|
| 71 |
+
const snowflakesCount = 75;
|
| 72 |
+
for (let i = 0; i < snowflakesCount; i++) {
|
| 73 |
+
const flake = document.createElement('div');
|
| 74 |
+
flake.className = 'snowflake';
|
| 75 |
+
flake.innerHTML = '❄';
|
| 76 |
+
flake.style.left = `${Math.random() * 100}%`;
|
| 77 |
+
flake.style.opacity = Math.random();
|
| 78 |
+
flake.style.animationDuration = `${Math.random() * 3 + 2}s`;
|
| 79 |
+
flake.style.animationDelay = `${Math.random() * 5}s`;
|
| 80 |
+
flake.style.fontSize = `${Math.random() * 10 + 10}px`;
|
| 81 |
+
document.body.appendChild(flake);
|
| 82 |
}
|
| 83 |
// Smooth scrolling for anchor links
|
| 84 |
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
|
style.css
CHANGED
|
@@ -6,21 +6,32 @@ body {
|
|
| 6 |
overflow-x: hidden;
|
| 7 |
color: white;
|
| 8 |
}
|
| 9 |
-
@keyframes
|
| 10 |
-
0% {
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
}
|
| 14 |
-
|
| 15 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
position: fixed;
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
}
|
| 22 |
|
| 23 |
-
/*
|
| 24 |
body::after {
|
| 25 |
content: "";
|
| 26 |
position: fixed;
|
|
@@ -29,8 +40,9 @@ body::after {
|
|
| 29 |
width: 100%;
|
| 30 |
height: 100%;
|
| 31 |
background:
|
| 32 |
-
|
| 33 |
-
|
|
|
|
| 34 |
pointer-events: none;
|
| 35 |
z-index: -1;
|
| 36 |
}
|
|
|
|
| 6 |
overflow-x: hidden;
|
| 7 |
color: white;
|
| 8 |
}
|
| 9 |
+
@keyframes snow {
|
| 10 |
+
0% {
|
| 11 |
+
transform: translateY(-10vh) rotate(0deg);
|
| 12 |
+
opacity: 0;
|
| 13 |
+
}
|
| 14 |
+
10% { opacity: 1; }
|
| 15 |
+
90% { opacity: 1; }
|
| 16 |
+
100% {
|
| 17 |
+
transform: translateY(100vh) rotate(360deg);
|
| 18 |
+
opacity: 0;
|
| 19 |
+
}
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
.snowflake {
|
| 23 |
position: fixed;
|
| 24 |
+
top: 0;
|
| 25 |
+
color: white;
|
| 26 |
+
user-select: none;
|
| 27 |
+
pointer-events: none;
|
| 28 |
+
z-index: 1;
|
| 29 |
+
animation-name: snow;
|
| 30 |
+
animation-timing-function: linear;
|
| 31 |
+
animation-iteration-count: infinite;
|
| 32 |
}
|
| 33 |
|
| 34 |
+
/* Holiday gradient overlay */
|
| 35 |
body::after {
|
| 36 |
content: "";
|
| 37 |
position: fixed;
|
|
|
|
| 40 |
width: 100%;
|
| 41 |
height: 100%;
|
| 42 |
background:
|
| 43 |
+
linear-gradient(to bottom,
|
| 44 |
+
rgba(139, 0, 0, 0.1) 0%,
|
| 45 |
+
rgba(0, 100, 0, 0.1) 100%);
|
| 46 |
pointer-events: none;
|
| 47 |
z-index: -1;
|
| 48 |
}
|