Spaces:
Running
Running
clone the homepage of this page https://learn-anything.xyz/
Browse files- README.md +8 -5
- components/footer.js +131 -0
- components/navbar.js +100 -0
- index.html +163 -19
- script.js +28 -0
- style.css +16 -18
README.md
CHANGED
|
@@ -1,10 +1,13 @@
|
|
| 1 |
---
|
| 2 |
-
title: Knowledge Navigator
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: Knowledge Navigator 🧭
|
| 3 |
+
colorFrom: red
|
| 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,131 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
class CustomFooter extends HTMLElement {
|
| 2 |
+
connectedCallback() {
|
| 3 |
+
this.attachShadow({ mode: 'open' });
|
| 4 |
+
this.shadowRoot.innerHTML = `
|
| 5 |
+
<style>
|
| 6 |
+
footer {
|
| 7 |
+
background: #1a202c;
|
| 8 |
+
color: white;
|
| 9 |
+
padding: 4rem 2rem;
|
| 10 |
+
margin-top: 4rem;
|
| 11 |
+
}
|
| 12 |
+
.footer-container {
|
| 13 |
+
max-width: 1200px;
|
| 14 |
+
margin: 0 auto;
|
| 15 |
+
display: grid;
|
| 16 |
+
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
| 17 |
+
gap: 2rem;
|
| 18 |
+
}
|
| 19 |
+
.footer-logo {
|
| 20 |
+
font-size: 1.5rem;
|
| 21 |
+
font-weight: bold;
|
| 22 |
+
margin-bottom: 1rem;
|
| 23 |
+
display: flex;
|
| 24 |
+
align-items: center;
|
| 25 |
+
}
|
| 26 |
+
.footer-logo-icon {
|
| 27 |
+
margin-right: 0.5rem;
|
| 28 |
+
color: #3b82f6;
|
| 29 |
+
}
|
| 30 |
+
.footer-description {
|
| 31 |
+
color: #a0aec0;
|
| 32 |
+
margin-bottom: 1.5rem;
|
| 33 |
+
}
|
| 34 |
+
.footer-links h3 {
|
| 35 |
+
font-weight: bold;
|
| 36 |
+
margin-bottom: 1rem;
|
| 37 |
+
font-size: 1.125rem;
|
| 38 |
+
}
|
| 39 |
+
.footer-links ul {
|
| 40 |
+
list-style: none;
|
| 41 |
+
padding: 0;
|
| 42 |
+
margin: 0;
|
| 43 |
+
}
|
| 44 |
+
.footer-links li {
|
| 45 |
+
margin-bottom: 0.5rem;
|
| 46 |
+
}
|
| 47 |
+
.footer-links a {
|
| 48 |
+
color: #a0aec0;
|
| 49 |
+
text-decoration: none;
|
| 50 |
+
transition: color 0.2s;
|
| 51 |
+
}
|
| 52 |
+
.footer-links a:hover {
|
| 53 |
+
color: #3b82f6;
|
| 54 |
+
}
|
| 55 |
+
.social-links {
|
| 56 |
+
display: flex;
|
| 57 |
+
gap: 1rem;
|
| 58 |
+
margin-top: 1rem;
|
| 59 |
+
}
|
| 60 |
+
.social-links a {
|
| 61 |
+
color: #a0aec0;
|
| 62 |
+
transition: color 0.2s;
|
| 63 |
+
}
|
| 64 |
+
.social-links a:hover {
|
| 65 |
+
color: #3b82f6;
|
| 66 |
+
}
|
| 67 |
+
.copyright {
|
| 68 |
+
text-align: center;
|
| 69 |
+
margin-top: 4rem;
|
| 70 |
+
padding-top: 2rem;
|
| 71 |
+
border-top: 1px solid #2d3748;
|
| 72 |
+
color: #a0aec0;
|
| 73 |
+
}
|
| 74 |
+
@media (max-width: 768px) {
|
| 75 |
+
.footer-container {
|
| 76 |
+
grid-template-columns: 1fr;
|
| 77 |
+
}
|
| 78 |
+
}
|
| 79 |
+
</style>
|
| 80 |
+
<footer>
|
| 81 |
+
<div class="footer-container">
|
| 82 |
+
<div class="footer-about">
|
| 83 |
+
<div class="footer-logo">
|
| 84 |
+
<i data-feather="compass" class="footer-logo-icon"></i>
|
| 85 |
+
Knowledge Navigator
|
| 86 |
+
</div>
|
| 87 |
+
<p class="footer-description">
|
| 88 |
+
Interactive roadmaps to guide your learning journey across any topic.
|
| 89 |
+
</p>
|
| 90 |
+
<div class="social-links">
|
| 91 |
+
<a href="#"><i data-feather="twitter"></i></a>
|
| 92 |
+
<a href="#"><i data-feather="github"></i></a>
|
| 93 |
+
<a href="#"><i data-feather="linkedin"></i></a>
|
| 94 |
+
</div>
|
| 95 |
+
</div>
|
| 96 |
+
<div class="footer-links">
|
| 97 |
+
<h3>Learn</h3>
|
| 98 |
+
<ul>
|
| 99 |
+
<li><a href="#">Programming</a></li>
|
| 100 |
+
<li><a href="#">Data Science</a></li>
|
| 101 |
+
<li><a href="#">Design</a></li>
|
| 102 |
+
<li><a href="#">Business</a></li>
|
| 103 |
+
</ul>
|
| 104 |
+
</div>
|
| 105 |
+
<div class="footer-links">
|
| 106 |
+
<h3>Resources</h3>
|
| 107 |
+
<ul>
|
| 108 |
+
<li><a href="#">Roadmaps</a></li>
|
| 109 |
+
<li><a href="#">Guides</a></li>
|
| 110 |
+
<li><a href="#">Books</a></li>
|
| 111 |
+
<li><a href="#">Courses</a></li>
|
| 112 |
+
</ul>
|
| 113 |
+
</div>
|
| 114 |
+
<div class="footer-links">
|
| 115 |
+
<h3>Company</h3>
|
| 116 |
+
<ul>
|
| 117 |
+
<li><a href="#">About</a></li>
|
| 118 |
+
<li><a href="#">Team</a></li>
|
| 119 |
+
<li><a href="#">Careers</a></li>
|
| 120 |
+
<li><a href="#">Contact</a></li>
|
| 121 |
+
</ul>
|
| 122 |
+
</div>
|
| 123 |
+
</div>
|
| 124 |
+
<div class="copyright">
|
| 125 |
+
© ${new Date().getFullYear()} Knowledge Navigator. All rights reserved.
|
| 126 |
+
</div>
|
| 127 |
+
</footer>
|
| 128 |
+
`;
|
| 129 |
+
}
|
| 130 |
+
}
|
| 131 |
+
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 |
+
nav {
|
| 7 |
+
background: white;
|
| 8 |
+
padding: 1rem 2rem;
|
| 9 |
+
display: flex;
|
| 10 |
+
justify-content: space-between;
|
| 11 |
+
align-items: center;
|
| 12 |
+
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
|
| 13 |
+
position: relative;
|
| 14 |
+
z-index: 50;
|
| 15 |
+
}
|
| 16 |
+
.logo {
|
| 17 |
+
font-weight: bold;
|
| 18 |
+
font-size: 1.5rem;
|
| 19 |
+
color: #1a1a1a;
|
| 20 |
+
display: flex;
|
| 21 |
+
align-items: center;
|
| 22 |
+
}
|
| 23 |
+
.logo-icon {
|
| 24 |
+
margin-right: 0.5rem;
|
| 25 |
+
color: #3b82f6;
|
| 26 |
+
}
|
| 27 |
+
.nav-links {
|
| 28 |
+
display: flex;
|
| 29 |
+
gap: 2rem;
|
| 30 |
+
list-style: none;
|
| 31 |
+
margin: 0;
|
| 32 |
+
padding: 0;
|
| 33 |
+
}
|
| 34 |
+
.nav-links a {
|
| 35 |
+
color: #4b5563;
|
| 36 |
+
text-decoration: none;
|
| 37 |
+
font-weight: 500;
|
| 38 |
+
transition: color 0.2s;
|
| 39 |
+
}
|
| 40 |
+
.nav-links a:hover {
|
| 41 |
+
color: #3b82f6;
|
| 42 |
+
}
|
| 43 |
+
.auth-buttons {
|
| 44 |
+
display: flex;
|
| 45 |
+
gap: 1rem;
|
| 46 |
+
}
|
| 47 |
+
.login {
|
| 48 |
+
color: #4b5563;
|
| 49 |
+
padding: 0.5rem 1rem;
|
| 50 |
+
border-radius: 0.375rem;
|
| 51 |
+
transition: all 0.2s;
|
| 52 |
+
}
|
| 53 |
+
.login:hover {
|
| 54 |
+
color: #3b82f6;
|
| 55 |
+
}
|
| 56 |
+
.signup {
|
| 57 |
+
background: #3b82f6;
|
| 58 |
+
color: white;
|
| 59 |
+
padding: 0.5rem 1rem;
|
| 60 |
+
border-radius: 0.375rem;
|
| 61 |
+
transition: all 0.2s;
|
| 62 |
+
}
|
| 63 |
+
.signup:hover {
|
| 64 |
+
background: #2563eb;
|
| 65 |
+
}
|
| 66 |
+
@media (max-width: 768px) {
|
| 67 |
+
.nav-links {
|
| 68 |
+
display: none;
|
| 69 |
+
}
|
| 70 |
+
.auth-buttons {
|
| 71 |
+
display: none;
|
| 72 |
+
}
|
| 73 |
+
.mobile-menu {
|
| 74 |
+
display: block;
|
| 75 |
+
}
|
| 76 |
+
}
|
| 77 |
+
</style>
|
| 78 |
+
<nav>
|
| 79 |
+
<a href="/" class="logo">
|
| 80 |
+
<i data-feather="compass" class="logo-icon"></i>
|
| 81 |
+
Knowledge Navigator
|
| 82 |
+
</a>
|
| 83 |
+
<ul class="nav-links">
|
| 84 |
+
<li><a href="#">Topics</a></li>
|
| 85 |
+
<li><a href="#">Roadmaps</a></li>
|
| 86 |
+
<li><a href="#">Resources</a></li>
|
| 87 |
+
<li><a href="#">Community</a></li>
|
| 88 |
+
</ul>
|
| 89 |
+
<div class="auth-buttons">
|
| 90 |
+
<a href="#" class="login">Log in</a>
|
| 91 |
+
<a href="#" class="signup">Sign up</a>
|
| 92 |
+
</div>
|
| 93 |
+
<button class="mobile-menu hidden">
|
| 94 |
+
<i data-feather="menu"></i>
|
| 95 |
+
</button>
|
| 96 |
+
</nav>
|
| 97 |
+
`;
|
| 98 |
+
}
|
| 99 |
+
}
|
| 100 |
+
customElements.define('custom-navbar', CustomNavbar);
|
index.html
CHANGED
|
@@ -1,19 +1,163 @@
|
|
| 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>Knowledge Navigator - Learn Anything</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 |
+
</head>
|
| 13 |
+
<body class="bg-gray-50 text-gray-900 min-h-screen flex flex-col">
|
| 14 |
+
<custom-navbar></custom-navbar>
|
| 15 |
+
|
| 16 |
+
<main class="flex-grow container mx-auto px-4 py-12">
|
| 17 |
+
<div id="vanta-bg" class="absolute top-0 left-0 w-full h-full -z-10"></div>
|
| 18 |
+
|
| 19 |
+
<section class="max-w-4xl mx-auto text-center mb-16">
|
| 20 |
+
<h1 class="text-5xl md:text-6xl font-bold mb-6">Learn Anything</h1>
|
| 21 |
+
<p class="text-xl md:text-2xl text-gray-600 mb-8">Interactive roadmaps to guide your learning journey</p>
|
| 22 |
+
|
| 23 |
+
<div class="relative max-w-xl mx-auto">
|
| 24 |
+
<input type="text" placeholder="What do you want to learn?"
|
| 25 |
+
class="w-full px-6 py-4 rounded-full border border-gray-300 focus:outline-none focus:ring-2 focus:ring-blue-500 shadow-lg">
|
| 26 |
+
<button class="absolute right-2 top-2 bg-blue-500 text-white p-2 rounded-full hover:bg-blue-600 transition">
|
| 27 |
+
<i data-feather="search"></i>
|
| 28 |
+
</button>
|
| 29 |
+
</div>
|
| 30 |
+
</section>
|
| 31 |
+
|
| 32 |
+
<section class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
|
| 33 |
+
<!-- Popular Topics Cards -->
|
| 34 |
+
<div class="bg-white rounded-xl shadow-lg p-6 hover:shadow-xl transition">
|
| 35 |
+
<div class="flex items-center mb-4">
|
| 36 |
+
<div class="w-10 h-10 rounded-full bg-blue-100 flex items-center justify-center mr-3">
|
| 37 |
+
<i data-feather="code" class="text-blue-500"></i>
|
| 38 |
+
</div>
|
| 39 |
+
<h3 class="font-bold text-lg">Programming</h3>
|
| 40 |
+
</div>
|
| 41 |
+
<p class="text-gray-600 mb-4">Roadmaps for all programming languages and frameworks</p>
|
| 42 |
+
<a href="#" class="text-blue-500 font-medium flex items-center">
|
| 43 |
+
Explore <i data-feather="arrow-right" class="ml-2 w-4 h-4"></i>
|
| 44 |
+
</a>
|
| 45 |
+
</div>
|
| 46 |
+
|
| 47 |
+
<div class="bg-white rounded-xl shadow-lg p-6 hover:shadow-xl transition">
|
| 48 |
+
<div class="flex items-center mb-4">
|
| 49 |
+
<div class="w-10 h-10 rounded-full bg-green-100 flex items-center justify-center mr-3">
|
| 50 |
+
<i data-feather="cpu" class="text-green-500"></i>
|
| 51 |
+
</div>
|
| 52 |
+
<h3 class="font-bold text-lg">Machine Learning</h3>
|
| 53 |
+
</div>
|
| 54 |
+
<p class="text-gray-600 mb-4">From basics to advanced AI concepts</p>
|
| 55 |
+
<a href="#" class="text-blue-500 font-medium flex items-center">
|
| 56 |
+
Explore <i data-feather="arrow-right" class="ml-2 w-4 h-4"></i>
|
| 57 |
+
</a>
|
| 58 |
+
</div>
|
| 59 |
+
|
| 60 |
+
<div class="bg-white rounded-xl shadow-lg p-6 hover:shadow-xl transition">
|
| 61 |
+
<div class="flex items-center mb-4">
|
| 62 |
+
<div class="w-10 h-10 rounded-full bg-purple-100 flex items-center justify-center mr-3">
|
| 63 |
+
<i data-feather="shield" class="text-purple-500"></i>
|
| 64 |
+
</div>
|
| 65 |
+
<h3 class="font-bold text-lg">Cybersecurity</h3>
|
| 66 |
+
</div>
|
| 67 |
+
<p class="text-gray-600 mb-4">Become an ethical hacker and security expert</p>
|
| 68 |
+
<a href="#" class="text-blue-500 font-medium flex items-center">
|
| 69 |
+
Explore <i data-feather="arrow-right" class="ml-2 w-4 h-4"></i>
|
| 70 |
+
</a>
|
| 71 |
+
</div>
|
| 72 |
+
|
| 73 |
+
<div class="bg-white rounded-xl shadow-lg p-6 hover:shadow-xl transition">
|
| 74 |
+
<div class="flex items-center mb-4">
|
| 75 |
+
<div class="w-10 h-10 rounded-full bg-yellow-100 flex items-center justify-center mr-3">
|
| 76 |
+
<i data-feather="dollar-sign" class="text-yellow-500"></i>
|
| 77 |
+
</div>
|
| 78 |
+
<h3 class="font-bold text-lg">Finance</h3>
|
| 79 |
+
</div>
|
| 80 |
+
<p class="text-gray-600 mb-4">Master personal and corporate finance</p>
|
| 81 |
+
<a href="#" class="text-blue-500 font-medium flex items-center">
|
| 82 |
+
Explore <i data-feather="arrow-right" class="ml-2 w-4 h-4"></i>
|
| 83 |
+
</a>
|
| 84 |
+
</div>
|
| 85 |
+
|
| 86 |
+
<div class="bg-white rounded-xl shadow-lg p-6 hover:shadow-xl transition">
|
| 87 |
+
<div class="flex items-center mb-4">
|
| 88 |
+
<div class="w-10 h-10 rounded-full bg-red-100 flex items-center justify-center mr-3">
|
| 89 |
+
<i data-feather="heart" class="text-red-500"></i>
|
| 90 |
+
</div>
|
| 91 |
+
<h3 class="font-bold text-lg">Health</h3>
|
| 92 |
+
</div>
|
| 93 |
+
<p class="text-gray-600 mb-4">Nutrition, fitness and medical knowledge</p>
|
| 94 |
+
<a href="#" class="text-blue-500 font-medium flex items-center">
|
| 95 |
+
Explore <i data-feather="arrow-right" class="ml-2 w-4 h-4"></i>
|
| 96 |
+
</a>
|
| 97 |
+
</div>
|
| 98 |
+
|
| 99 |
+
<div class="bg-white rounded-xl shadow-lg p-6 hover:shadow-xl transition">
|
| 100 |
+
<div class="flex items-center mb-4">
|
| 101 |
+
<div class="w-10 h-10 rounded-full bg-indigo-100 flex items-center justify-center mr-3">
|
| 102 |
+
<i data-feather="globe" class="text-indigo-500"></i>
|
| 103 |
+
</div>
|
| 104 |
+
<h3 class="font-bold text-lg">Languages</h3>
|
| 105 |
+
</div>
|
| 106 |
+
<p class="text-gray-600 mb-4">Learn new languages effectively</p>
|
| 107 |
+
<a href="#" class="text-blue-500 font-medium flex items-center">
|
| 108 |
+
Explore <i data-feather="arrow-right" class="ml-2 w-4 h-4"></i>
|
| 109 |
+
</a>
|
| 110 |
+
</div>
|
| 111 |
+
</section>
|
| 112 |
+
|
| 113 |
+
<section class="mt-20 max-w-4xl mx-auto text-center">
|
| 114 |
+
<h2 class="text-3xl font-bold mb-6">How it works</h2>
|
| 115 |
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
|
| 116 |
+
<div class="p-6">
|
| 117 |
+
<div class="w-16 h-16 mx-auto mb-4 bg-blue-100 rounded-full flex items-center justify-center">
|
| 118 |
+
<i data-feather="search" class="text-blue-500 w-8 h-8"></i>
|
| 119 |
+
</div>
|
| 120 |
+
<h3 class="font-bold text-xl mb-2">Find Your Path</h3>
|
| 121 |
+
<p class="text-gray-600">Search for any topic you want to learn</p>
|
| 122 |
+
</div>
|
| 123 |
+
<div class="p-6">
|
| 124 |
+
<div class="w-16 h-16 mx-auto mb-4 bg-green-100 rounded-full flex items-center justify-center">
|
| 125 |
+
<i data-feather="map" class="text-green-500 w-8 h-8"></i>
|
| 126 |
+
</div>
|
| 127 |
+
<h3 class="font-bold text-xl mb-2">Follow Roadmaps</h3>
|
| 128 |
+
<p class="text-gray-600">Step-by-step learning paths created by experts</p>
|
| 129 |
+
</div>
|
| 130 |
+
<div class="p-6">
|
| 131 |
+
<div class="w-16 h-16 mx-auto mb-4 bg-purple-100 rounded-full flex items-center justify-center">
|
| 132 |
+
<i data-feather="award" class="text-purple-500 w-8 h-8"></i>
|
| 133 |
+
</div>
|
| 134 |
+
<h3 class="font-bold text-xl mb-2">Master Skills</h3>
|
| 135 |
+
<p class="text-gray-600">Achieve your learning goals efficiently</p>
|
| 136 |
+
</div>
|
| 137 |
+
</div>
|
| 138 |
+
</section>
|
| 139 |
+
</main>
|
| 140 |
+
|
| 141 |
+
<custom-footer></custom-footer>
|
| 142 |
+
|
| 143 |
+
<script src="components/navbar.js"></script>
|
| 144 |
+
<script src="components/footer.js"></script>
|
| 145 |
+
<script src="script.js"></script>
|
| 146 |
+
<script>
|
| 147 |
+
feather.replace();
|
| 148 |
+
VANTA.GLOBE({
|
| 149 |
+
el: "#vanta-bg",
|
| 150 |
+
mouseControls: true,
|
| 151 |
+
touchControls: true,
|
| 152 |
+
gyroControls: false,
|
| 153 |
+
minHeight: 200.00,
|
| 154 |
+
minWidth: 200.00,
|
| 155 |
+
scale: 1.00,
|
| 156 |
+
scaleMobile: 1.00,
|
| 157 |
+
color: 0x3b82f6,
|
| 158 |
+
backgroundColor: 0xf8fafc
|
| 159 |
+
});
|
| 160 |
+
</script>
|
| 161 |
+
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
|
| 162 |
+
</body>
|
| 163 |
+
</html>
|
script.js
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Initialize tooltips when icons are loaded
|
| 2 |
+
document.addEventListener('DOMContentLoaded', () => {
|
| 3 |
+
// Search functionality
|
| 4 |
+
const searchInput = document.querySelector('input[type="text"]');
|
| 5 |
+
const searchButton = document.querySelector('button');
|
| 6 |
+
|
| 7 |
+
searchButton.addEventListener('click', () => {
|
| 8 |
+
if (searchInput.value.trim()) {
|
| 9 |
+
alert(`Searching for: ${searchInput.value}`);
|
| 10 |
+
// In a real app, this would redirect to search results
|
| 11 |
+
}
|
| 12 |
+
});
|
| 13 |
+
|
| 14 |
+
searchInput.addEventListener('keypress', (e) => {
|
| 15 |
+
if (e.key === 'Enter' && searchInput.value.trim()) {
|
| 16 |
+
alert(`Searching for: ${searchInput.value}`);
|
| 17 |
+
// In a real app, this would redirect to search results
|
| 18 |
+
}
|
| 19 |
+
});
|
| 20 |
+
|
| 21 |
+
// Responsive adjustments
|
| 22 |
+
function handleResize() {
|
| 23 |
+
// Add any responsive JS logic here
|
| 24 |
+
}
|
| 25 |
+
|
| 26 |
+
window.addEventListener('resize', handleResize);
|
| 27 |
+
handleResize();
|
| 28 |
+
});
|
style.css
CHANGED
|
@@ -1,28 +1,26 @@
|
|
|
|
|
| 1 |
body {
|
| 2 |
-
|
| 3 |
-
font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
|
| 4 |
}
|
| 5 |
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
margin-top: 0;
|
| 9 |
}
|
| 10 |
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
font-size: 15px;
|
| 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 |
+
/* Custom styles */
|
| 2 |
body {
|
| 3 |
+
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
|
|
|
|
| 4 |
}
|
| 5 |
|
| 6 |
+
#vanta-bg {
|
| 7 |
+
pointer-events: none;
|
|
|
|
| 8 |
}
|
| 9 |
|
| 10 |
+
.custom-shadow {
|
| 11 |
+
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
|
|
|
|
|
|
|
|
|
|
| 12 |
}
|
| 13 |
|
| 14 |
+
/* Smooth scroll */
|
| 15 |
+
html {
|
| 16 |
+
scroll-behavior: smooth;
|
|
|
|
|
|
|
|
|
|
| 17 |
}
|
| 18 |
|
| 19 |
+
/* Animation for cards */
|
| 20 |
+
.card-hover {
|
| 21 |
+
transition: all 0.3s ease;
|
| 22 |
}
|
| 23 |
+
|
| 24 |
+
.card-hover:hover {
|
| 25 |
+
transform: translateY(-5px);
|
| 26 |
+
}
|