Spaces:
Running
Running
Add 3 files
Browse files- README.md +7 -5
- index.html +455 -19
- prompts.txt +1 -0
README.md
CHANGED
@@ -1,10 +1,12 @@
|
|
1 |
---
|
2 |
-
title:
|
3 |
-
emoji:
|
4 |
-
colorFrom:
|
5 |
-
colorTo:
|
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: minepage
|
3 |
+
emoji: 🐳
|
4 |
+
colorFrom: purple
|
5 |
+
colorTo: red
|
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,455 @@
|
|
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>Interactive UI Showcase</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 |
+
<style>
|
10 |
+
/* Custom CSS for elements that need more precise styling */
|
11 |
+
.gradient-bg {
|
12 |
+
background: linear-gradient(135deg, #6e8efb, #a777e3);
|
13 |
+
}
|
14 |
+
.card-hover {
|
15 |
+
transition: all 0.3s ease;
|
16 |
+
}
|
17 |
+
.card-hover:hover {
|
18 |
+
transform: translateY(-5px);
|
19 |
+
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
|
20 |
+
}
|
21 |
+
.animated-button {
|
22 |
+
position: relative;
|
23 |
+
overflow: hidden;
|
24 |
+
}
|
25 |
+
.animated-button::after {
|
26 |
+
content: '';
|
27 |
+
position: absolute;
|
28 |
+
top: 50%;
|
29 |
+
left: 50%;
|
30 |
+
width: 5px;
|
31 |
+
height: 5px;
|
32 |
+
background: rgba(255, 255, 255, 0.5);
|
33 |
+
opacity: 0;
|
34 |
+
border-radius: 100%;
|
35 |
+
transform: scale(1, 1) translate(-50%);
|
36 |
+
transform-origin: 50% 50%;
|
37 |
+
}
|
38 |
+
.animated-button:focus:not(:active)::after {
|
39 |
+
animation: ripple 1s ease-out;
|
40 |
+
}
|
41 |
+
@keyframes ripple {
|
42 |
+
0% {
|
43 |
+
transform: scale(0, 0);
|
44 |
+
opacity: 0.5;
|
45 |
+
}
|
46 |
+
100% {
|
47 |
+
transform: scale(20, 20);
|
48 |
+
opacity: 0;
|
49 |
+
}
|
50 |
+
}
|
51 |
+
.floating {
|
52 |
+
animation: floating 3s ease-in-out infinite;
|
53 |
+
}
|
54 |
+
@keyframes floating {
|
55 |
+
0% { transform: translateY(0px); }
|
56 |
+
50% { transform: translateY(-15px); }
|
57 |
+
100% { transform: translateY(0px); }
|
58 |
+
}
|
59 |
+
</style>
|
60 |
+
</head>
|
61 |
+
<body class="bg-gray-50 min-h-screen">
|
62 |
+
<!-- Navigation -->
|
63 |
+
<nav class="bg-white shadow-lg">
|
64 |
+
<div class="max-w-6xl mx-auto px-4">
|
65 |
+
<div class="flex justify-between">
|
66 |
+
<div class="flex space-x-7">
|
67 |
+
<div>
|
68 |
+
<a href="#" class="flex items-center py-4 px-2">
|
69 |
+
<i class="fas fa-cube text-purple-600 text-2xl mr-2"></i>
|
70 |
+
<span class="font-semibold text-gray-500 text-lg">CubeUI</span>
|
71 |
+
</a>
|
72 |
+
</div>
|
73 |
+
<div class="hidden md:flex items-center space-x-1">
|
74 |
+
<a href="#" class="py-4 px-2 text-purple-600 border-b-4 border-purple-600 font-semibold">Home</a>
|
75 |
+
<a href="#" class="py-4 px-2 text-gray-500 font-semibold hover:text-purple-600 transition duration-300">Services</a>
|
76 |
+
<a href="#" class="py-4 px-2 text-gray-500 font-semibold hover:text-purple-600 transition duration-300">About</a>
|
77 |
+
<a href="#" class="py-4 px-2 text-gray-500 font-semibold hover:text-purple-600 transition duration-300">Contact</a>
|
78 |
+
</div>
|
79 |
+
</div>
|
80 |
+
<div class="hidden md:flex items-center space-x-3">
|
81 |
+
<a href="#" class="py-2 px-2 font-medium text-gray-500 rounded hover:bg-purple-600 hover:text-white transition duration-300">Log In</a>
|
82 |
+
<a href="#" class="py-2 px-3 font-medium text-white bg-purple-600 rounded hover:bg-purple-700 transition duration-300">Sign Up</a>
|
83 |
+
</div>
|
84 |
+
<div class="md:hidden flex items-center">
|
85 |
+
<button class="outline-none mobile-menu-button">
|
86 |
+
<i class="fas fa-bars text-gray-500 text-xl"></i>
|
87 |
+
</button>
|
88 |
+
</div>
|
89 |
+
</div>
|
90 |
+
</div>
|
91 |
+
<div class="hidden mobile-menu">
|
92 |
+
<ul>
|
93 |
+
<li class="active"><a href="#" class="block text-sm px-2 py-4 text-white bg-purple-600 font-semibold">Home</a></li>
|
94 |
+
<li><a href="#" class="block text-sm px-2 py-4 hover:bg-purple-600 hover:text-white transition duration-300">Services</a></li>
|
95 |
+
<li><a href="#" class="block text-sm px-2 py-4 hover:bg-purple-600 hover:text-white transition duration-300">About</a></li>
|
96 |
+
<li><a href="#" class="block text-sm px-2 py-4 hover:bg-purple-600 hover:text-white transition duration-300">Contact</a></li>
|
97 |
+
</ul>
|
98 |
+
</div>
|
99 |
+
</nav>
|
100 |
+
|
101 |
+
<!-- Hero Section -->
|
102 |
+
<div class="gradient-bg text-white py-20">
|
103 |
+
<div class="container mx-auto px-6 flex flex-col md:flex-row items-center">
|
104 |
+
<div class="md:w-1/2 mb-10 md:mb-0">
|
105 |
+
<h1 class="text-4xl md:text-6xl font-bold mb-4">Build Amazing UIs</h1>
|
106 |
+
<p class="text-xl mb-8">With the power of HTML, CSS, and JavaScript, create stunning interfaces that captivate your users.</p>
|
107 |
+
<div class="flex flex-col sm:flex-row space-y-4 sm:space-y-0 sm:space-x-4">
|
108 |
+
<button class="animated-button bg-white text-purple-600 font-bold py-3 px-6 rounded-full hover:bg-gray-100 transition duration-300 focus:outline-none">
|
109 |
+
Get Started
|
110 |
+
</button>
|
111 |
+
<button class="animated-button bg-transparent border-2 border-white text-white font-bold py-3 px-6 rounded-full hover:bg-white hover:text-purple-600 transition duration-300 focus:outline-none">
|
112 |
+
Learn More
|
113 |
+
</button>
|
114 |
+
</div>
|
115 |
+
</div>
|
116 |
+
<div class="md:w-1/2 flex justify-center">
|
117 |
+
<div class="relative w-64 h-64 md:w-80 md:h-80">
|
118 |
+
<div class="absolute inset-0 bg-white bg-opacity-20 rounded-full filter blur-xl"></div>
|
119 |
+
<div class="relative flex items-center justify-center w-full h-full">
|
120 |
+
<img src="https://cdn-icons-png.flaticon.com/512/1063/1063249.png" alt="UI Illustration" class="w-3/4 floating">
|
121 |
+
</div>
|
122 |
+
</div>
|
123 |
+
</div>
|
124 |
+
</div>
|
125 |
+
</div>
|
126 |
+
|
127 |
+
<!-- Features Section -->
|
128 |
+
<section class="py-20 bg-white">
|
129 |
+
<div class="container mx-auto px-6">
|
130 |
+
<h2 class="text-3xl font-bold text-center text-gray-800 mb-12">Key Features</h2>
|
131 |
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
|
132 |
+
<!-- Feature 1 -->
|
133 |
+
<div class="bg-gray-50 p-8 rounded-lg card-hover">
|
134 |
+
<div class="w-16 h-16 bg-purple-100 rounded-full flex items-center justify-center mb-6">
|
135 |
+
<i class="fas fa-bolt text-purple-600 text-2xl"></i>
|
136 |
+
</div>
|
137 |
+
<h3 class="text-xl font-semibold text-gray-800 mb-3">Lightning Fast</h3>
|
138 |
+
<p class="text-gray-600">Optimized for performance with minimal dependencies and efficient code.</p>
|
139 |
+
</div>
|
140 |
+
<!-- Feature 2 -->
|
141 |
+
<div class="bg-gray-50 p-8 rounded-lg card-hover">
|
142 |
+
<div class="w-16 h-16 bg-purple-100 rounded-full flex items-center justify-center mb-6">
|
143 |
+
<i class="fas fa-mobile-alt text-purple-600 text-2xl"></i>
|
144 |
+
</div>
|
145 |
+
<h3 class="text-xl font-semibold text-gray-800 mb-3">Responsive Design</h3>
|
146 |
+
<p class="text-gray-600">Looks great on any device, from mobile phones to large desktop screens.</p>
|
147 |
+
</div>
|
148 |
+
<!-- Feature 3 -->
|
149 |
+
<div class="bg-gray-50 p-8 rounded-lg card-hover">
|
150 |
+
<div class="w-16 h-16 bg-purple-100 rounded-full flex items-center justify-center mb-6">
|
151 |
+
<i class="fas fa-paint-brush text-purple-600 text-2xl"></i>
|
152 |
+
</div>
|
153 |
+
<h3 class="text-xl font-semibold text-gray-800 mb-3">Customizable</h3>
|
154 |
+
<p class="text-gray-600">Easily modify colors, spacing, and components to match your brand.</p>
|
155 |
+
</div>
|
156 |
+
</div>
|
157 |
+
</div>
|
158 |
+
</section>
|
159 |
+
|
160 |
+
<!-- Interactive Demo Section -->
|
161 |
+
<section class="py-20 bg-gray-100">
|
162 |
+
<div class="container mx-auto px-6">
|
163 |
+
<h2 class="text-3xl font-bold text-center text-gray-800 mb-12">Interactive Demo</h2>
|
164 |
+
<div class="flex flex-col md:flex-row items-center">
|
165 |
+
<div class="md:w-1/2 mb-10 md:mb-0">
|
166 |
+
<div class="bg-white p-6 rounded-lg shadow-lg">
|
167 |
+
<div class="flex justify-between items-center mb-4">
|
168 |
+
<h3 class="text-xl font-semibold">Theme Customizer</h3>
|
169 |
+
<button id="reset-btn" class="text-sm text-purple-600 hover:text-purple-800">Reset</button>
|
170 |
+
</div>
|
171 |
+
<div class="space-y-4">
|
172 |
+
<div>
|
173 |
+
<label class="block text-sm font-medium text-gray-700 mb-1">Primary Color</label>
|
174 |
+
<div class="flex space-x-2">
|
175 |
+
<button data-color="purple" class="color-btn w-8 h-8 rounded-full bg-purple-600 border-2 border-white shadow"></button>
|
176 |
+
<button data-color="blue" class="color-btn w-8 h-8 rounded-full bg-blue-600 border-2 border-white shadow"></button>
|
177 |
+
<button data-color="green" class="color-btn w-8 h-8 rounded-full bg-green-600 border-2 border-white shadow"></button>
|
178 |
+
<button data-color="red" class="color-btn w-8 h-8 rounded-full bg-red-600 border-2 border-white shadow"></button>
|
179 |
+
</div>
|
180 |
+
</div>
|
181 |
+
<div>
|
182 |
+
<label class="block text-sm font-medium text-gray-700 mb-1">Dark Mode</label>
|
183 |
+
<label class="relative inline-flex items-center cursor-pointer">
|
184 |
+
<input type="checkbox" id="dark-mode-toggle" class="sr-only peer">
|
185 |
+
<div class="w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-purple-300 rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-purple-600"></div>
|
186 |
+
<span class="ml-3 text-sm font-medium text-gray-700">Toggle</span>
|
187 |
+
</label>
|
188 |
+
</div>
|
189 |
+
</div>
|
190 |
+
</div>
|
191 |
+
</div>
|
192 |
+
<div class="md:w-1/2">
|
193 |
+
<div id="demo-card" class="bg-white p-6 rounded-lg shadow-lg transition-all duration-300">
|
194 |
+
<div class="flex items-center mb-4">
|
195 |
+
<div class="w-12 h-12 rounded-full bg-purple-100 flex items-center justify-center mr-4">
|
196 |
+
<i class="fas fa-user text-purple-600 text-xl"></i>
|
197 |
+
</div>
|
198 |
+
<div>
|
199 |
+
<h3 class="font-semibold">John Doe</h3>
|
200 |
+
<p class="text-sm text-gray-600">UI Designer</p>
|
201 |
+
</div>
|
202 |
+
</div>
|
203 |
+
<p class="text-gray-700 mb-4">This is a preview card that changes based on your selections. Try customizing the theme!</p>
|
204 |
+
<div class="flex space-x-2">
|
205 |
+
<button class="bg-purple-600 text-white px-4 py-2 rounded hover:bg-purple-700 transition duration-300">Follow</button>
|
206 |
+
<button class="border border-gray-300 px-4 py-2 rounded hover:bg-gray-100 transition duration-300">Message</button>
|
207 |
+
</div>
|
208 |
+
</div>
|
209 |
+
</div>
|
210 |
+
</div>
|
211 |
+
</div>
|
212 |
+
</section>
|
213 |
+
|
214 |
+
<!-- Newsletter Section -->
|
215 |
+
<section class="py-16 gradient-bg text-white">
|
216 |
+
<div class="container mx-auto px-6 text-center">
|
217 |
+
<h2 class="text-3xl font-bold mb-6">Stay Updated</h2>
|
218 |
+
<p class="text-xl mb-8 max-w-2xl mx-auto">Subscribe to our newsletter for the latest updates and tips on UI development.</p>
|
219 |
+
<div class="flex flex-col sm:flex-row justify-center max-w-md mx-auto">
|
220 |
+
<input type="email" placeholder="Enter your email" class="flex-grow px-4 py-3 rounded-l-full sm:rounded-r-none rounded-r-full mb-2 sm:mb-0 focus:outline-none text-gray-800">
|
221 |
+
<button class="animated-button bg-white text-purple-600 font-bold px-6 py-3 rounded-r-full sm:rounded-l-none rounded-l-full hover:bg-gray-100 transition duration-300 focus:outline-none">
|
222 |
+
Subscribe
|
223 |
+
</button>
|
224 |
+
</div>
|
225 |
+
</div>
|
226 |
+
</section>
|
227 |
+
|
228 |
+
<!-- Footer -->
|
229 |
+
<footer class="bg-gray-800 text-white py-12">
|
230 |
+
<div class="container mx-auto px-6">
|
231 |
+
<div class="grid grid-cols-1 md:grid-cols-4 gap-8">
|
232 |
+
<div>
|
233 |
+
<h3 class="text-xl font-semibold mb-4">CubeUI</h3>
|
234 |
+
<p class="text-gray-400">Creating beautiful, functional user interfaces with pure web technologies.</p>
|
235 |
+
</div>
|
236 |
+
<div>
|
237 |
+
<h4 class="font-semibold mb-4">Quick Links</h4>
|
238 |
+
<ul class="space-y-2">
|
239 |
+
<li><a href="#" class="text-gray-400 hover:text-white transition duration-300">Home</a></li>
|
240 |
+
<li><a href="#" class="text-gray-400 hover:text-white transition duration-300">Features</a></li>
|
241 |
+
<li><a href="#" class="text-gray-400 hover:text-white transition duration-300">Pricing</a></li>
|
242 |
+
<li><a href="#" class="text-gray-400 hover:text-white transition duration-300">Blog</a></li>
|
243 |
+
</ul>
|
244 |
+
</div>
|
245 |
+
<div>
|
246 |
+
<h4 class="font-semibold mb-4">Resources</h4>
|
247 |
+
<ul class="space-y-2">
|
248 |
+
<li><a href="#" class="text-gray-400 hover:text-white transition duration-300">Documentation</a></li>
|
249 |
+
<li><a href="#" class="text-gray-400 hover:text-white transition duration-300">Tutorials</a></li>
|
250 |
+
<li><a href="#" class="text-gray-400 hover:text-white transition duration-300">Support</a></li>
|
251 |
+
<li><a href="#" class="text-gray-400 hover:text-white transition duration-300">API Reference</a></li>
|
252 |
+
</ul>
|
253 |
+
</div>
|
254 |
+
<div>
|
255 |
+
<h4 class="font-semibold mb-4">Connect</h4>
|
256 |
+
<div class="flex space-x-4">
|
257 |
+
<a href="#" class="text-gray-400 hover:text-white transition duration-300"><i class="fab fa-twitter text-xl"></i></a>
|
258 |
+
<a href="#" class="text-gray-400 hover:text-white transition duration-300"><i class="fab fa-facebook text-xl"></i></a>
|
259 |
+
<a href="#" class="text-gray-400 hover:text-white transition duration-300"><i class="fab fa-instagram text-xl"></i></a>
|
260 |
+
<a href="#" class="text-gray-400 hover:text-white transition duration-300"><i class="fab fa-github text-xl"></i></a>
|
261 |
+
</div>
|
262 |
+
</div>
|
263 |
+
</div>
|
264 |
+
<div class="border-t border-gray-700 mt-8 pt-8 text-center text-gray-400">
|
265 |
+
<p>© 2023 CubeUI. All rights reserved.</p>
|
266 |
+
</div>
|
267 |
+
</div>
|
268 |
+
</footer>
|
269 |
+
|
270 |
+
<script>
|
271 |
+
// Mobile menu toggle
|
272 |
+
const mobileMenuButton = document.querySelector('.mobile-menu-button');
|
273 |
+
const mobileMenu = document.querySelector('.mobile-menu');
|
274 |
+
|
275 |
+
mobileMenuButton.addEventListener('click', () => {
|
276 |
+
mobileMenu.classList.toggle('hidden');
|
277 |
+
});
|
278 |
+
|
279 |
+
// Theme customization
|
280 |
+
const colorButtons = document.querySelectorAll('.color-btn');
|
281 |
+
const darkModeToggle = document.getElementById('dark-mode-toggle');
|
282 |
+
const demoCard = document.getElementById('demo-card');
|
283 |
+
const resetBtn = document.getElementById('reset-btn');
|
284 |
+
|
285 |
+
colorButtons.forEach(button => {
|
286 |
+
button.addEventListener('click', () => {
|
287 |
+
const color = button.getAttribute('data-color');
|
288 |
+
|
289 |
+
// Update all elements with primary color
|
290 |
+
document.querySelectorAll('.gradient-bg').forEach(el => {
|
291 |
+
el.classList.remove('gradient-bg');
|
292 |
+
el.classList.add(`bg-${color}-600`);
|
293 |
+
});
|
294 |
+
|
295 |
+
document.querySelectorAll('.text-purple-600').forEach(el => {
|
296 |
+
el.classList.remove('text-purple-600');
|
297 |
+
el.classList.add(`text-${color}-600`);
|
298 |
+
});
|
299 |
+
|
300 |
+
document.querySelectorAll('.bg-purple-600').forEach(el => {
|
301 |
+
el.classList.remove('bg-purple-600');
|
302 |
+
el.classList.add(`bg-${color}-600`);
|
303 |
+
});
|
304 |
+
|
305 |
+
document.querySelectorAll('.bg-purple-100').forEach(el => {
|
306 |
+
el.classList.remove('bg-purple-100');
|
307 |
+
el.classList.add(`bg-${color}-100`);
|
308 |
+
});
|
309 |
+
|
310 |
+
document.querySelectorAll('.border-purple-600').forEach(el => {
|
311 |
+
el.classList.remove('border-purple-600');
|
312 |
+
el.classList.add(`border-${color}-600`);
|
313 |
+
});
|
314 |
+
|
315 |
+
document.querySelectorAll('.peer-focus:ring-purple-300').forEach(el => {
|
316 |
+
el.classList.remove('peer-focus:ring-purple-300');
|
317 |
+
el.classList.add(`peer-focus:ring-${color}-300`);
|
318 |
+
});
|
319 |
+
|
320 |
+
document.querySelectorAll('.peer-checked:bg-purple-600').forEach(el => {
|
321 |
+
el.classList.remove('peer-checked:bg-purple-600');
|
322 |
+
el.classList.add(`peer-checked:bg-${color}-600`);
|
323 |
+
});
|
324 |
+
});
|
325 |
+
});
|
326 |
+
|
327 |
+
darkModeToggle.addEventListener('change', () => {
|
328 |
+
document.body.classList.toggle('bg-gray-900');
|
329 |
+
document.body.classList.toggle('bg-gray-50');
|
330 |
+
|
331 |
+
if (darkModeToggle.checked) {
|
332 |
+
demoCard.classList.remove('bg-white');
|
333 |
+
demoCard.classList.add('bg-gray-800');
|
334 |
+
|
335 |
+
document.querySelectorAll('.text-gray-800').forEach(el => {
|
336 |
+
el.classList.remove('text-gray-800');
|
337 |
+
el.classList.add('text-white');
|
338 |
+
});
|
339 |
+
|
340 |
+
document.querySelectorAll('.bg-white').forEach(el => {
|
341 |
+
el.classList.remove('bg-white');
|
342 |
+
el.classList.add('bg-gray-800');
|
343 |
+
});
|
344 |
+
|
345 |
+
document.querySelectorAll('.bg-gray-50').forEach(el => {
|
346 |
+
el.classList.remove('bg-gray-50');
|
347 |
+
el.classList.add('bg-gray-700');
|
348 |
+
});
|
349 |
+
} else {
|
350 |
+
demoCard.classList.remove('bg-gray-800');
|
351 |
+
demoCard.classList.add('bg-white');
|
352 |
+
|
353 |
+
document.querySelectorAll('.text-white').forEach(el => {
|
354 |
+
if (el.closest('footer') || el.closest('.gradient-bg')) return;
|
355 |
+
el.classList.remove('text-white');
|
356 |
+
el.classList.add('text-gray-800');
|
357 |
+
});
|
358 |
+
|
359 |
+
document.querySelectorAll('.bg-gray-800').forEach(el => {
|
360 |
+
if (el.closest('footer')) return;
|
361 |
+
el.classList.remove('bg-gray-800');
|
362 |
+
el.classList.add('bg-white');
|
363 |
+
});
|
364 |
+
|
365 |
+
document.querySelectorAll('.bg-gray-700').forEach(el => {
|
366 |
+
el.classList.remove('bg-gray-700');
|
367 |
+
el.classList.add('bg-gray-50');
|
368 |
+
});
|
369 |
+
}
|
370 |
+
});
|
371 |
+
|
372 |
+
resetBtn.addEventListener('click', () => {
|
373 |
+
// Reset colors to purple
|
374 |
+
document.querySelectorAll('[class*="bg-"]').forEach(el => {
|
375 |
+
if (el.classList.contains('gradient-bg')) return;
|
376 |
+
if (el.classList.contains('bg-white') || el.classList.contains('bg-gray-50') ||
|
377 |
+
el.classList.contains('bg-gray-800') || el.classList.contains('bg-gray-700') ||
|
378 |
+
el.classList.contains('bg-gray-100') || el.classList.contains('bg-gray-900')) return;
|
379 |
+
|
380 |
+
el.classList.remove(el.classList[1]);
|
381 |
+
el.classList.add('bg-purple-600');
|
382 |
+
});
|
383 |
+
|
384 |
+
document.querySelectorAll('.text-purple-600').forEach(el => {
|
385 |
+
el.classList.remove('text-purple-600');
|
386 |
+
el.classList.add('text-purple-600');
|
387 |
+
});
|
388 |
+
|
389 |
+
document.querySelectorAll('.bg-purple-100').forEach(el => {
|
390 |
+
el.classList.remove('bg-purple-100');
|
391 |
+
el.classList.add('bg-purple-100');
|
392 |
+
});
|
393 |
+
|
394 |
+
document.querySelectorAll('.border-purple-600').forEach(el => {
|
395 |
+
el.classList.remove('border-purple-600');
|
396 |
+
el.classList.add('border-purple-600');
|
397 |
+
});
|
398 |
+
|
399 |
+
document.querySelectorAll('.peer-focus:ring-purple-300').forEach(el => {
|
400 |
+
el.classList.remove('peer-focus:ring-purple-300');
|
401 |
+
el.classList.add('peer-focus:ring-purple-300');
|
402 |
+
});
|
403 |
+
|
404 |
+
document.querySelectorAll('.peer-checked:bg-purple-600').forEach(el => {
|
405 |
+
el.classList.remove('peer-checked:bg-purple-600');
|
406 |
+
el.classList.add('peer-checked:bg-purple-600');
|
407 |
+
});
|
408 |
+
|
409 |
+
// Reset gradient background
|
410 |
+
document.querySelectorAll('.gradient-bg').forEach(el => {
|
411 |
+
el.classList.remove('bg-purple-600');
|
412 |
+
el.classList.add('gradient-bg');
|
413 |
+
});
|
414 |
+
|
415 |
+
// Reset dark mode
|
416 |
+
darkModeToggle.checked = false;
|
417 |
+
document.body.classList.remove('bg-gray-900');
|
418 |
+
document.body.classList.add('bg-gray-50');
|
419 |
+
|
420 |
+
demoCard.classList.remove('bg-gray-800');
|
421 |
+
demoCard.classList.add('bg-white');
|
422 |
+
|
423 |
+
document.querySelectorAll('.text-white').forEach(el => {
|
424 |
+
if (el.closest('footer') || el.closest('.gradient-bg')) return;
|
425 |
+
el.classList.remove('text-white');
|
426 |
+
el.classList.add('text-gray-800');
|
427 |
+
});
|
428 |
+
|
429 |
+
document.querySelectorAll('.bg-gray-800').forEach(el => {
|
430 |
+
if (el.closest('footer')) return;
|
431 |
+
el.classList.remove('bg-gray-800');
|
432 |
+
el.classList.add('bg-white');
|
433 |
+
});
|
434 |
+
|
435 |
+
document.querySelectorAll('.bg-gray-700').forEach(el => {
|
436 |
+
el.classList.remove('bg-gray-700');
|
437 |
+
el.classList.add('bg-gray-50');
|
438 |
+
});
|
439 |
+
});
|
440 |
+
|
441 |
+
// Animate elements when they come into view
|
442 |
+
const observer = new IntersectionObserver((entries) => {
|
443 |
+
entries.forEach(entry => {
|
444 |
+
if (entry.isIntersecting) {
|
445 |
+
entry.target.classList.add('animate-fadeIn');
|
446 |
+
}
|
447 |
+
});
|
448 |
+
}, { threshold: 0.1 });
|
449 |
+
|
450 |
+
document.querySelectorAll('.card-hover').forEach(card => {
|
451 |
+
observer.observe(card);
|
452 |
+
});
|
453 |
+
</script>
|
454 |
+
<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=logicaldata/minepage" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
455 |
+
</html>
|
prompts.txt
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
what code can you use ?
|