Spaces:
Running
Running
research deepsite v3 and make updates
Browse files- README.md +8 -5
- components/footer.js +76 -0
- components/navbar.js +50 -0
- index.html +125 -19
- script.js +26 -0
- style.css +29 -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: DeepSite Voyager V4 π
|
| 3 |
+
colorFrom: yellow
|
| 4 |
+
colorTo: purple
|
| 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,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
class CustomFooter extends HTMLElement {
|
| 2 |
+
connectedCallback() {
|
| 3 |
+
this.attachShadow({ mode: 'open' });
|
| 4 |
+
this.shadowRoot.innerHTML = `
|
| 5 |
+
<style>
|
| 6 |
+
footer {
|
| 7 |
+
background-color: #f9fafb;
|
| 8 |
+
}
|
| 9 |
+
.dark footer {
|
| 10 |
+
background-color: #111827;
|
| 11 |
+
}
|
| 12 |
+
.footer-link:hover {
|
| 13 |
+
color: #0ea5e9;
|
| 14 |
+
}
|
| 15 |
+
.dark .footer-link:hover {
|
| 16 |
+
color: #38bdf8;
|
| 17 |
+
}
|
| 18 |
+
</style>
|
| 19 |
+
<footer class="py-12 px-4 md:px-12 lg:px-24 border-t border-gray-200 dark:border-gray-800">
|
| 20 |
+
<div class="container mx-auto grid grid-cols-1 md:grid-cols-4 gap-8">
|
| 21 |
+
<div class="footer-section">
|
| 22 |
+
<h3 class="text-lg font-bold text-gray-800 dark:text-white mb-4">DeepSite V4</h3>
|
| 23 |
+
<p class="text-gray-600 dark:text-gray-400 mb-4">Exploring the uncharted territories of the web.</p>
|
| 24 |
+
<div class="flex space-x-4">
|
| 25 |
+
<a href="#" class="text-gray-500 hover:text-primary-500 dark:hover:text-primary-400 transition-colors">
|
| 26 |
+
<i data-feather="github"></i>
|
| 27 |
+
</a>
|
| 28 |
+
<a href="#" class="text-gray-500 hover:text-primary-500 dark:hover:text-primary-400 transition-colors">
|
| 29 |
+
<i data-feather="twitter"></i>
|
| 30 |
+
</a>
|
| 31 |
+
<a href="#" class="text-gray-500 hover:text-primary-500 dark:hover:text-primary-400 transition-colors">
|
| 32 |
+
<i data-feather="linkedin"></i>
|
| 33 |
+
</a>
|
| 34 |
+
</div>
|
| 35 |
+
</div>
|
| 36 |
+
|
| 37 |
+
<div class="footer-section">
|
| 38 |
+
<h4 class="text-md font-semibold text-gray-800 dark:text-white mb-4">Navigation</h4>
|
| 39 |
+
<ul class="space-y-2">
|
| 40 |
+
<li><a href="#" class="footer-link text-gray-600 dark:text-gray-400 hover:text-primary-500 dark:hover:text-primary-400 transition-colors">Home</a></li>
|
| 41 |
+
<li><a href="#" class="footer-link text-gray-600 dark:text-gray-400 hover:text-primary-500 dark:hover:text-primary-400 transition-colors">Features</a></li>
|
| 42 |
+
<li><a href="#" class="footer-link text-gray-600 dark:text-gray-400 hover:text-primary-500 dark:hover:text-primary-400 transition-colors">Research</a></li>
|
| 43 |
+
<li><a href="#" class="footer-link text-gray-600 dark:text-gray-400 hover:text-primary-500 dark:hover:text-primary-400 transition-colors">About</a></li>
|
| 44 |
+
</ul>
|
| 45 |
+
</div>
|
| 46 |
+
|
| 47 |
+
<div class="footer-section">
|
| 48 |
+
<h4 class="text-md font-semibold text-gray-800 dark:text-white mb-4">Resources</h4>
|
| 49 |
+
<ul class="space-y-2">
|
| 50 |
+
<li><a href="#" class="footer-link text-gray-600 dark:text-gray-400 hover:text-primary-500 dark:hover:text-primary-400 transition-colors">Documentation</a></li>
|
| 51 |
+
<li><a href="#" class="footer-link text-gray-600 dark:text-gray-400 hover:text-primary-500 dark:hover:text-primary-400 transition-colors">API</a></li>
|
| 52 |
+
<li><a href="#" class="footer-link text-gray-600 dark:text-gray-400 hover:text-primary-500 dark:hover:text-primary-400 transition-colors">Guides</a></li>
|
| 53 |
+
<li><a href="#" class="footer-link text-gray-600 dark:text-gray-400 hover:text-primary-500 dark:hover:text-primary-400 transition-colors">Blog</a></li>
|
| 54 |
+
</ul>
|
| 55 |
+
</div>
|
| 56 |
+
|
| 57 |
+
<div class="footer-section">
|
| 58 |
+
<h4 class="text-md font-semibold text-gray-800 dark:text-white mb-4">Legal</h4>
|
| 59 |
+
<ul class="space-y-2">
|
| 60 |
+
<li><a href="#" class="footer-link text-gray-600 dark:text-gray-400 hover:text-primary-500 dark:hover:text-primary-400 transition-colors">Privacy Policy</a></li>
|
| 61 |
+
<li><a href="#" class="footer-link text-gray-600 dark:text-gray-400 hover:text-primary-500 dark:hover:text-primary-400 transition-colors">Terms of Service</a></li>
|
| 62 |
+
<li><a href="#" class="footer-link text-gray-600 dark:text-gray-400 hover:text-primary-500 dark:hover:text-primary-400 transition-colors">Security</a></li>
|
| 63 |
+
<li><a href="#" class="footer-link text-gray-600 dark:text-gray-400 hover:text-primary-500 dark:hover:text-primary-400 transition-colors">Compliance</a></li>
|
| 64 |
+
</ul>
|
| 65 |
+
</div>
|
| 66 |
+
</div>
|
| 67 |
+
|
| 68 |
+
<div class="container mx-auto mt-12 pt-6 border-t border-gray-200 dark:border-gray-800 text-center">
|
| 69 |
+
<p class="text-gray-500 dark:text-gray-400 text-sm">Β© 2023 DeepSite V4. All rights reserved. Licensed for research purposes only.</p>
|
| 70 |
+
</div>
|
| 71 |
+
</footer>
|
| 72 |
+
`;
|
| 73 |
+
}
|
| 74 |
+
}
|
| 75 |
+
|
| 76 |
+
customElements.define('custom-footer', CustomFooter);
|
components/navbar.js
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
class CustomNavbar extends HTMLElement {
|
| 2 |
+
connectedCallback() {
|
| 3 |
+
this.attachShadow({ mode: 'open' });
|
| 4 |
+
this.shadowRoot.innerHTML = `
|
| 5 |
+
<style>
|
| 6 |
+
nav {
|
| 7 |
+
background-color: white;
|
| 8 |
+
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
| 9 |
+
}
|
| 10 |
+
.dark nav {
|
| 11 |
+
background-color: #1f2937;
|
| 12 |
+
box-shadow: 0 2px 4px rgba(0,0,0,0.3);
|
| 13 |
+
}
|
| 14 |
+
.nav-link:hover {
|
| 15 |
+
color: #0ea5e9;
|
| 16 |
+
}
|
| 17 |
+
.dark .nav-link:hover {
|
| 18 |
+
color: #38bdf8;
|
| 19 |
+
}
|
| 20 |
+
</style>
|
| 21 |
+
<nav class="py-4 px-6 md:px-12 lg:px-24">
|
| 22 |
+
<div class="container mx-auto flex justify-between items-center">
|
| 23 |
+
<a href="/" class="flex items-center space-x-2">
|
| 24 |
+
<i data-feather="compass" class="text-primary-500 w-6 h-6"></i>
|
| 25 |
+
<span class="text-xl font-bold text-gray-800 dark:text-white">DeepSite V4</span>
|
| 26 |
+
</a>
|
| 27 |
+
|
| 28 |
+
<div class="hidden md:flex space-x-8">
|
| 29 |
+
<a href="#" class="nav-link text-gray-600 dark:text-gray-300 font-medium hover:text-primary-500 dark:hover:text-primary-400 transition-colors">Research</a>
|
| 30 |
+
<a href="#" class="nav-link text-gray-600 dark:text-gray-300 font-medium hover:text-primary-500 dark:hover:text-primary-400 transition-colors">Tools</a>
|
| 31 |
+
<a href="#" class="nav-link text-gray-600 dark:text-gray-300 font-medium hover:text-primary-500 dark:hover:text-primary-400 transition-colors">Database</a>
|
| 32 |
+
<a href="#" class="nav-link text-gray-600 dark:text-gray-300 font-medium hover:text-primary-500 dark:hover:text-primary-400 transition-colors">About</a>
|
| 33 |
+
</div>
|
| 34 |
+
|
| 35 |
+
<div class="flex items-center space-x-4">
|
| 36 |
+
<button id="theme-switch" class="p-2 rounded-full bg-gray-100 dark:bg-gray-700 text-gray-700 dark:text-gray-200 hover:bg-gray-200 dark:hover:bg-gray-600 transition-colors">
|
| 37 |
+
<i data-feather="moon" class="w-5 h-5 hidden dark:block"></i>
|
| 38 |
+
<i data-feather="sun" class="w-5 h-5 dark:hidden"></i>
|
| 39 |
+
</button>
|
| 40 |
+
<button class="md:hidden p-2 rounded-full bg-gray-100 dark:bg-gray-700 text-gray-700 dark:text-gray-200 hover:bg-gray-200 dark:hover:bg-gray-600 transition-colors">
|
| 41 |
+
<i data-feather="menu" class="w-5 h-5"></i>
|
| 42 |
+
</button>
|
| 43 |
+
</div>
|
| 44 |
+
</div>
|
| 45 |
+
</nav>
|
| 46 |
+
`;
|
| 47 |
+
}
|
| 48 |
+
}
|
| 49 |
+
|
| 50 |
+
customElements.define('custom-navbar', CustomNavbar);
|
index.html
CHANGED
|
@@ -1,19 +1,125 @@
|
|
| 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>DeepSite V4 - Advanced Research Portal</title>
|
| 7 |
+
<link rel="stylesheet" href="style.css">
|
| 8 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
+
<script src="https://unpkg.com/feather-icons"></script>
|
| 10 |
+
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
|
| 11 |
+
<script>
|
| 12 |
+
tailwind.config = {
|
| 13 |
+
darkMode: 'class',
|
| 14 |
+
theme: {
|
| 15 |
+
extend: {
|
| 16 |
+
colors: {
|
| 17 |
+
primary: {
|
| 18 |
+
50: '#f0f9ff',
|
| 19 |
+
100: '#e0f2fe',
|
| 20 |
+
500: '#0ea5e9',
|
| 21 |
+
600: '#0284c7',
|
| 22 |
+
900: '#0c4a6e',
|
| 23 |
+
},
|
| 24 |
+
secondary: {
|
| 25 |
+
50: '#f0fdf4',
|
| 26 |
+
100: '#dcfce7',
|
| 27 |
+
500: '#10b981',
|
| 28 |
+
600: '#059669',
|
| 29 |
+
900: '#064e3b',
|
| 30 |
+
}
|
| 31 |
+
}
|
| 32 |
+
}
|
| 33 |
+
}
|
| 34 |
+
}
|
| 35 |
+
</script>
|
| 36 |
+
</head>
|
| 37 |
+
<body class="bg-gray-100 dark:bg-gray-900 transition-colors duration-300">
|
| 38 |
+
<custom-navbar></custom-navbar>
|
| 39 |
+
|
| 40 |
+
<main class="container mx-auto px-4 py-8">
|
| 41 |
+
<section class="hero mb-16">
|
| 42 |
+
<div class="text-center max-w-4xl mx-auto">
|
| 43 |
+
<h1 class="text-5xl md:text-7xl font-bold text-primary-500 mb-6">DeepSite <span class="text-secondary-500">V4</span></h1>
|
| 44 |
+
<p class="text-xl text-gray-600 dark:text-gray-300 mb-8">
|
| 45 |
+
The most advanced research platform for exploring the depths of the web.
|
| 46 |
+
</p>
|
| 47 |
+
<div class="search-box relative max-w-2xl mx-auto">
|
| 48 |
+
<input type="text" placeholder="Search the deep web..."
|
| 49 |
+
class="w-full p-4 pr-16 rounded-2xl border-2 border-gray-300 dark:border-gray-700 focus:border-primary-500 dark:focus:border-primary-500 focus:outline-none bg-white dark:bg-gray-800 text-gray-900 dark:text-white shadow-md hover:shadow-lg transition-all duration-300">
|
| 50 |
+
<button class="absolute right-2 top-2 bg-primary-500 hover:bg-primary-600 text-white p-2 rounded-xl transition-colors duration-300">
|
| 51 |
+
<i data-feather="search" width="24" height="24"></i>
|
| 52 |
+
</button>
|
| 53 |
+
</div>
|
| 54 |
+
</div>
|
| 55 |
+
</section>
|
| 56 |
+
|
| 57 |
+
<section class="features grid grid-cols-1 md:grid-cols-3 gap-8 mb-16">
|
| 58 |
+
<div class="feature-card bg-white dark:bg-gray-800 p-6 rounded-2xl shadow-md hover:shadow-xl transition-shadow duration-300">
|
| 59 |
+
<div class="icon-box bg-primary-100 dark:bg-primary-900 w-16 h-16 rounded-xl flex items-center justify-center mb-4">
|
| 60 |
+
<i data-feather="shield" class="text-primary-500 w-8 h-8"></i>
|
| 61 |
+
</div>
|
| 62 |
+
<h3 class="text-xl font-bold text-gray-800 dark:text-white mb-2">Enhanced Security</h3>
|
| 63 |
+
<p class="text-gray-600 dark:text-gray-400">Military-grade encryption and anonymous routing for your protection.</p>
|
| 64 |
+
</div>
|
| 65 |
+
|
| 66 |
+
<div class="feature-card bg-white dark:bg-gray-800 p-6 rounded-2xl shadow-md hover:shadow-xl transition-shadow duration-300">
|
| 67 |
+
<div class="icon-box bg-secondary-100 dark:bg-secondary-900 w-16 h-16 rounded-xl flex items-center justify-center mb-4">
|
| 68 |
+
<i data-feather="layers" class="text-secondary-500 w-8 h-8"></i>
|
| 69 |
+
</div>
|
| 70 |
+
<h3 class="text-xl font-bold text-gray-800 dark:text-white mb-2">Multi-Layer Search</h3>
|
| 71 |
+
<p class="text-gray-600 dark:text-gray-400">Access content from surface to the deepest layers of the web.</p>
|
| 72 |
+
</div>
|
| 73 |
+
|
| 74 |
+
<div class="feature-card bg-white dark:bg-gray-800 p-6 rounded-2xl shadow-md hover:shadow-xl transition-shadow duration-300">
|
| 75 |
+
<div class="icon-box bg-primary-100 dark:bg-primary-900 w-16 h-16 rounded-xl flex items-center justify-center mb-4">
|
| 76 |
+
<i data-feather="activity" class="text-primary-500 w-8 h-8"></i>
|
| 77 |
+
</div>
|
| 78 |
+
<h3 class="text-xl font-bold text-gray-800 dark:text-white mb-2">Real-time Analysis</h3>
|
| 79 |
+
<p class="text-gray-600 dark:text-gray-400">Advanced AI processing of deep web content and patterns.</p>
|
| 80 |
+
</div>
|
| 81 |
+
</section>
|
| 82 |
+
|
| 83 |
+
<section class="dashboard mb-16">
|
| 84 |
+
<h2 class="text-3xl font-bold text-gray-800 dark:text-white mb-6">Research Dashboard</h2>
|
| 85 |
+
<div class="bg-white dark:bg-gray-800 rounded-2xl shadow-lg p-6">
|
| 86 |
+
<div class="grid grid-cols-1 lg:grid-cols-2 gap-8">
|
| 87 |
+
<div class="stats-grid">
|
| 88 |
+
<div class="stat-item bg-gray-50 dark:bg-gray-700 p-4 rounded-xl">
|
| 89 |
+
<h4 class="text-gray-500 dark:text-gray-400 text-sm font-medium">Total Queries</h4>
|
| 90 |
+
<p class="text-2xl font-bold text-primary-500">1,248,765</p>
|
| 91 |
+
</div>
|
| 92 |
+
<div class="stat-item bg-gray-50 dark:bg-gray-700 p-4 rounded-xl">
|
| 93 |
+
<h4 class="text-gray-500 dark:text-gray-400 text-sm font-medium">Deep Links</h4>
|
| 94 |
+
<p class="text-2xl font-bold text-secondary-500">856,432</p>
|
| 95 |
+
</div>
|
| 96 |
+
<div class="stat-item bg-gray-50 dark:bg-gray-700 p-4 rounded-xl">
|
| 97 |
+
<h4 class="text-gray-500 dark:text-gray-400 text-sm font-medium">Active Users</h4>
|
| 98 |
+
<p class="text-2xl font-bold text-primary-500">24,891</p>
|
| 99 |
+
</div>
|
| 100 |
+
<div class="stat-item bg-gray-50 dark:bg-gray-700 p-4 rounded-xl">
|
| 101 |
+
<h4 class="text-gray-500 dark:text-gray-400 text-sm font-medium">New Data</h4>
|
| 102 |
+
<p class="text-2xl font-bold text-secondary-500">42TB</p>
|
| 103 |
+
</div>
|
| 104 |
+
</div>
|
| 105 |
+
<div class="visualization">
|
| 106 |
+
<div class="bg-gray-100 dark:bg-gray-700 h-64 rounded-xl flex items-center justify-center">
|
| 107 |
+
<p class="text-gray-400">Data Visualization</p>
|
| 108 |
+
</div>
|
| 109 |
+
</div>
|
| 110 |
+
</div>
|
| 111 |
+
</div>
|
| 112 |
+
</section>
|
| 113 |
+
</main>
|
| 114 |
+
|
| 115 |
+
<custom-footer></custom-footer>
|
| 116 |
+
|
| 117 |
+
<script src="components/navbar.js"></script>
|
| 118 |
+
<script src="components/footer.js"></script>
|
| 119 |
+
<script src="script.js"></script>
|
| 120 |
+
<script>
|
| 121 |
+
feather.replace();
|
| 122 |
+
</script>
|
| 123 |
+
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
|
| 124 |
+
</body>
|
| 125 |
+
</html>
|
script.js
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
document.addEventListener('DOMContentLoaded', () => {
|
| 2 |
+
// Theme switcher functionality
|
| 3 |
+
const themeSwitcher = document.querySelector('#theme-switch');
|
| 4 |
+
if (themeSwitcher) {
|
| 5 |
+
themeSwitcher.addEventListener('click', () => {
|
| 6 |
+
document.documentElement.classList.toggle('dark');
|
| 7 |
+
localStorage.setItem('darkMode', document.documentElement.classList.contains('dark'));
|
| 8 |
+
});
|
| 9 |
+
}
|
| 10 |
+
|
| 11 |
+
// Initialize dark mode based on user preference
|
| 12 |
+
if (localStorage.getItem('darkMode') === 'true' ||
|
| 13 |
+
(!localStorage.getItem('darkMode') && window.matchMedia('(prefers-color-scheme: dark)').matches)) {
|
| 14 |
+
document.documentElement.classList.add('dark');
|
| 15 |
+
}
|
| 16 |
+
|
| 17 |
+
// Smooth scrolling for anchor links
|
| 18 |
+
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
|
| 19 |
+
anchor.addEventListener('click', function (e) {
|
| 20 |
+
e.preventDefault();
|
| 21 |
+
document.querySelector(this.getAttribute('href')).scrollIntoView({
|
| 22 |
+
behavior: 'smooth'
|
| 23 |
+
});
|
| 24 |
+
});
|
| 25 |
+
});
|
| 26 |
+
});
|
style.css
CHANGED
|
@@ -1,28 +1,39 @@
|
|
|
|
|
|
|
|
| 1 |
body {
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
}
|
| 5 |
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
|
|
|
| 9 |
}
|
| 10 |
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 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 |
-
.
|
| 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', sans-serif;
|
| 5 |
+
scroll-behavior: smooth;
|
| 6 |
+
}
|
| 7 |
+
|
| 8 |
+
.feature-card:hover .icon-box {
|
| 9 |
+
transform: scale(1.1);
|
| 10 |
+
transition: transform 0.3s ease;
|
| 11 |
}
|
| 12 |
|
| 13 |
+
.stats-grid {
|
| 14 |
+
display: grid;
|
| 15 |
+
grid-template-columns: repeat(2, 1fr);
|
| 16 |
+
gap: 1rem;
|
| 17 |
}
|
| 18 |
|
| 19 |
+
@media (max-width: 768px) {
|
| 20 |
+
.stats-grid {
|
| 21 |
+
grid-template-columns: 1fr;
|
| 22 |
+
}
|
|
|
|
| 23 |
}
|
| 24 |
|
| 25 |
+
.search-box input:focus {
|
| 26 |
+
box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.3);
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
}
|
| 28 |
|
| 29 |
+
.dark .search-box input:focus {
|
| 30 |
+
box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.5);
|
| 31 |
}
|
| 32 |
+
|
| 33 |
+
.hero h1 {
|
| 34 |
+
text-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
| 35 |
+
}
|
| 36 |
+
|
| 37 |
+
.dark .hero h1 {
|
| 38 |
+
text-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
|
| 39 |
+
}
|