Spaces:
Running
Running
Fix all errors
Browse files- about.html +16 -15
- components/footer.js +8 -5
- components/navbar.js +3 -9
- index.html +16 -15
- script.js +10 -2
about.html
CHANGED
|
@@ -7,8 +7,7 @@
|
|
| 7 |
<link rel="stylesheet" href="style.css">
|
| 8 |
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
|
| 10 |
-
|
| 11 |
-
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js"></script>
|
| 12 |
<script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.net.min.js"></script>
|
| 13 |
</head>
|
| 14 |
<body class="bg-darkbg text-white min-h-screen flex flex-col">
|
|
@@ -96,18 +95,20 @@
|
|
| 96 |
<script src="script.js"></script>
|
| 97 |
<script>
|
| 98 |
feather.replace();
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
|
|
|
|
|
|
| 112 |
</body>
|
| 113 |
</html>
|
|
|
|
| 7 |
<link rel="stylesheet" href="style.css">
|
| 8 |
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
|
| 10 |
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js"></script>
|
|
|
|
| 11 |
<script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.net.min.js"></script>
|
| 12 |
</head>
|
| 13 |
<body class="bg-darkbg text-white min-h-screen flex flex-col">
|
|
|
|
| 95 |
<script src="script.js"></script>
|
| 96 |
<script>
|
| 97 |
feather.replace();
|
| 98 |
+
document.addEventListener('DOMContentLoaded', () => {
|
| 99 |
+
VANTA.NET({
|
| 100 |
+
el: "#vanta-bg",
|
| 101 |
+
mouseControls: true,
|
| 102 |
+
touchControls: true,
|
| 103 |
+
gyroControls: false,
|
| 104 |
+
minHeight: 200.00,
|
| 105 |
+
minWidth: 200.00,
|
| 106 |
+
scale: 1.00,
|
| 107 |
+
scaleMobile: 1.00,
|
| 108 |
+
color: 0xf9ff00,
|
| 109 |
+
backgroundColor: 0x0a0a0a
|
| 110 |
+
})
|
| 111 |
+
});
|
| 112 |
+
</script>
|
| 113 |
</body>
|
| 114 |
</html>
|
components/footer.js
CHANGED
|
@@ -74,12 +74,15 @@ class CustomFooter extends HTMLElement {
|
|
| 74 |
<div class="footer-logo">CYBERGLOW</div>
|
| 75 |
<p>Redefining digital experiences with high-voltage design and cyberpunk aesthetics.</p>
|
| 76 |
<div class="social-links">
|
| 77 |
-
<a href="#"><i data-feather="twitter"></i></a>
|
| 78 |
-
<a href="#"><i data-feather="github"></i></a>
|
| 79 |
-
<a href="#"><i data-feather="instagram"></i></a>
|
| 80 |
-
<a href="#"><i data-feather="linkedin"></i></a>
|
| 81 |
</div>
|
| 82 |
-
|
|
|
|
|
|
|
|
|
|
| 83 |
<div>
|
| 84 |
<h3 class="text-lg font-bold mb-3">Quick Links</h3>
|
| 85 |
<div class="footer-links">
|
|
|
|
| 74 |
<div class="footer-logo">CYBERGLOW</div>
|
| 75 |
<p>Redefining digital experiences with high-voltage design and cyberpunk aesthetics.</p>
|
| 76 |
<div class="social-links">
|
| 77 |
+
<a href="#" aria-label="Twitter"><i data-feather="twitter"></i></a>
|
| 78 |
+
<a href="#" aria-label="GitHub"><i data-feather="github"></i></a>
|
| 79 |
+
<a href="#" aria-label="Instagram"><i data-feather="instagram"></i></a>
|
| 80 |
+
<a href="#" aria-label="LinkedIn"><i data-feather="linkedin"></i></a>
|
| 81 |
</div>
|
| 82 |
+
<script>
|
| 83 |
+
feather.replace();
|
| 84 |
+
</script>
|
| 85 |
+
</div>
|
| 86 |
<div>
|
| 87 |
<h3 class="text-lg font-bold mb-3">Quick Links</h3>
|
| 88 |
<div class="footer-links">
|
components/navbar.js
CHANGED
|
@@ -108,8 +108,8 @@ class CustomNavbar extends HTMLElement {
|
|
| 108 |
<li><a href="#explore">Explore</a></li>
|
| 109 |
<li><a href="#contact">Contact</a></li>
|
| 110 |
</ul>
|
| 111 |
-
<button class="mobile-menu-btn"
|
| 112 |
-
|
| 113 |
</button>
|
| 114 |
</nav>
|
| 115 |
<div id="mobile-menu" class="mobile-menu hidden">
|
|
@@ -120,13 +120,7 @@ class CustomNavbar extends HTMLElement {
|
|
| 120 |
<li><a href="#contact">Contact</a></li>
|
| 121 |
</ul>
|
| 122 |
</div>
|
| 123 |
-
|
| 124 |
-
function toggleMobileMenu() {
|
| 125 |
-
const menu = document.getElementById('mobile-menu');
|
| 126 |
-
menu.classList.toggle('hidden');
|
| 127 |
-
}
|
| 128 |
-
</script>
|
| 129 |
-
`;
|
| 130 |
}
|
| 131 |
}
|
| 132 |
customElements.define('custom-navbar', CustomNavbar);
|
|
|
|
| 108 |
<li><a href="#explore">Explore</a></li>
|
| 109 |
<li><a href="#contact">Contact</a></li>
|
| 110 |
</ul>
|
| 111 |
+
<button class="mobile-menu-btn" id="mobile-menu-button">
|
| 112 |
+
<i data-feather="menu"></i>
|
| 113 |
</button>
|
| 114 |
</nav>
|
| 115 |
<div id="mobile-menu" class="mobile-menu hidden">
|
|
|
|
| 120 |
<li><a href="#contact">Contact</a></li>
|
| 121 |
</ul>
|
| 122 |
</div>
|
| 123 |
+
`;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 124 |
}
|
| 125 |
}
|
| 126 |
customElements.define('custom-navbar', CustomNavbar);
|
index.html
CHANGED
|
@@ -7,8 +7,7 @@
|
|
| 7 |
<link rel="stylesheet" href="style.css">
|
| 8 |
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
|
| 10 |
-
|
| 11 |
-
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js"></script>
|
| 12 |
<script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.net.min.js"></script>
|
| 13 |
<script>
|
| 14 |
tailwind.config = {
|
|
@@ -98,19 +97,21 @@
|
|
| 98 |
<script src="script.js"></script>
|
| 99 |
<script>
|
| 100 |
feather.replace();
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
|
|
|
|
|
|
| 114 |
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
|
| 115 |
</body>
|
| 116 |
</html>
|
|
|
|
| 7 |
<link rel="stylesheet" href="style.css">
|
| 8 |
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
|
| 10 |
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js"></script>
|
|
|
|
| 11 |
<script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.net.min.js"></script>
|
| 12 |
<script>
|
| 13 |
tailwind.config = {
|
|
|
|
| 97 |
<script src="script.js"></script>
|
| 98 |
<script>
|
| 99 |
feather.replace();
|
| 100 |
+
document.addEventListener('DOMContentLoaded', () => {
|
| 101 |
+
VANTA.NET({
|
| 102 |
+
el: "#vanta-bg",
|
| 103 |
+
mouseControls: true,
|
| 104 |
+
touchControls: true,
|
| 105 |
+
gyroControls: false,
|
| 106 |
+
minHeight: 200.00,
|
| 107 |
+
minWidth: 200.00,
|
| 108 |
+
scale: 1.00,
|
| 109 |
+
scaleMobile: 1.00,
|
| 110 |
+
color: 0xf9ff00,
|
| 111 |
+
backgroundColor: 0x0a0a0a
|
| 112 |
+
})
|
| 113 |
+
});
|
| 114 |
+
</script>
|
| 115 |
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
|
| 116 |
</body>
|
| 117 |
</html>
|
script.js
CHANGED
|
@@ -28,9 +28,17 @@ document.addEventListener('DOMContentLoaded', () => {
|
|
| 28 |
});
|
| 29 |
});
|
| 30 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
|
| 32 |
// Mobile menu toggle
|
| 33 |
function toggleMobileMenu() {
|
| 34 |
-
const menu = document.getElementById('mobile-menu');
|
| 35 |
menu.classList.toggle('hidden');
|
| 36 |
-
}
|
|
|
|
| 28 |
});
|
| 29 |
});
|
| 30 |
});
|
| 31 |
+
// Initialize mobile menu button
|
| 32 |
+
document.addEventListener('DOMContentLoaded', () => {
|
| 33 |
+
const navbar = document.querySelector('custom-navbar');
|
| 34 |
+
if (navbar) {
|
| 35 |
+
const button = navbar.shadowRoot.getElementById('mobile-menu-button');
|
| 36 |
+
button.addEventListener('click', toggleMobileMenu);
|
| 37 |
+
}
|
| 38 |
+
});
|
| 39 |
|
| 40 |
// Mobile menu toggle
|
| 41 |
function toggleMobileMenu() {
|
| 42 |
+
const menu = document.querySelector('custom-navbar').shadowRoot.getElementById('mobile-menu');
|
| 43 |
menu.classList.toggle('hidden');
|
| 44 |
+
}
|