The spec mentioned to use react? What happened?
Browse files- README.md +8 -5
- components/footer.js +54 -0
- components/navbar.js +78 -0
- index.html +57 -19
- script.js +14 -0
- style.css +14 -22
README.md
CHANGED
|
@@ -1,10 +1,13 @@
|
|
| 1 |
---
|
| 2 |
-
title: Colorful Void Explorer
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: Colorful Void Explorer 🪐
|
| 3 |
+
colorFrom: red
|
| 4 |
+
colorTo: yellow
|
| 5 |
+
emoji: 🐳
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
tags:
|
| 9 |
+
- deepsite-v3
|
| 10 |
---
|
| 11 |
|
| 12 |
+
# Welcome to your new DeepSite project!
|
| 13 |
+
This project was created with [DeepSite](https://huggingface.co/deepsite).
|
components/footer.js
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
class CustomFooter extends HTMLElement {
|
| 2 |
+
connectedCallback() {
|
| 3 |
+
this.attachShadow({ mode: 'open' });
|
| 4 |
+
this.shadowRoot.innerHTML = `
|
| 5 |
+
<style>
|
| 6 |
+
footer {
|
| 7 |
+
background: rgba(15, 23, 42, 0.8);
|
| 8 |
+
backdrop-filter: blur(10px);
|
| 9 |
+
color: #e2e8f0;
|
| 10 |
+
padding: 2rem;
|
| 11 |
+
text-align: center;
|
| 12 |
+
border-top: 1px solid rgba(124, 58, 237, 0.2);
|
| 13 |
+
}
|
| 14 |
+
.footer-content {
|
| 15 |
+
max-width: 1200px;
|
| 16 |
+
margin: 0 auto;
|
| 17 |
+
display: flex;
|
| 18 |
+
flex-direction: column;
|
| 19 |
+
gap: 1.5rem;
|
| 20 |
+
}
|
| 21 |
+
.social-links {
|
| 22 |
+
display: flex;
|
| 23 |
+
justify-content: center;
|
| 24 |
+
gap: 1.5rem;
|
| 25 |
+
}
|
| 26 |
+
.social-links a {
|
| 27 |
+
color: #a78bfa;
|
| 28 |
+
transition: color 0.2s;
|
| 29 |
+
}
|
| 30 |
+
.social-links a:hover {
|
| 31 |
+
color: #8b5cf6;
|
| 32 |
+
}
|
| 33 |
+
.copyright {
|
| 34 |
+
font-size: 0.875rem;
|
| 35 |
+
color: #94a3b8;
|
| 36 |
+
}
|
| 37 |
+
</style>
|
| 38 |
+
<footer>
|
| 39 |
+
<div class="footer-content">
|
| 40 |
+
<div class="social-links">
|
| 41 |
+
<a href="#"><i data-feather="twitter"></i></a>
|
| 42 |
+
<a href="#"><i data-feather="instagram"></i></a>
|
| 43 |
+
<a href="#"><i data-feather="github"></i></a>
|
| 44 |
+
<a href="#"><i data-feather="linkedin"></i></a>
|
| 45 |
+
</div>
|
| 46 |
+
<div class="copyright">
|
| 47 |
+
© 2023 Colorful Void Explorer. All rights reserved.
|
| 48 |
+
</div>
|
| 49 |
+
</div>
|
| 50 |
+
</footer>
|
| 51 |
+
`;
|
| 52 |
+
}
|
| 53 |
+
}
|
| 54 |
+
customElements.define('custom-footer', CustomFooter);
|
components/navbar.js
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
class CustomNavbar extends HTMLElement {
|
| 2 |
+
connectedCallback() {
|
| 3 |
+
this.attachShadow({ mode: 'open' });
|
| 4 |
+
this.shadowRoot.innerHTML = `
|
| 5 |
+
<style>
|
| 6 |
+
nav {
|
| 7 |
+
background: rgba(15, 23, 42, 0.8);
|
| 8 |
+
backdrop-filter: blur(10px);
|
| 9 |
+
padding: 1rem 2rem;
|
| 10 |
+
display: flex;
|
| 11 |
+
justify-content: space-between;
|
| 12 |
+
align-items: center;
|
| 13 |
+
position: sticky;
|
| 14 |
+
top: 0;
|
| 15 |
+
z-index: 50;
|
| 16 |
+
border-bottom: 1px solid rgba(124, 58, 237, 0.2);
|
| 17 |
+
}
|
| 18 |
+
.logo {
|
| 19 |
+
font-weight: bold;
|
| 20 |
+
font-size: 1.5rem;
|
| 21 |
+
background: linear-gradient(90deg, #a855f7, #ec4899);
|
| 22 |
+
-webkit-background-clip: text;
|
| 23 |
+
background-clip: text;
|
| 24 |
+
color: transparent;
|
| 25 |
+
}
|
| 26 |
+
.nav-links {
|
| 27 |
+
display: flex;
|
| 28 |
+
gap: 2rem;
|
| 29 |
+
list-style: none;
|
| 30 |
+
margin: 0;
|
| 31 |
+
padding: 0;
|
| 32 |
+
}
|
| 33 |
+
.nav-links a {
|
| 34 |
+
color: #e2e8f0;
|
| 35 |
+
text-decoration: none;
|
| 36 |
+
font-weight: 500;
|
| 37 |
+
position: relative;
|
| 38 |
+
padding: 0.5rem 0;
|
| 39 |
+
}
|
| 40 |
+
.nav-links a:hover {
|
| 41 |
+
color: #c4b5fd;
|
| 42 |
+
}
|
| 43 |
+
.nav-links a::after {
|
| 44 |
+
content: '';
|
| 45 |
+
position: absolute;
|
| 46 |
+
bottom: 0;
|
| 47 |
+
left: 0;
|
| 48 |
+
width: 0;
|
| 49 |
+
height: 2px;
|
| 50 |
+
background: linear-gradient(90deg, #a855f7, #ec4899);
|
| 51 |
+
transition: width 0.3s ease;
|
| 52 |
+
}
|
| 53 |
+
.nav-links a:hover::after {
|
| 54 |
+
width: 100%;
|
| 55 |
+
}
|
| 56 |
+
@media (max-width: 768px) {
|
| 57 |
+
nav {
|
| 58 |
+
flex-direction: column;
|
| 59 |
+
gap: 1rem;
|
| 60 |
+
}
|
| 61 |
+
.nav-links {
|
| 62 |
+
gap: 1rem;
|
| 63 |
+
}
|
| 64 |
+
}
|
| 65 |
+
</style>
|
| 66 |
+
<nav>
|
| 67 |
+
<div class="logo">Colorful Void</div>
|
| 68 |
+
<ul class="nav-links">
|
| 69 |
+
<li><a href="/">Home</a></li>
|
| 70 |
+
<li><a href="#explore">Explore</a></li>
|
| 71 |
+
<li><a href="#about">About</a></li>
|
| 72 |
+
<li><a href="#contact">Contact</a></li>
|
| 73 |
+
</ul>
|
| 74 |
+
</nav>
|
| 75 |
+
`;
|
| 76 |
+
}
|
| 77 |
+
}
|
| 78 |
+
customElements.define('custom-navbar', CustomNavbar);
|
index.html
CHANGED
|
@@ -1,19 +1,57 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Colorful Void Explorer</title>
|
| 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://unpkg.com/feather-icons"></script>
|
| 11 |
+
<script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.globe.min.js"></script>
|
| 12 |
+
<script src="components/navbar.js"></script>
|
| 13 |
+
<script src="components/footer.js"></script>
|
| 14 |
+
</head>
|
| 15 |
+
<body class="min-h-screen flex flex-col bg-gray-900 text-white">
|
| 16 |
+
<custom-navbar></custom-navbar>
|
| 17 |
+
|
| 18 |
+
<main id="vanta-bg" class="flex-grow flex items-center justify-center p-6">
|
| 19 |
+
<div class="max-w-4xl mx-auto text-center backdrop-blur-sm bg-black/30 p-8 rounded-xl">
|
| 20 |
+
<h1 class="text-5xl font-bold mb-6 bg-gradient-to-r from-purple-500 via-pink-500 to-indigo-500 bg-clip-text text-transparent">
|
| 21 |
+
Colorful Void Explorer
|
| 22 |
+
</h1>
|
| 23 |
+
<p class="text-xl mb-8">
|
| 24 |
+
Journey through an undefined cosmos of colors and imagination
|
| 25 |
+
</p>
|
| 26 |
+
<div class="flex gap-4 justify-center">
|
| 27 |
+
<a href="#explore" class="px-6 py-3 bg-gradient-to-r from-purple-600 to-indigo-600 rounded-full font-medium hover:opacity-90 transition">
|
| 28 |
+
Explore Now
|
| 29 |
+
</a>
|
| 30 |
+
<a href="#learn" class="px-6 py-3 border border-purple-400 rounded-full font-medium hover:bg-purple-900/30 transition">
|
| 31 |
+
Learn More
|
| 32 |
+
</a>
|
| 33 |
+
</div>
|
| 34 |
+
</div>
|
| 35 |
+
</main>
|
| 36 |
+
|
| 37 |
+
<custom-footer></custom-footer>
|
| 38 |
+
|
| 39 |
+
<script src="script.js"></script>
|
| 40 |
+
<script>
|
| 41 |
+
feather.replace();
|
| 42 |
+
VANTA.GLOBE({
|
| 43 |
+
el: "#vanta-bg",
|
| 44 |
+
mouseControls: true,
|
| 45 |
+
touchControls: true,
|
| 46 |
+
gyroControls: false,
|
| 47 |
+
minHeight: 200.00,
|
| 48 |
+
minWidth: 200.00,
|
| 49 |
+
scale: 1.00,
|
| 50 |
+
scaleMobile: 1.00,
|
| 51 |
+
color: 0x8040ff,
|
| 52 |
+
backgroundColor: 0x0
|
| 53 |
+
});
|
| 54 |
+
</script>
|
| 55 |
+
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
|
| 56 |
+
</body>
|
| 57 |
+
</html>
|
script.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Shared functionality
|
| 2 |
+
document.addEventListener('DOMContentLoaded', () => {
|
| 3 |
+
console.log('Cosmic explorer initialized');
|
| 4 |
+
|
| 5 |
+
// Smooth scroll for anchor links
|
| 6 |
+
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
|
| 7 |
+
anchor.addEventListener('click', function (e) {
|
| 8 |
+
e.preventDefault();
|
| 9 |
+
document.querySelector(this.getAttribute('href')).scrollIntoView({
|
| 10 |
+
behavior: 'smooth'
|
| 11 |
+
});
|
| 12 |
+
});
|
| 13 |
+
});
|
| 14 |
+
});
|
style.css
CHANGED
|
@@ -1,28 +1,20 @@
|
|
|
|
|
|
|
|
| 1 |
body {
|
| 2 |
-
|
| 3 |
-
font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
|
| 4 |
}
|
| 5 |
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
}
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
color: rgb(107, 114, 128);
|
| 13 |
-
font-size: 15px;
|
| 14 |
-
margin-bottom: 10px;
|
| 15 |
-
margin-top: 5px;
|
| 16 |
}
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
margin: 0 auto;
|
| 21 |
-
padding: 16px;
|
| 22 |
-
border: 1px solid lightgray;
|
| 23 |
-
border-radius: 16px;
|
| 24 |
-
}
|
| 25 |
-
|
| 26 |
-
.card p:last-child {
|
| 27 |
-
margin-bottom: 0;
|
| 28 |
}
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');
|
| 2 |
+
|
| 3 |
body {
|
| 4 |
+
font-family: 'Space Grotesk', sans-serif;
|
|
|
|
| 5 |
}
|
| 6 |
|
| 7 |
+
/* Custom scrollbar */
|
| 8 |
+
::-webkit-scrollbar {
|
| 9 |
+
width: 8px;
|
| 10 |
}
|
| 11 |
+
::-webkit-scrollbar-track {
|
| 12 |
+
background: #0f172a;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
}
|
| 14 |
+
::-webkit-scrollbar-thumb {
|
| 15 |
+
background: #7e22ce;
|
| 16 |
+
border-radius: 4px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
}
|
| 18 |
+
::-webkit-scrollbar-thumb:hover {
|
| 19 |
+
background: #9333ea;
|
| 20 |
+
}
|