Spaces:
Running
Running
Add 2 files
Browse files- README.md +6 -4
- index.html +539 -19
README.md
CHANGED
@@ -1,10 +1,12 @@
|
|
1 |
---
|
2 |
-
title: 123
|
3 |
-
emoji:
|
4 |
-
colorFrom:
|
5 |
colorTo: pink
|
6 |
sdk: static
|
7 |
pinned: false
|
|
|
|
|
8 |
---
|
9 |
|
10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
1 |
---
|
2 |
+
title: 123-1
|
3 |
+
emoji: 🐳
|
4 |
+
colorFrom: green
|
5 |
colorTo: pink
|
6 |
sdk: static
|
7 |
pinned: false
|
8 |
+
tags:
|
9 |
+
- deepsite
|
10 |
---
|
11 |
|
12 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
index.html
CHANGED
@@ -1,19 +1,539 @@
|
|
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>AI Nexus - Discover Cutting-Edge AI Applications</title>
|
7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
8 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
9 |
+
<script>
|
10 |
+
tailwind.config = {
|
11 |
+
theme: {
|
12 |
+
extend: {
|
13 |
+
colors: {
|
14 |
+
primary: '#6366f1',
|
15 |
+
secondary: '#8b5cf6',
|
16 |
+
dark: '#1e293b',
|
17 |
+
light: '#f8fafc',
|
18 |
+
},
|
19 |
+
animation: {
|
20 |
+
'float': 'float 6s ease-in-out infinite',
|
21 |
+
'pulse-slow': 'pulse 5s infinite',
|
22 |
+
}
|
23 |
+
}
|
24 |
+
}
|
25 |
+
}
|
26 |
+
</script>
|
27 |
+
<style>
|
28 |
+
@keyframes float {
|
29 |
+
0% { transform: translateY(0px); }
|
30 |
+
50% { transform: translateY(-20px); }
|
31 |
+
100% { transform: translateY(0px); }
|
32 |
+
}
|
33 |
+
|
34 |
+
.gradient-bg {
|
35 |
+
background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
|
36 |
+
}
|
37 |
+
|
38 |
+
.card-hover:hover {
|
39 |
+
transform: translateY(-10px);
|
40 |
+
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
|
41 |
+
}
|
42 |
+
|
43 |
+
.search-highlight {
|
44 |
+
background-color: rgba(251, 191, 36, 0.3);
|
45 |
+
padding: 0 2px;
|
46 |
+
border-radius: 2px;
|
47 |
+
}
|
48 |
+
|
49 |
+
.category-chip {
|
50 |
+
transition: all 0.3s ease;
|
51 |
+
}
|
52 |
+
|
53 |
+
.category-chip:hover {
|
54 |
+
transform: scale(1.05);
|
55 |
+
}
|
56 |
+
|
57 |
+
.category-chip.active {
|
58 |
+
background-color: #6366f1;
|
59 |
+
color: white;
|
60 |
+
}
|
61 |
+
</style>
|
62 |
+
</head>
|
63 |
+
<body class="bg-gray-50 text-dark min-h-screen">
|
64 |
+
<!-- Header -->
|
65 |
+
<header class="gradient-bg text-white">
|
66 |
+
<div class="container mx-auto px-4 py-12">
|
67 |
+
<div class="flex justify-between items-center mb-8">
|
68 |
+
<div class="flex items-center space-x-2">
|
69 |
+
<i class="fas fa-robot text-3xl"></i>
|
70 |
+
<h1 class="text-2xl font-bold">AI Nexus</h1>
|
71 |
+
</div>
|
72 |
+
<nav class="hidden md:flex space-x-6">
|
73 |
+
<a href="#" class="hover:text-gray-200 font-medium">Home</a>
|
74 |
+
<a href="#" class="hover:text-gray-200 font-medium">Categories</a>
|
75 |
+
<a href="#" class="hover:text-gray-200 font-medium">Trending</a>
|
76 |
+
<a href="#" class="hover:text-gray-200 font-medium">Submit App</a>
|
77 |
+
</nav>
|
78 |
+
<button class="md:hidden text-2xl">
|
79 |
+
<i class="fas fa-bars"></i>
|
80 |
+
</button>
|
81 |
+
</div>
|
82 |
+
|
83 |
+
<div class="text-center py-12">
|
84 |
+
<h2 class="text-4xl md:text-5xl font-bold mb-6">Discover the Future of AI</h2>
|
85 |
+
<p class="text-xl mb-8 max-w-2xl mx-auto">Explore our curated collection of cutting-edge AI web applications that are transforming industries.</p>
|
86 |
+
|
87 |
+
<div class="max-w-2xl mx-auto relative">
|
88 |
+
<input type="text" id="searchInput" placeholder="Search AI applications..." class="w-full px-6 py-4 rounded-full shadow-lg focus:outline-none focus:ring-2 focus:ring-primary text-dark">
|
89 |
+
<button class="absolute right-2 top-2 bg-primary text-white p-2 rounded-full hover:bg-indigo-700 transition">
|
90 |
+
<i class="fas fa-search"></i>
|
91 |
+
</button>
|
92 |
+
</div>
|
93 |
+
</div>
|
94 |
+
</div>
|
95 |
+
</header>
|
96 |
+
|
97 |
+
<!-- Main Content -->
|
98 |
+
<main class="container mx-auto px-4 py-12">
|
99 |
+
<!-- Categories -->
|
100 |
+
<section class="mb-16">
|
101 |
+
<h2 class="text-3xl font-bold mb-8 text-center">Browse by Category</h2>
|
102 |
+
<div class="flex flex-wrap justify-center gap-4 mb-8" id="categoryContainer">
|
103 |
+
<!-- Categories will be added by JavaScript -->
|
104 |
+
</div>
|
105 |
+
|
106 |
+
<div class="text-center">
|
107 |
+
<button id="showAllBtn" class="px-6 py-2 bg-primary text-white rounded-full hover:bg-indigo-700 transition">Show All</button>
|
108 |
+
</div>
|
109 |
+
</section>
|
110 |
+
|
111 |
+
<!-- Featured Apps -->
|
112 |
+
<section class="mb-16">
|
113 |
+
<div class="flex justify-between items-center mb-8">
|
114 |
+
<h2 class="text-3xl font-bold">Featured AI Apps</h2>
|
115 |
+
<div class="flex space-x-2">
|
116 |
+
<button class="px-4 py-2 bg-gray-200 rounded-full hover:bg-gray-300 transition">Newest</button>
|
117 |
+
<button class="px-4 py-2 bg-gray-200 rounded-full hover:bg-gray-300 transition">Popular</button>
|
118 |
+
</div>
|
119 |
+
</div>
|
120 |
+
|
121 |
+
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8" id="featuredApps">
|
122 |
+
<!-- Featured apps will be added by JavaScript -->
|
123 |
+
</div>
|
124 |
+
</section>
|
125 |
+
|
126 |
+
<!-- All Apps -->
|
127 |
+
<section>
|
128 |
+
<h2 class="text-3xl font-bold mb-8">All AI Applications</h2>
|
129 |
+
|
130 |
+
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6" id="allApps">
|
131 |
+
<!-- All apps will be added by JavaScript -->
|
132 |
+
</div>
|
133 |
+
|
134 |
+
<div class="text-center mt-12">
|
135 |
+
<button class="px-6 py-3 bg-primary text-white rounded-lg hover:bg-indigo-700 transition flex items-center mx-auto">
|
136 |
+
Load More <i class="fas fa-arrow-down ml-2"></i>
|
137 |
+
</button>
|
138 |
+
</div>
|
139 |
+
</section>
|
140 |
+
</main>
|
141 |
+
|
142 |
+
<!-- Newsletter -->
|
143 |
+
<section class="gradient-bg text-white py-16">
|
144 |
+
<div class="container mx-auto px-4 text-center">
|
145 |
+
<div class="max-w-2xl mx-auto">
|
146 |
+
<h2 class="text-3xl font-bold mb-4">Stay Updated</h2>
|
147 |
+
<p class="mb-8">Subscribe to our newsletter to get the latest AI tools and updates delivered to your inbox.</p>
|
148 |
+
|
149 |
+
<div class="flex flex-col sm:flex-row gap-4 max-w-lg mx-auto">
|
150 |
+
<input type="email" placeholder="Your email address" class="flex-grow px-4 py-3 rounded-lg text-dark focus:outline-none focus:ring-2 focus:ring-primary">
|
151 |
+
<button class="px-6 py-3 bg-white text-primary font-bold rounded-lg hover:bg-gray-100 transition">Subscribe</button>
|
152 |
+
</div>
|
153 |
+
</div>
|
154 |
+
</div>
|
155 |
+
</section>
|
156 |
+
|
157 |
+
<!-- Footer -->
|
158 |
+
<footer class="bg-dark text-white py-12">
|
159 |
+
<div class="container mx-auto px-4">
|
160 |
+
<div class="grid grid-cols-1 md:grid-cols-4 gap-8 mb-8">
|
161 |
+
<div>
|
162 |
+
<h3 class="text-xl font-bold mb-4 flex items-center">
|
163 |
+
<i class="fas fa-robot mr-2"></i> AI Nexus
|
164 |
+
</h3>
|
165 |
+
<p class="text-gray-400">The premier directory for discovering innovative AI web applications.</p>
|
166 |
+
</div>
|
167 |
+
|
168 |
+
<div>
|
169 |
+
<h4 class="font-bold mb-4">Explore</h4>
|
170 |
+
<ul class="space-y-2 text-gray-400">
|
171 |
+
<li><a href="#" class="hover:text-white transition">Categories</a></li>
|
172 |
+
<li><a href="#" class="hover:text-white transition">Trending</a></li>
|
173 |
+
<li><a href="#" class="hover:text-white transition">New Releases</a></li>
|
174 |
+
<li><a href="#" class="hover:text-white transition">Developer Tools</a></li>
|
175 |
+
</ul>
|
176 |
+
</div>
|
177 |
+
|
178 |
+
<div>
|
179 |
+
<h4 class="font-bold mb-4">Company</h4>
|
180 |
+
<ul class="space-y-2 text-gray-400">
|
181 |
+
<li><a href="#" class="hover:text-white transition">About Us</a></li>
|
182 |
+
<li><a href="#" class="hover:text-white transition">Contact</a></li>
|
183 |
+
<li><a href="#" class="hover:text-white transition">Submit App</a></li>
|
184 |
+
<li><a href="#" class="hover:text-white transition">Careers</a></li>
|
185 |
+
</ul>
|
186 |
+
</div>
|
187 |
+
|
188 |
+
<div>
|
189 |
+
<h4 class="font-bold mb-4">Connect</h4>
|
190 |
+
<div class="flex space-x-4">
|
191 |
+
<a href="#" class="text-gray-400 hover:text-white transition text-xl"><i class="fab fa-twitter"></i></a>
|
192 |
+
<a href="#" class="text-gray-400 hover:text-white transition text-xl"><i class="fab fa-linkedin"></i></a>
|
193 |
+
<a href="#" class="text-gray-400 hover:text-white transition text-xl"><i class="fab fa-github"></i></a>
|
194 |
+
<a href="#" class="text-gray-400 hover:text-white transition text-xl"><i class="fab fa-discord"></i></a>
|
195 |
+
</div>
|
196 |
+
</div>
|
197 |
+
</div>
|
198 |
+
|
199 |
+
<div class="pt-8 border-t border-gray-700 text-center text-gray-400">
|
200 |
+
<p>© 2023 AI Nexus. All rights reserved.</p>
|
201 |
+
</div>
|
202 |
+
</div>
|
203 |
+
</footer>
|
204 |
+
|
205 |
+
<script>
|
206 |
+
// Sample data for AI applications
|
207 |
+
const aiApps = [
|
208 |
+
{
|
209 |
+
id: 1,
|
210 |
+
name: "ChatGPT Pro",
|
211 |
+
description: "Advanced conversational AI with multi-language support and context-aware responses.",
|
212 |
+
category: "Chatbots",
|
213 |
+
price: "Freemium",
|
214 |
+
rating: 4.9,
|
215 |
+
url: "#",
|
216 |
+
featured: true,
|
217 |
+
logo: "fas fa-comments",
|
218 |
+
color: "text-blue-500"
|
219 |
+
},
|
220 |
+
{
|
221 |
+
id: 2,
|
222 |
+
name: "DALL-E Creator",
|
223 |
+
description: "Generate stunning AI artwork from text descriptions with unprecedented quality.",
|
224 |
+
category: "Image Generation",
|
225 |
+
price: "Paid",
|
226 |
+
rating: 4.8,
|
227 |
+
url: "#",
|
228 |
+
featured: true,
|
229 |
+
logo: "fas fa-paint-brush",
|
230 |
+
color: "text-purple-500"
|
231 |
+
},
|
232 |
+
{
|
233 |
+
id: 3,
|
234 |
+
name: "CodePilot",
|
235 |
+
description: "AI pair programmer that helps you write better code faster with intelligent suggestions.",
|
236 |
+
category: "Developer Tools",
|
237 |
+
price: "Freemium",
|
238 |
+
rating: 4.7,
|
239 |
+
url: "#",
|
240 |
+
featured: true,
|
241 |
+
logo: "fas fa-code",
|
242 |
+
color: "text-green-500"
|
243 |
+
},
|
244 |
+
{
|
245 |
+
id: 4,
|
246 |
+
name: "VoiceClone",
|
247 |
+
description: "Create realistic voice replicas with just a few minutes of sample audio.",
|
248 |
+
category: "Voice Synthesis",
|
249 |
+
price: "Paid",
|
250 |
+
rating: 4.5,
|
251 |
+
url: "#",
|
252 |
+
featured: false,
|
253 |
+
logo: "fas fa-microphone",
|
254 |
+
color: "text-red-500"
|
255 |
+
},
|
256 |
+
{
|
257 |
+
id: 5,
|
258 |
+
name: "DeepAnalyze",
|
259 |
+
description: "Powerful data analysis tool that uncovers insights from your datasets automatically.",
|
260 |
+
category: "Data Science",
|
261 |
+
price: "Freemium",
|
262 |
+
rating: 4.6,
|
263 |
+
url: "#",
|
264 |
+
featured: false,
|
265 |
+
logo: "fas fa-chart-line",
|
266 |
+
color: "text-yellow-500"
|
267 |
+
},
|
268 |
+
{
|
269 |
+
id: 6,
|
270 |
+
name: "LegalMind",
|
271 |
+
description: "AI-powered legal research assistant that helps you find relevant case law instantly.",
|
272 |
+
category: "Legal",
|
273 |
+
price: "Subscription",
|
274 |
+
rating: 4.4,
|
275 |
+
url: "#",
|
276 |
+
featured: false,
|
277 |
+
logo: "fas fa-gavel",
|
278 |
+
color: "text-indigo-500"
|
279 |
+
},
|
280 |
+
{
|
281 |
+
id: 7,
|
282 |
+
name: "MediScan",
|
283 |
+
description: "Analyze medical images with AI to detect anomalies and assist diagnosis.",
|
284 |
+
category: "Healthcare",
|
285 |
+
price: "Enterprise",
|
286 |
+
rating: 4.9,
|
287 |
+
url: "#",
|
288 |
+
featured: false,
|
289 |
+
logo: "fas fa-heartbeat",
|
290 |
+
color: "text-pink-500"
|
291 |
+
},
|
292 |
+
{
|
293 |
+
id: 8,
|
294 |
+
name: "VideoGenius",
|
295 |
+
description: "Automatically edit and enhance your videos with AI-powered tools.",
|
296 |
+
category: "Video Editing",
|
297 |
+
price: "Freemium",
|
298 |
+
rating: 4.3,
|
299 |
+
url: "#",
|
300 |
+
featured: false,
|
301 |
+
logo: "fas fa-video",
|
302 |
+
color: "text-blue-400"
|
303 |
+
},
|
304 |
+
{
|
305 |
+
id: 9,
|
306 |
+
name: "ResumeAI",
|
307 |
+
description: "Create the perfect resume tailored to each job application with intelligent suggestions.",
|
308 |
+
category: "Career",
|
309 |
+
price: "Freemium",
|
310 |
+
rating: 4.2,
|
311 |
+
url: "#",
|
312 |
+
featured: false,
|
313 |
+
logo: "fas fa-file-alt",
|
314 |
+
color: "text-teal-500"
|
315 |
+
},
|
316 |
+
{
|
317 |
+
id: 10,
|
318 |
+
name: "MusicMind",
|
319 |
+
description: "Compose original music in any style with AI assistance and customization.",
|
320 |
+
category: "Creative",
|
321 |
+
price: "Subscription",
|
322 |
+
rating: 4.7,
|
323 |
+
url: "#",
|
324 |
+
featured: false,
|
325 |
+
logo: "fas fa-music",
|
326 |
+
color: "text-orange-500"
|
327 |
+
},
|
328 |
+
{
|
329 |
+
id: 11,
|
330 |
+
name: "LangBridge",
|
331 |
+
description: "Real-time translation tool with natural-sounding voice output in 50+ languages.",
|
332 |
+
category: "Language",
|
333 |
+
price: "Freemium",
|
334 |
+
rating: 4.5,
|
335 |
+
url: "#",
|
336 |
+
featured: false,
|
337 |
+
logo: "fas fa-language",
|
338 |
+
color: "text-cyan-500"
|
339 |
+
},
|
340 |
+
{
|
341 |
+
id: 12,
|
342 |
+
name: "MarketPredict",
|
343 |
+
description: "AI-powered stock market analysis and prediction tool for investors.",
|
344 |
+
category: "Finance",
|
345 |
+
price: "Paid",
|
346 |
+
rating: 4.6,
|
347 |
+
url: "#",
|
348 |
+
featured: false,
|
349 |
+
logo: "fas fa-chart-pie",
|
350 |
+
color: "text-green-400"
|
351 |
+
}
|
352 |
+
];
|
353 |
+
|
354 |
+
// Get all unique categories
|
355 |
+
const categories = [...new Set(aiApps.map(app => app.category))];
|
356 |
+
|
357 |
+
// DOM elements
|
358 |
+
const categoryContainer = document.getElementById('categoryContainer');
|
359 |
+
const featuredAppsContainer = document.getElementById('featuredApps');
|
360 |
+
const allAppsContainer = document.getElementById('allApps');
|
361 |
+
const searchInput = document.getElementById('searchInput');
|
362 |
+
const showAllBtn = document.getElementById('showAllBtn');
|
363 |
+
|
364 |
+
// Render categories
|
365 |
+
function renderCategories() {
|
366 |
+
categoryContainer.innerHTML = '';
|
367 |
+
|
368 |
+
categories.forEach(category => {
|
369 |
+
const chip = document.createElement('button');
|
370 |
+
chip.className = 'category-chip px-4 py-2 bg-gray-200 rounded-full hover:bg-gray-300 transition';
|
371 |
+
chip.textContent = category;
|
372 |
+
chip.dataset.category = category;
|
373 |
+
|
374 |
+
chip.addEventListener('click', () => {
|
375 |
+
// Remove active class from all chips
|
376 |
+
document.querySelectorAll('.category-chip').forEach(c => c.classList.remove('active'));
|
377 |
+
// Add active class to clicked chip
|
378 |
+
chip.classList.add('active');
|
379 |
+
|
380 |
+
filterAppsByCategory(category);
|
381 |
+
});
|
382 |
+
|
383 |
+
categoryContainer.appendChild(chip);
|
384 |
+
});
|
385 |
+
}
|
386 |
+
|
387 |
+
// Render featured apps
|
388 |
+
function renderFeaturedApps() {
|
389 |
+
featuredAppsContainer.innerHTML = '';
|
390 |
+
|
391 |
+
const featuredApps = aiApps.filter(app => app.featured);
|
392 |
+
|
393 |
+
featuredApps.forEach(app => {
|
394 |
+
const card = createAppCard(app, true);
|
395 |
+
featuredAppsContainer.appendChild(card);
|
396 |
+
});
|
397 |
+
}
|
398 |
+
|
399 |
+
// Render all apps
|
400 |
+
function renderAllApps() {
|
401 |
+
allAppsContainer.innerHTML = '';
|
402 |
+
|
403 |
+
aiApps.forEach(app => {
|
404 |
+
const card = createAppCard(app, false);
|
405 |
+
allAppsContainer.appendChild(card);
|
406 |
+
});
|
407 |
+
}
|
408 |
+
|
409 |
+
// Create app card element
|
410 |
+
function createAppCard(app, isFeatured) {
|
411 |
+
const card = document.createElement('div');
|
412 |
+
card.className = `bg-white rounded-xl shadow-md overflow-hidden transition-all duration-300 ${isFeatured ? 'card-hover' : ''}`;
|
413 |
+
|
414 |
+
card.innerHTML = `
|
415 |
+
<div class="p-6">
|
416 |
+
<div class="flex items-center mb-4">
|
417 |
+
<div class="${app.color} text-3xl mr-4">
|
418 |
+
<i class="${app.logo}"></i>
|
419 |
+
</div>
|
420 |
+
<div>
|
421 |
+
<h3 class="font-bold text-xl">${app.name}</h3>
|
422 |
+
<div class="flex items-center">
|
423 |
+
${generateStars(app.rating)}
|
424 |
+
<span class="text-gray-500 ml-2">${app.rating}</span>
|
425 |
+
</div>
|
426 |
+
</div>
|
427 |
+
</div>
|
428 |
+
<p class="text-gray-600 mb-4">${app.description}</p>
|
429 |
+
<div class="flex justify-between items-center">
|
430 |
+
<span class="px-3 py-1 bg-gray-100 rounded-full text-sm">${app.category}</span>
|
431 |
+
<span class="font-medium ${app.price === 'Freemium' ? 'text-green-500' : app.price === 'Paid' ? 'text-blue-500' : 'text-purple-500'}">${app.price}</span>
|
432 |
+
</div>
|
433 |
+
</div>
|
434 |
+
<div class="px-6 py-3 bg-gray-50">
|
435 |
+
<a href="${app.url}" class="block text-center w-full py-2 bg-primary text-white rounded-lg hover:bg-indigo-700 transition">Visit App</a>
|
436 |
+
</div>
|
437 |
+
`;
|
438 |
+
|
439 |
+
return card;
|
440 |
+
}
|
441 |
+
|
442 |
+
// Generate star rating HTML
|
443 |
+
function generateStars(rating) {
|
444 |
+
let stars = '';
|
445 |
+
const fullStars = Math.floor(rating);
|
446 |
+
const hasHalfStar = rating % 1 >= 0.5;
|
447 |
+
|
448 |
+
for (let i = 0; i < fullStars; i++) {
|
449 |
+
stars += '<i class="fas fa-star text-yellow-400"></i>';
|
450 |
+
}
|
451 |
+
|
452 |
+
if (hasHalfStar) {
|
453 |
+
stars += '<i class="fas fa-star-half-alt text-yellow-400"></i>';
|
454 |
+
}
|
455 |
+
|
456 |
+
const emptyStars = 5 - Math.ceil(rating);
|
457 |
+
for (let i = 0; i < emptyStars; i++) {
|
458 |
+
stars += '<i class="far fa-star text-yellow-400"></i>';
|
459 |
+
}
|
460 |
+
|
461 |
+
return stars;
|
462 |
+
}
|
463 |
+
|
464 |
+
// Filter apps by category
|
465 |
+
function filterAppsByCategory(category) {
|
466 |
+
const filteredApps = aiApps.filter(app => app.category === category);
|
467 |
+
|
468 |
+
allAppsContainer.innerHTML = '';
|
469 |
+
filteredApps.forEach(app => {
|
470 |
+
const card = createAppCard(app, false);
|
471 |
+
allAppsContainer.appendChild(card);
|
472 |
+
});
|
473 |
+
}
|
474 |
+
|
475 |
+
// Search functionality
|
476 |
+
searchInput.addEventListener('input', (e) => {
|
477 |
+
const searchTerm = e.target.value.toLowerCase();
|
478 |
+
|
479 |
+
if (searchTerm.length > 0) {
|
480 |
+
const filteredApps = aiApps.filter(app =>
|
481 |
+
app.name.toLowerCase().includes(searchTerm) ||
|
482 |
+
app.description.toLowerCase().includes(searchTerm) ||
|
483 |
+
app.category.toLowerCase().includes(searchTerm)
|
484 |
+
);
|
485 |
+
|
486 |
+
allAppsContainer.innerHTML = '';
|
487 |
+
filteredApps.forEach(app => {
|
488 |
+
const highlightedCard = highlightSearchTerm(app, searchTerm);
|
489 |
+
allAppsContainer.appendChild(highlightedCard);
|
490 |
+
});
|
491 |
+
} else {
|
492 |
+
renderAllApps();
|
493 |
+
}
|
494 |
+
});
|
495 |
+
|
496 |
+
// Highlight search term in results
|
497 |
+
function highlightSearchTerm(app, searchTerm) {
|
498 |
+
const card = createAppCard(app, false);
|
499 |
+
|
500 |
+
// Highlight in name
|
501 |
+
const nameElement = card.querySelector('h3');
|
502 |
+
nameElement.innerHTML = nameElement.textContent.replace(
|
503 |
+
new RegExp(searchTerm, 'gi'),
|
504 |
+
match => `<span class="search-highlight">${match}</span>`
|
505 |
+
);
|
506 |
+
|
507 |
+
// Highlight in description
|
508 |
+
const descElement = card.querySelector('p');
|
509 |
+
descElement.innerHTML = descElement.textContent.replace(
|
510 |
+
new RegExp(searchTerm, 'gi'),
|
511 |
+
match => `<span class="search-highlight">${match}</span>`
|
512 |
+
);
|
513 |
+
|
514 |
+
// Highlight in category
|
515 |
+
const categoryElement = card.querySelector('span:first-of-type');
|
516 |
+
categoryElement.innerHTML = categoryElement.textContent.replace(
|
517 |
+
new RegExp(searchTerm, 'gi'),
|
518 |
+
match => `<span class="search-highlight">${match}</span>`
|
519 |
+
);
|
520 |
+
|
521 |
+
return card;
|
522 |
+
}
|
523 |
+
|
524 |
+
// Show all apps
|
525 |
+
showAllBtn.addEventListener('click', () => {
|
526 |
+
// Remove active class from all chips
|
527 |
+
document.querySelectorAll('.category-chip').forEach(c => c.classList.remove('active'));
|
528 |
+
renderAllApps();
|
529 |
+
});
|
530 |
+
|
531 |
+
// Initialize
|
532 |
+
document.addEventListener('DOMContentLoaded', () => {
|
533 |
+
renderCategories();
|
534 |
+
renderFeaturedApps();
|
535 |
+
renderAllApps();
|
536 |
+
});
|
537 |
+
</script>
|
538 |
+
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=adminSanderson/123-1" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
539 |
+
</html>
|