Trang được chia làm hai phần song song.
Browse filesBên trái là 10 ô mục lục, mỗi ô đại diện cho một chủ đề khác nhau.
Khi người dùng bấm vào một ô, bên phải sẽ tự động hiển thị nội dung tương ứng.
Phần phải có thể chứa mô tả, hình ảnh, hướng dẫn, FAQ… tùy bạn thiết kế.
Cách bố cục này giúp thông tin rõ ràng, gọn gàng và trải nghiệm mượt như app.
- README.md +8 -5
- components/navbar.js +38 -0
- index.html +44 -19
- script.js +215 -0
- style.css +15 -20
README.md
CHANGED
|
@@ -1,10 +1,13 @@
|
|
| 1 |
---
|
| 2 |
-
title: Knowledge Navigator Navigator
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: Knowledge Navigator Navigator 📚
|
| 3 |
+
colorFrom: pink
|
| 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/navbar.js
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
class CustomNavbar extends HTMLElement {
|
| 2 |
+
connectedCallback() {
|
| 3 |
+
this.attachShadow({ mode: 'open' });
|
| 4 |
+
this.shadowRoot.innerHTML = `
|
| 5 |
+
<style>
|
| 6 |
+
.navbar {
|
| 7 |
+
transition: background-color 0.3s ease;
|
| 8 |
+
}
|
| 9 |
+
.nav-link:hover {
|
| 10 |
+
color: #6366f1;
|
| 11 |
+
}
|
| 12 |
+
</style>
|
| 13 |
+
<nav class="navbar bg-white shadow-sm py-4 px-6">
|
| 14 |
+
<div class="container mx-auto flex justify-between items-center">
|
| 15 |
+
<div class="flex items-center">
|
| 16 |
+
<i data-feather="book" class="w-6 h-6 text-indigo-600 mr-2"></i>
|
| 17 |
+
<span class="text-xl font-bold text-gray-800">Knowledge Navigator</span>
|
| 18 |
+
</div>
|
| 19 |
+
<div class="hidden md:flex items-center space-x-6">
|
| 20 |
+
<a href="#" class="nav-link text-gray-600 hover:text-indigo-600 transition-colors">Home</a>
|
| 21 |
+
<a href="#" class="nav-link text-gray-600 hover:text-indigo-600 transition-colors">About</a>
|
| 22 |
+
<a href="#" class="nav-link text-gray-600 hover:text-indigo-600 transition-colors">Contact</a>
|
| 23 |
+
</div>
|
| 24 |
+
<div class="flex items-center">
|
| 25 |
+
<button class="p-2 rounded-full hover:bg-gray-100">
|
| 26 |
+
<i data-feather="search" class="w-5 h-5 text-gray-600"></i>
|
| 27 |
+
</button>
|
| 28 |
+
<button class="p-2 rounded-full hover:bg-gray-100 ml-2">
|
| 29 |
+
<i data-feather="user" class="w-5 h-5 text-gray-600"></i>
|
| 30 |
+
</button>
|
| 31 |
+
</div>
|
| 32 |
+
</div>
|
| 33 |
+
</nav>
|
| 34 |
+
`;
|
| 35 |
+
}
|
| 36 |
+
}
|
| 37 |
+
|
| 38 |
+
customElements.define('custom-navbar', CustomNavbar);
|
index.html
CHANGED
|
@@ -1,19 +1,44 @@
|
|
| 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</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 src="components/navbar.js"></script>
|
| 12 |
+
</head>
|
| 13 |
+
<body class="bg-gray-50 min-h-screen">
|
| 14 |
+
<custom-navbar></custom-navbar>
|
| 15 |
+
|
| 16 |
+
<div class="container mx-auto px-4 py-8">
|
| 17 |
+
<div class="flex flex-col md:flex-row gap-6">
|
| 18 |
+
<!-- Left Side - Navigation Tiles -->
|
| 19 |
+
<div class="w-full md:w-1/3 lg:w-1/4 bg-white rounded-xl shadow-sm p-4">
|
| 20 |
+
<h2 class="text-xl font-bold text-gray-800 mb-6">Explore Topics</h2>
|
| 21 |
+
<div class="grid grid-cols-1 gap-4" id="topic-grid">
|
| 22 |
+
<!-- Topics will be populated by JavaScript -->
|
| 23 |
+
</div>
|
| 24 |
+
</div>
|
| 25 |
+
|
| 26 |
+
<!-- Right Side - Content Display -->
|
| 27 |
+
<div class="w-full md:w-2/3 lg:w-3/4 bg-white rounded-xl shadow-sm p-6">
|
| 28 |
+
<div id="content-display">
|
| 29 |
+
<div class="flex flex-col items-center justify-center h-full text-center py-20">
|
| 30 |
+
<i data-feather="book-open" class="w-16 h-16 text-gray-300 mb-4"></i>
|
| 31 |
+
<h3 class="text-xl font-medium text-gray-500">Select a topic to begin exploring</h3>
|
| 32 |
+
</div>
|
| 33 |
+
</div>
|
| 34 |
+
</div>
|
| 35 |
+
</div>
|
| 36 |
+
</div>
|
| 37 |
+
|
| 38 |
+
<script src="script.js"></script>
|
| 39 |
+
<script>
|
| 40 |
+
feather.replace();
|
| 41 |
+
</script>
|
| 42 |
+
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
|
| 43 |
+
</body>
|
| 44 |
+
</html>
|
script.js
ADDED
|
@@ -0,0 +1,215 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Sample topics data
|
| 2 |
+
const topics = [
|
| 3 |
+
{
|
| 4 |
+
id: 'getting-started',
|
| 5 |
+
title: 'Getting Started',
|
| 6 |
+
icon: 'compass',
|
| 7 |
+
content: `
|
| 8 |
+
<h2 class="text-2xl font-bold text-gray-800 mb-4">Getting Started Guide</h2>
|
| 9 |
+
<p class="text-gray-600 mb-6">Welcome to Knowledge Navigator! This guide will help you get familiar with our platform.</p>
|
| 10 |
+
|
| 11 |
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-6 mb-8">
|
| 12 |
+
<div class="bg-indigo-50 p-4 rounded-lg">
|
| 13 |
+
<div class="flex items-center mb-3">
|
| 14 |
+
<i data-feather="user" class="w-5 h-5 text-indigo-600 mr-2"></i>
|
| 15 |
+
<h3 class="font-medium text-gray-800">Account Setup</h3>
|
| 16 |
+
</div>
|
| 17 |
+
<p class="text-sm text-gray-600">Learn how to create and manage your account settings.</p>
|
| 18 |
+
</div>
|
| 19 |
+
|
| 20 |
+
<div class="bg-indigo-50 p-4 rounded-lg">
|
| 21 |
+
<div class="flex items-center mb-3">
|
| 22 |
+
<i data-feather="settings" class="w-5 h-5 text-indigo-600 mr-2"></i>
|
| 23 |
+
<h3 class="font-medium text-gray-800">Preferences</h3>
|
| 24 |
+
</div>
|
| 25 |
+
<p class="text-sm text-gray-600">Customize your experience with our preference settings.</p>
|
| 26 |
+
</div>
|
| 27 |
+
</div>
|
| 28 |
+
|
| 29 |
+
<div class="border-t border-gray-200 pt-6">
|
| 30 |
+
<h3 class="font-medium text-gray-800 mb-3">Frequently Asked Questions</h3>
|
| 31 |
+
<div class="space-y-3">
|
| 32 |
+
<div class="border-b border-gray-100 pb-3">
|
| 33 |
+
<h4 class="font-medium text-gray-700">How do I reset my password?</h4>
|
| 34 |
+
<p class="text-sm text-gray-600 mt-1">Visit the account recovery page and follow the instructions sent to your email.</p>
|
| 35 |
+
</div>
|
| 36 |
+
<div class="border-b border-gray-100 pb-3">
|
| 37 |
+
<h4 class="font-medium text-gray-700">Is there a mobile app?</h4>
|
| 38 |
+
<p class="text-sm text-gray-600 mt-1">Yes! Our mobile app is available for both iOS and Android devices.</p>
|
| 39 |
+
</div>
|
| 40 |
+
</div>
|
| 41 |
+
</div>
|
| 42 |
+
`
|
| 43 |
+
},
|
| 44 |
+
{
|
| 45 |
+
id: 'features',
|
| 46 |
+
title: 'Features',
|
| 47 |
+
icon: 'zap',
|
| 48 |
+
content: `
|
| 49 |
+
<h2 class="text-2xl font-bold text-gray-800 mb-6">Platform Features</h2>
|
| 50 |
+
<div class="flex items-center mb-6">
|
| 51 |
+
<div class="mr-4 p-3 bg-indigo-100 rounded-full">
|
| 52 |
+
<i data-feather="zap" class="w-6 h-6 text-indigo-600"></i>
|
| 53 |
+
</div>
|
| 54 |
+
<div>
|
| 55 |
+
<h3 class="text-lg font-medium text-gray-800">Powerful Tools</h3>
|
| 56 |
+
<p class="text-gray-600">Discover all the amazing features we offer.</p>
|
| 57 |
+
</div>
|
| 58 |
+
</div>
|
| 59 |
+
|
| 60 |
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-6 mb-8">
|
| 61 |
+
<div class="border border-gray-200 rounded-lg p-4">
|
| 62 |
+
<div class="flex items-start mb-3">
|
| 63 |
+
<div class="mr-3 p-2 bg-purple-100 rounded-full">
|
| 64 |
+
<i data-feather="search" class="w-4 h-4 text-purple-600"></i>
|
| 65 |
+
</div>
|
| 66 |
+
<h4 class="font-medium text-gray-800">Advanced Search</h4>
|
| 67 |
+
</div>
|
| 68 |
+
<p class="text-sm text-gray-600">Find exactly what you're looking for with our powerful search capabilities.</p>
|
| 69 |
+
</div>
|
| 70 |
+
|
| 71 |
+
<div class="border border-gray-200 rounded-lg p-4">
|
| 72 |
+
<div class="flex items-start mb-3">
|
| 73 |
+
<div class="mr-3 p-2 bg-blue-100 rounded-full">
|
| 74 |
+
<i data-feather="bookmark" class="w-4 h-4 text-blue-600"></i>
|
| 75 |
+
</div>
|
| 76 |
+
<h4 class="font-medium text-gray-800">Bookmarking</h4>
|
| 77 |
+
</div>
|
| 78 |
+
<p class="text-sm text-gray-600">Save important content for quick access later.</p>
|
| 79 |
+
</div>
|
| 80 |
+
|
| 81 |
+
<div class="border border-gray-200 rounded-lg p-4">
|
| 82 |
+
<div class="flex items-start mb-3">
|
| 83 |
+
<div class="mr-3 p-2 bg-green-100 rounded-full">
|
| 84 |
+
<i data-feather="share-2" class="w-4 h-4 text-green-600"></i>
|
| 85 |
+
</div>
|
| 86 |
+
<h4 class="font-medium text-gray-800">Sharing</h4>
|
| 87 |
+
</div>
|
| 88 |
+
<p class="text-sm text-gray-600">Easily share content with your team or collaborators.</p>
|
| 89 |
+
</div>
|
| 90 |
+
|
| 91 |
+
<div class="border border-gray-200 rounded-lg p-4">
|
| 92 |
+
<div class="flex items-start mb-3">
|
| 93 |
+
<div class="mr-3 p-2 bg-yellow-100 rounded-full">
|
| 94 |
+
<i data-feather="bell" class="w-4 h-4 text-yellow-600"></i>
|
| 95 |
+
</div>
|
| 96 |
+
<h4 class="font-medium text-gray-800">Notifications</h4>
|
| 97 |
+
</div>
|
| 98 |
+
<p class="text-sm text-gray-600">Stay updated with real-time notifications.</p>
|
| 99 |
+
</div>
|
| 100 |
+
</div>
|
| 101 |
+
`
|
| 102 |
+
},
|
| 103 |
+
{
|
| 104 |
+
id: 'tutorials',
|
| 105 |
+
title: 'Tutorials',
|
| 106 |
+
icon: 'video',
|
| 107 |
+
content: `
|
| 108 |
+
<h2 class="text-2xl font-bold text-gray-800 mb-6">Video Tutorials</h2>
|
| 109 |
+
<p class="text-gray-600 mb-6">Learn how to use our platform with these helpful video guides.</p>
|
| 110 |
+
|
| 111 |
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-6 mb-8">
|
| 112 |
+
<div class="bg-gray-100 rounded-lg overflow-hidden">
|
| 113 |
+
<div class="aspect-w-16 aspect-h-9 bg-gray-300 flex items-center justify-center">
|
| 114 |
+
<i data-feather="play" class="w-12 h-12 text-gray-500"></i>
|
| 115 |
+
</div>
|
| 116 |
+
<div class="p-4">
|
| 117 |
+
<h3 class="font-medium text-gray-800 mb-1">Getting Started</h3>
|
| 118 |
+
<p class="text-sm text-gray-600">3:42 min</p>
|
| 119 |
+
</div>
|
| 120 |
+
</div>
|
| 121 |
+
|
| 122 |
+
<div class="bg-gray-100 rounded-lg overflow-hidden">
|
| 123 |
+
<div class="aspect-w-16 aspect-h-9 bg-gray-300 flex items-center justify-center">
|
| 124 |
+
<i data-feather="play" class="w-12 h-12 text-gray-500"></i>
|
| 125 |
+
</div>
|
| 126 |
+
<div class="p-4">
|
| 127 |
+
<h3 class="font-medium text-gray-800 mb-1">Advanced Features</h3>
|
| 128 |
+
<p class="text-sm text-gray-600">7:15 min</p>
|
| 129 |
+
</div>
|
| 130 |
+
</div>
|
| 131 |
+
|
| 132 |
+
<div class="bg-gray-100 rounded-lg overflow-hidden">
|
| 133 |
+
<div class="aspect-w-16 aspect-h-9 bg-gray-300 flex items-center justify-center">
|
| 134 |
+
<i data-feather="play" class="w-12 h-12 text-gray-500"></i>
|
| 135 |
+
</div>
|
| 136 |
+
<div class="p-4">
|
| 137 |
+
<h3 class="font-medium text-gray-800 mb-1">Collaboration Tools</h3>
|
| 138 |
+
<p class="text-sm text-gray-600">5:28 min</p>
|
| 139 |
+
</div>
|
| 140 |
+
</div>
|
| 141 |
+
|
| 142 |
+
<div class="bg-gray-100 rounded-lg overflow-hidden">
|
| 143 |
+
<div class="aspect-w-16 aspect-h-9 bg-gray-300 flex items-center justify-center">
|
| 144 |
+
<i data-feather="play" class="w-12 h-12 text-gray-500"></i>
|
| 145 |
+
</div>
|
| 146 |
+
<div class="p-4">
|
| 147 |
+
<h3 class="font-medium text-gray-800 mb-1">Mobile App Guide</h3>
|
| 148 |
+
<p class="text-sm text-gray-600">4:53 min</p>
|
| 149 |
+
</div>
|
| 150 |
+
</div>
|
| 151 |
+
</div>
|
| 152 |
+
|
| 153 |
+
<div class="bg-indigo-50 rounded-lg p-4">
|
| 154 |
+
<div class="flex items-center">
|
| 155 |
+
<i data-feather="help-circle" class="w-5 h-5 text-indigo-600 mr-3"></i>
|
| 156 |
+
<h3 class="font-medium text-gray-800">Need more help?</h3>
|
| 157 |
+
</div>
|
| 158 |
+
<p class="text-sm text-gray-600 mt-2">Contact our support team for personalized assistance with any questions.</p>
|
| 159 |
+
</div>
|
| 160 |
+
`
|
| 161 |
+
}
|
| 162 |
+
// Additional topics can be added here
|
| 163 |
+
];
|
| 164 |
+
|
| 165 |
+
// Initialize the page
|
| 166 |
+
document.addEventListener('DOMContentLoaded', function() {
|
| 167 |
+
// Populate topic tiles
|
| 168 |
+
const topicGrid = document.getElementById('topic-grid');
|
| 169 |
+
|
| 170 |
+
topics.forEach((topic, index) => {
|
| 171 |
+
const tile = document.createElement('div');
|
| 172 |
+
tile.className = `topic-tile cursor-pointer p-3 rounded-lg border border-gray-200 hover:border-indigo-200 transition-colors ${index === 0 ? 'active-topic' : ''}`;
|
| 173 |
+
tile.innerHTML = `
|
| 174 |
+
<div class="flex items-center">
|
| 175 |
+
<div class="mr-3 p-2 bg-indigo-100 rounded-full">
|
| 176 |
+
<i data-feather="${topic.icon}" class="w-4 h-4 text-indigo-600"></i>
|
| 177 |
+
</div>
|
| 178 |
+
<span class="font-medium text-gray-700">${topic.title}</span>
|
| 179 |
+
</div>
|
| 180 |
+
`;
|
| 181 |
+
|
| 182 |
+
tile.addEventListener('click', () => {
|
| 183 |
+
// Remove active class from all tiles
|
| 184 |
+
document.querySelectorAll('.topic-tile').forEach(t => {
|
| 185 |
+
t.classList.remove('active-topic');
|
| 186 |
+
});
|
| 187 |
+
|
| 188 |
+
// Add active class to clicked tile
|
| 189 |
+
tile.classList.add('active-topic');
|
| 190 |
+
|
| 191 |
+
// Update content display
|
| 192 |
+
updateContentDisplay(topic);
|
| 193 |
+
});
|
| 194 |
+
|
| 195 |
+
topicGrid.appendChild(tile);
|
| 196 |
+
});
|
| 197 |
+
|
| 198 |
+
// Display first topic's content by default
|
| 199 |
+
if (topics.length > 0) {
|
| 200 |
+
updateContentDisplay(topics[0]);
|
| 201 |
+
}
|
| 202 |
+
|
| 203 |
+
// Replace feather icons
|
| 204 |
+
feather.replace();
|
| 205 |
+
});
|
| 206 |
+
|
| 207 |
+
// Update content display with selected topic
|
| 208 |
+
function updateContentDisplay(topic) {
|
| 209 |
+
const contentDisplay = document.getElementById('content-display');
|
| 210 |
+
contentDisplay.className = 'content-section';
|
| 211 |
+
contentDisplay.innerHTML = topic.content;
|
| 212 |
+
|
| 213 |
+
// Replace feather icons in new content
|
| 214 |
+
feather.replace();
|
| 215 |
+
}
|
style.css
CHANGED
|
@@ -1,28 +1,23 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
| 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 animations */
|
| 2 |
+
@keyframes fadeIn {
|
| 3 |
+
from { opacity: 0; transform: translateY(10px); }
|
| 4 |
+
to { opacity: 1; transform: translateY(0); }
|
| 5 |
}
|
| 6 |
|
| 7 |
+
.content-section {
|
| 8 |
+
animation: fadeIn 0.3s ease-out forwards;
|
|
|
|
| 9 |
}
|
| 10 |
|
| 11 |
+
.topic-tile {
|
| 12 |
+
transition: all 0.2s ease;
|
|
|
|
|
|
|
|
|
|
| 13 |
}
|
| 14 |
|
| 15 |
+
.topic-tile:hover {
|
| 16 |
+
transform: translateY(-2px);
|
| 17 |
+
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
|
|
|
|
|
|
|
|
|
|
| 18 |
}
|
| 19 |
|
| 20 |
+
.active-topic {
|
| 21 |
+
border-left: 4px solid #6366f1;
|
| 22 |
+
background-color: #f5f3ff;
|
| 23 |
+
}
|