Spaces:
Running
Running
try again, darker and more consistent/modern
Browse files- README.md +8 -5
- components/footer.js +125 -0
- components/navbar.js +100 -0
- index.html +105 -19
- script.js +26 -0
- style.css +41 -18
README.md
CHANGED
|
@@ -1,10 +1,13 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: VoidScape Noir π
|
| 3 |
+
colorFrom: pink
|
| 4 |
+
colorTo: blue
|
| 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,125 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
class CustomFooter extends HTMLElement {
|
| 2 |
+
connectedCallback() {
|
| 3 |
+
this.attachShadow({ mode: 'open' });
|
| 4 |
+
this.shadowRoot.innerHTML = `
|
| 5 |
+
<style>
|
| 6 |
+
:host {
|
| 7 |
+
display: block;
|
| 8 |
+
background-color: rgba(17, 24, 39, 0.8);
|
| 9 |
+
border-top: 1px solid rgba(255, 255, 255, 0.1);
|
| 10 |
+
padding: 3rem 0;
|
| 11 |
+
margin-top: 4rem;
|
| 12 |
+
}
|
| 13 |
+
|
| 14 |
+
.footer-content {
|
| 15 |
+
max-width: 1440px;
|
| 16 |
+
margin: 0 auto;
|
| 17 |
+
padding: 0 2rem;
|
| 18 |
+
display: grid;
|
| 19 |
+
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
| 20 |
+
gap: 2rem;
|
| 21 |
+
}
|
| 22 |
+
|
| 23 |
+
.footer-column h3 {
|
| 24 |
+
color: white;
|
| 25 |
+
font-weight: 600;
|
| 26 |
+
margin-bottom: 1.5rem;
|
| 27 |
+
font-size: 1.125rem;
|
| 28 |
+
}
|
| 29 |
+
|
| 30 |
+
.footer-column ul {
|
| 31 |
+
list-style: none;
|
| 32 |
+
padding: 0;
|
| 33 |
+
margin: 0;
|
| 34 |
+
}
|
| 35 |
+
|
| 36 |
+
.footer-column li {
|
| 37 |
+
margin-bottom: 0.75rem;
|
| 38 |
+
}
|
| 39 |
+
|
| 40 |
+
.footer-column a {
|
| 41 |
+
color: rgba(255, 255, 255, 0.6);
|
| 42 |
+
transition: color 0.2s;
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
.footer-column a:hover {
|
| 46 |
+
color: white;
|
| 47 |
+
}
|
| 48 |
+
|
| 49 |
+
.social-links {
|
| 50 |
+
display: flex;
|
| 51 |
+
gap: 1rem;
|
| 52 |
+
margin-top: 1.5rem;
|
| 53 |
+
}
|
| 54 |
+
|
| 55 |
+
.social-links a {
|
| 56 |
+
display: flex;
|
| 57 |
+
align-items: center;
|
| 58 |
+
justify-content: center;
|
| 59 |
+
width: 36px;
|
| 60 |
+
height: 36px;
|
| 61 |
+
border-radius: 50%;
|
| 62 |
+
background-color: rgba(255, 255, 255, 0.1);
|
| 63 |
+
transition: all 0.2s;
|
| 64 |
+
}
|
| 65 |
+
|
| 66 |
+
.social-links a:hover {
|
| 67 |
+
background-color: rgba(255, 255, 255, 0.2);
|
| 68 |
+
transform: translateY(-2px);
|
| 69 |
+
}
|
| 70 |
+
|
| 71 |
+
.copyright {
|
| 72 |
+
text-align: center;
|
| 73 |
+
margin-top: 3rem;
|
| 74 |
+
padding-top: 2rem;
|
| 75 |
+
border-top: 1px solid rgba(255, 255, 255, 0.1);
|
| 76 |
+
color: rgba(255, 255, 255, 0.4);
|
| 77 |
+
font-size: 0.875rem;
|
| 78 |
+
}
|
| 79 |
+
</style>
|
| 80 |
+
<div class="footer-content">
|
| 81 |
+
<div class="footer-column">
|
| 82 |
+
<h3>Product</h3>
|
| 83 |
+
<ul>
|
| 84 |
+
<li><a href="#">Features</a></li>
|
| 85 |
+
<li><a href="#">Pricing</a></li>
|
| 86 |
+
<li><a href="#">Documentation</a></li>
|
| 87 |
+
<li><a href="#">Releases</a></li>
|
| 88 |
+
</ul>
|
| 89 |
+
</div>
|
| 90 |
+
<div class="footer-column">
|
| 91 |
+
<h3>Company</h3>
|
| 92 |
+
<ul>
|
| 93 |
+
<li><a href="#">About</a></li>
|
| 94 |
+
<li><a href="#">Careers</a></li>
|
| 95 |
+
<li><a href="#">Press</a></li>
|
| 96 |
+
<li><a href="#">Contact</a></li>
|
| 97 |
+
</ul>
|
| 98 |
+
</div>
|
| 99 |
+
<div class="footer-column">
|
| 100 |
+
<h3>Resources</h3>
|
| 101 |
+
<ul>
|
| 102 |
+
<li><a href="#">Community</a></li>
|
| 103 |
+
<li><a href="#">Help Center</a></li>
|
| 104 |
+
<li><a href="#">Status</a></li>
|
| 105 |
+
<li><a href="#">API</a></li>
|
| 106 |
+
</ul>
|
| 107 |
+
</div>
|
| 108 |
+
<div class="footer-column">
|
| 109 |
+
<h3>Connect</h3>
|
| 110 |
+
<div class="social-links">
|
| 111 |
+
<a href="#"><i data-feather="twitter"></i></a>
|
| 112 |
+
<a href="#"><i data-feather="github"></i></a>
|
| 113 |
+
<a href="#"><i data-feather="linkedin"></i></a>
|
| 114 |
+
<a href="#"><i data-feather="instagram"></i></a>
|
| 115 |
+
</div>
|
| 116 |
+
</div>
|
| 117 |
+
</div>
|
| 118 |
+
<div class="copyright">
|
| 119 |
+
© ${new Date().getFullYear()} VoidScape Noir. All rights reserved.
|
| 120 |
+
</div>
|
| 121 |
+
`;
|
| 122 |
+
}
|
| 123 |
+
}
|
| 124 |
+
|
| 125 |
+
customElements.define('custom-footer', CustomFooter);
|
components/navbar.js
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
class CustomNavbar extends HTMLElement {
|
| 2 |
+
connectedCallback() {
|
| 3 |
+
this.attachShadow({ mode: 'open' });
|
| 4 |
+
this.shadowRoot.innerHTML = `
|
| 5 |
+
<style>
|
| 6 |
+
:host {
|
| 7 |
+
display: block;
|
| 8 |
+
width: 100%;
|
| 9 |
+
position: sticky;
|
| 10 |
+
top: 0;
|
| 11 |
+
z-index: 50;
|
| 12 |
+
backdrop-filter: blur(10px);
|
| 13 |
+
background-color: rgba(17, 24, 39, 0.8);
|
| 14 |
+
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
|
| 15 |
+
}
|
| 16 |
+
|
| 17 |
+
nav {
|
| 18 |
+
display: flex;
|
| 19 |
+
justify-content: space-between;
|
| 20 |
+
align-items: center;
|
| 21 |
+
padding: 1rem 2rem;
|
| 22 |
+
max-width: 1440px;
|
| 23 |
+
margin: 0 auto;
|
| 24 |
+
}
|
| 25 |
+
|
| 26 |
+
.logo {
|
| 27 |
+
font-weight: 700;
|
| 28 |
+
font-size: 1.25rem;
|
| 29 |
+
background: linear-gradient(90deg, #0ea5e9, #8b5cf6);
|
| 30 |
+
-webkit-background-clip: text;
|
| 31 |
+
background-clip: text;
|
| 32 |
+
color: transparent;
|
| 33 |
+
}
|
| 34 |
+
|
| 35 |
+
.nav-links {
|
| 36 |
+
display: flex;
|
| 37 |
+
gap: 1.5rem;
|
| 38 |
+
}
|
| 39 |
+
|
| 40 |
+
.nav-links a {
|
| 41 |
+
color: rgba(255, 255, 255, 0.8);
|
| 42 |
+
font-weight: 500;
|
| 43 |
+
transition: all 0.2s;
|
| 44 |
+
position: relative;
|
| 45 |
+
}
|
| 46 |
+
|
| 47 |
+
.nav-links a:hover {
|
| 48 |
+
color: white;
|
| 49 |
+
}
|
| 50 |
+
|
| 51 |
+
.nav-links a::after {
|
| 52 |
+
content: '';
|
| 53 |
+
position: absolute;
|
| 54 |
+
bottom: -4px;
|
| 55 |
+
left: 0;
|
| 56 |
+
width: 0;
|
| 57 |
+
height: 2px;
|
| 58 |
+
background: linear-gradient(90deg, #0ea5e9, #8b5cf6);
|
| 59 |
+
transition: width 0.3s;
|
| 60 |
+
}
|
| 61 |
+
|
| 62 |
+
.nav-links a:hover::after {
|
| 63 |
+
width: 100%;
|
| 64 |
+
}
|
| 65 |
+
|
| 66 |
+
.mobile-menu-btn {
|
| 67 |
+
display: none;
|
| 68 |
+
background: none;
|
| 69 |
+
border: none;
|
| 70 |
+
color: white;
|
| 71 |
+
cursor: pointer;
|
| 72 |
+
}
|
| 73 |
+
|
| 74 |
+
@media (max-width: 768px) {
|
| 75 |
+
.nav-links {
|
| 76 |
+
display: none;
|
| 77 |
+
}
|
| 78 |
+
|
| 79 |
+
.mobile-menu-btn {
|
| 80 |
+
display: block;
|
| 81 |
+
}
|
| 82 |
+
}
|
| 83 |
+
</style>
|
| 84 |
+
<nav>
|
| 85 |
+
<a href="/" class="logo">VOIDSCAPE</a>
|
| 86 |
+
<div class="nav-links">
|
| 87 |
+
<a href="#">Features</a>
|
| 88 |
+
<a href="#">Pricing</a>
|
| 89 |
+
<a href="#">Docs</a>
|
| 90 |
+
<a href="#">Contact</a>
|
| 91 |
+
</div>
|
| 92 |
+
<button class="mobile-menu-btn">
|
| 93 |
+
<i data-feather="menu"></i>
|
| 94 |
+
</button>
|
| 95 |
+
</nav>
|
| 96 |
+
`;
|
| 97 |
+
}
|
| 98 |
+
}
|
| 99 |
+
|
| 100 |
+
customElements.define('custom-navbar', CustomNavbar);
|
index.html
CHANGED
|
@@ -1,19 +1,105 @@
|
|
| 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" class="dark">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>VoidScape Noir</title>
|
| 7 |
+
<link rel="stylesheet" href="style.css">
|
| 8 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
+
<script>
|
| 10 |
+
tailwind.config = {
|
| 11 |
+
darkMode: 'class',
|
| 12 |
+
theme: {
|
| 13 |
+
extend: {
|
| 14 |
+
colors: {
|
| 15 |
+
primary: {
|
| 16 |
+
50: '#f0f9ff',
|
| 17 |
+
100: '#e0f2fe',
|
| 18 |
+
200: '#bae6fd',
|
| 19 |
+
300: '#7dd3fc',
|
| 20 |
+
400: '#38bdf8',
|
| 21 |
+
500: '#0ea5e9',
|
| 22 |
+
600: '#0284c7',
|
| 23 |
+
700: '#0369a1',
|
| 24 |
+
800: '#075985',
|
| 25 |
+
900: '#0c4a6e',
|
| 26 |
+
},
|
| 27 |
+
secondary: {
|
| 28 |
+
50: '#f5f3ff',
|
| 29 |
+
100: '#ede9fe',
|
| 30 |
+
200: '#ddd6fe',
|
| 31 |
+
300: '#c4b5fd',
|
| 32 |
+
400: '#a78bfa',
|
| 33 |
+
500: '#8b5cf6',
|
| 34 |
+
600: '#7c3aed',
|
| 35 |
+
700: '#6d28d9',
|
| 36 |
+
800: '#5b21b6',
|
| 37 |
+
900: '#4c1d95',
|
| 38 |
+
}
|
| 39 |
+
}
|
| 40 |
+
}
|
| 41 |
+
}
|
| 42 |
+
}
|
| 43 |
+
</script>
|
| 44 |
+
<script src="https://unpkg.com/feather-icons"></script>
|
| 45 |
+
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
|
| 46 |
+
</head>
|
| 47 |
+
<body class="bg-gray-900 text-gray-100 min-h-screen">
|
| 48 |
+
<custom-navbar></custom-navbar>
|
| 49 |
+
|
| 50 |
+
<main class="container mx-auto px-4 py-12">
|
| 51 |
+
<section class="max-w-4xl mx-auto">
|
| 52 |
+
<div class="bg-gray-800 rounded-xl p-8 shadow-2xl border border-gray-700">
|
| 53 |
+
<h1 class="text-4xl font-bold mb-6 text-transparent bg-clip-text bg-gradient-to-r from-primary-500 to-secondary-500">
|
| 54 |
+
Welcome to the Void
|
| 55 |
+
</h1>
|
| 56 |
+
<p class="text-gray-300 mb-8 text-lg leading-relaxed">
|
| 57 |
+
Experience the depth of darkness with our modern interface. Every element is crafted to immerse you in a seamless digital abyss.
|
| 58 |
+
</p>
|
| 59 |
+
<div class="flex flex-wrap gap-4">
|
| 60 |
+
<a href="#" class="px-6 py-3 bg-primary-600 hover:bg-primary-700 rounded-lg font-medium transition-all duration-300 transform hover:scale-105">
|
| 61 |
+
Explore the Darkness
|
| 62 |
+
</a>
|
| 63 |
+
<a href="#" class="px-6 py-3 border border-gray-600 hover:border-gray-500 rounded-lg font-medium transition-all duration-300 hover:bg-gray-800">
|
| 64 |
+
Learn More
|
| 65 |
+
</a>
|
| 66 |
+
</div>
|
| 67 |
+
</div>
|
| 68 |
+
|
| 69 |
+
<div class="grid md:grid-cols-3 gap-8 mt-16">
|
| 70 |
+
<div class="bg-gray-800 rounded-xl p-6 border border-gray-700 hover:border-primary-500 transition-all duration-300">
|
| 71 |
+
<div class="w-12 h-12 bg-primary-900 rounded-lg flex items-center justify-center mb-4">
|
| 72 |
+
<i data-feather="moon" class="text-primary-400"></i>
|
| 73 |
+
</div>
|
| 74 |
+
<h3 class="text-xl font-semibold mb-2">Dark UI</h3>
|
| 75 |
+
<p class="text-gray-400">Carefully designed components that respect your eyes in low-light environments.</p>
|
| 76 |
+
</div>
|
| 77 |
+
<div class="bg-gray-800 rounded-xl p-6 border border-gray-700 hover:border-secondary-500 transition-all duration-300">
|
| 78 |
+
<div class="w-12 h-12 bg-secondary-900 rounded-lg flex items-center justify-center mb-4">
|
| 79 |
+
<i data-feather="cpu" class="text-secondary-400"></i>
|
| 80 |
+
</div>
|
| 81 |
+
<h3 class="text-xl font-semibold mb-2">Modern Tech</h3>
|
| 82 |
+
<p class="text-gray-400">Built with the latest web technologies for a smooth experience.</p>
|
| 83 |
+
</div>
|
| 84 |
+
<div class="bg-gray-800 rounded-xl p-6 border border-gray-700 hover:border-gray-500 transition-all duration-300">
|
| 85 |
+
<div class="w-12 h-12 bg-gray-700 rounded-lg flex items-center justify-center mb-4">
|
| 86 |
+
<i data-feather="code" class="text-gray-300"></i>
|
| 87 |
+
</div>
|
| 88 |
+
<h3 class="text-xl font-semibold mb-2">Clean Code</h3>
|
| 89 |
+
<p class="text-gray-400">Semantic and accessible markup with optimized performance.</p>
|
| 90 |
+
</div>
|
| 91 |
+
</div>
|
| 92 |
+
</section>
|
| 93 |
+
</main>
|
| 94 |
+
|
| 95 |
+
<custom-footer></custom-footer>
|
| 96 |
+
|
| 97 |
+
<script src="components/navbar.js"></script>
|
| 98 |
+
<script src="components/footer.js"></script>
|
| 99 |
+
<script src="script.js"></script>
|
| 100 |
+
<script>
|
| 101 |
+
feather.replace();
|
| 102 |
+
</script>
|
| 103 |
+
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
|
| 104 |
+
</body>
|
| 105 |
+
</html>
|
script.js
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
document.addEventListener('DOMContentLoaded', () => {
|
| 2 |
+
// Initialize animations
|
| 3 |
+
const animatedElements = document.querySelectorAll('.fade-in, .slide-up');
|
| 4 |
+
|
| 5 |
+
const observer = new IntersectionObserver((entries) => {
|
| 6 |
+
entries.forEach(entry => {
|
| 7 |
+
if (entry.isIntersecting) {
|
| 8 |
+
entry.target.classList.add('animate');
|
| 9 |
+
observer.unobserve(entry.target);
|
| 10 |
+
}
|
| 11 |
+
});
|
| 12 |
+
}, {
|
| 13 |
+
threshold: 0.1
|
| 14 |
+
});
|
| 15 |
+
|
| 16 |
+
animatedElements.forEach(el => observer.observe(el));
|
| 17 |
+
|
| 18 |
+
// Theme toggle functionality
|
| 19 |
+
const themeToggle = document.getElementById('theme-toggle');
|
| 20 |
+
if (themeToggle) {
|
| 21 |
+
themeToggle.addEventListener('click', () => {
|
| 22 |
+
document.documentElement.classList.toggle('dark');
|
| 23 |
+
localStorage.setItem('theme', document.documentElement.classList.contains('dark') ? 'dark' : 'light');
|
| 24 |
+
});
|
| 25 |
+
}
|
| 26 |
+
});
|
style.css
CHANGED
|
@@ -1,28 +1,51 @@
|
|
|
|
|
|
|
|
| 1 |
body {
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
}
|
| 5 |
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
margin-top: 0;
|
| 9 |
}
|
| 10 |
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
margin-bottom: 10px;
|
| 15 |
-
margin-top: 5px;
|
| 16 |
}
|
| 17 |
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
padding: 16px;
|
| 22 |
-
border: 1px solid lightgray;
|
| 23 |
-
border-radius: 16px;
|
| 24 |
}
|
| 25 |
|
| 26 |
-
.
|
| 27 |
-
|
| 28 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
|
| 2 |
+
|
| 3 |
body {
|
| 4 |
+
font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
|
| 5 |
+
-webkit-font-smoothing: antialiased;
|
| 6 |
+
-moz-osx-font-smoothing: grayscale;
|
| 7 |
+
}
|
| 8 |
+
|
| 9 |
+
/* Custom scrollbar */
|
| 10 |
+
::-webkit-scrollbar {
|
| 11 |
+
width: 8px;
|
| 12 |
+
height: 8px;
|
| 13 |
+
}
|
| 14 |
+
|
| 15 |
+
::-webkit-scrollbar-track {
|
| 16 |
+
background: #1a1a1a;
|
| 17 |
+
}
|
| 18 |
+
|
| 19 |
+
::-webkit-scrollbar-thumb {
|
| 20 |
+
background: #333;
|
| 21 |
+
border-radius: 4px;
|
| 22 |
}
|
| 23 |
|
| 24 |
+
::-webkit-scrollbar-thumb:hover {
|
| 25 |
+
background: #444;
|
|
|
|
| 26 |
}
|
| 27 |
|
| 28 |
+
/* Animation classes */
|
| 29 |
+
.fade-in {
|
| 30 |
+
animation: fadeIn 0.5s ease-in-out;
|
|
|
|
|
|
|
| 31 |
}
|
| 32 |
|
| 33 |
+
@keyframes fadeIn {
|
| 34 |
+
from { opacity: 0; }
|
| 35 |
+
to { opacity: 1; }
|
|
|
|
|
|
|
|
|
|
| 36 |
}
|
| 37 |
|
| 38 |
+
.slide-up {
|
| 39 |
+
animation: slideUp 0.5s ease-out;
|
| 40 |
}
|
| 41 |
+
|
| 42 |
+
@keyframes slideUp {
|
| 43 |
+
from {
|
| 44 |
+
opacity: 0;
|
| 45 |
+
transform: translateY(20px);
|
| 46 |
+
}
|
| 47 |
+
to {
|
| 48 |
+
opacity: 1;
|
| 49 |
+
transform: translateY(0);
|
| 50 |
+
}
|
| 51 |
+
}
|