-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathtools-and-generator.html
342 lines (314 loc) · 14.7 KB
/
tools-and-generator.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Tools & Generator - TailorWind</title>
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css" rel="stylesheet">
<link rel="stylesheet" href="main.css">
<style>
.list-view>div {
display: flex;
flex-direction: row;
align-items: flex-start;
margin-bottom: 1rem;
border-radius: 0;
box-shadow: none;
}
.list-view img {
width: 10rem;
margin-right: 1rem;
}
.list-view h2,
.list-view p {
margin: 0;
}
</style>
<!-- Add Font Awesome link -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css" rel="stylesheet">
</head>
<body class="bg-gray-50 font-sans">
<!-- Scroll-to-Top Button -->
<button id="scrollButton" title="Go to top">
<i class="fas fa-arrow-up"></i>
</button>
<!-- Navbar -->
<header class="flex items-center justify-between p-4 px-6 bg-white shadow md:px-10">
<div class="flex items-center space-x-2">
<div class="w-10 h-10 rounded">
<img src="/Logo.png" alt="Tailwind Generator Logo" />
</div>
<span class="font-bold text-xl text-gray-800">TailorWind</span>
<!-- Dark Mode Toggle Button -->
<button id="darkModeToggle" class="ml-4 relative w-8 h-8 flex items-center justify-center">
<i class="fas fa-sun text-xl text-[#ffbc00] absolute" id="lightIcon"></i>
<i class="fas fa-moon text-xl text-[#ffbc00] absolute hidden" id="darkIcon"></i>
</button>
</div>
<!-- Hamburger Button -->
<button
id="menu-toggle"
class="block text-gray-800 md:hidden focus:outline-none"
>
<svg
class="w-6 h-6"
xmlns="http://www.w3.org/2000/svg"
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M4 6h16M4 12h16M4 18h16"
/>
</svg>
</button>
<!-- Navigation Menu -->
<nav
id="menu"
class="absolute left-0 flex flex-col hidden w-full space-x-4 space-y-4 bg-white shadow md:flex md:flex-row md:space-y-0 md:static top-16 md:w-auto md:shadow-none md:bg-transparent md:p-0"
>
<!-- Navigation Links with Visible Hover Effects -->
<a
href="/"
class="relative text-black px-6 py-2 font-medium transition-all duration-300 ease-in-out group"
>
<span
class="absolute inset-0 bg-[#049b9f] rounded-full scale-95 opacity-0 group-hover:opacity-100 group-hover:scale-100 transition-all duration-300 ease-in-out"
></span>
<span class="relative z-10 group-hover:text-white transition-colors duration-300">Home</span>
</a>
<a
href="tools-and-generator"
class="relative text-black px-6 py-2 font-medium transition-all duration-300 ease-in-out group"
>
<span
class="absolute inset-0 bg-[#049b9f] rounded-full scale-95 opacity-0 group-hover:opacity-100 group-hover:scale-100 transition-all duration-300 ease-in-out"
></span>
<span class="relative z-10 group-hover:text-white transition-colors duration-300">Tools & Generator</span>
</a>
<a
href="#faq"
class="relative text-black px-6 py-2 font-medium transition-all duration-300 ease-in-out group"
>
<span
class="absolute inset-0 bg-[#049b9f] rounded-full scale-95 opacity-0 group-hover:opacity-100 group-hover:scale-100 transition-all duration-300 ease-in-out"
></span>
<span class="relative z-10 group-hover:text-white transition-colors duration-300">FAQ</span>
</a>
<a
href="#contact"
class="relative text-black px-6 py-2 font-medium transition-all duration-300 ease-in-out group"
>
<span
class="absolute inset-0 bg-[#049b9f] rounded-full scale-95 opacity-0 group-hover:opacity-100 group-hover:scale-100 transition-all duration-300 ease-in-out"
></span>
<span class="relative z-10 group-hover:text-white transition-colors duration-300">Contact</span>
</a>
<button
class="bg-[#049b9f] text-white px-6 py-2 rounded-lg mx-6 md:mx-0 shadow-md transition-all duration-300 ease-in-out hover:bg-[#037f7d] hover:shadow-lg hover:scale-105"
onclick="redirectToPage()"
>
Get started
</button>
</nav>
</header>
<!-- Main Content -->
<main class="container mx-auto px-6 py-10">
<h1 class="text-3xl font-bold text-gray-800 mb-8">Generators</h1>
<p class="text-gray-600 mb-12">
Generate all kind of components and export the source code.
</p>
<!-- Grid View / List View Toggle -->
<div class="flex justify-end items-center mb-6 space-x-4">
<button id="grid-view" class="px-4 py-2 bg-gray-200 rounded hover:bg-gray-300">
Grid View
</button>
<button id="list-view" class="px-4 py-2 bg-gray-200 rounded hover:bg-gray-300">
List View
</button>
</div>
<!-- Generators Cards -->
<div id="card-container" class="grid grid-cols-1 md:grid-cols-3 gap-8">
<!-- Card Generator -->
<div class="bg-white shadow rounded-lg flex flex-col justify-center items-center overflow-hidden">
<div class="card-content p-6 flex flex-col justify-center items-center">
<img src="/Homepage-HeroImage.png" alt="" class="mb-4" />
<div>
<h2 class="text-xl font-bold text-gray-800 mb-2">
Card Generator
</h2>
<p class="text-gray-600">
Cards are a modern way of displaying information on a website.
Create, design and customize beautiful card components.
</p>
</div>
</div>
<button class="card-button bg-gray-100 w-full m-auto mr-8 text-left px-6 h-12 text-blue-600 font-medium"
onclick="window.location.href='/card-generator.html'">
Get started
</button>
</div>
<!-- Grid Layout Generator -->
<div class="bg-white shadow rounded-lg flex flex-col justify-center items-center overflow-hidden">
<div class="card-content p-6 flex flex-col justify-center items-center">
<img src="/grid_layout_gen_image.png" alt="" class="mb-4" />
<div>
<h2 class="text-xl font-bold text-gray-800 mb-2">
Grid Layout Generator
</h2>
<p class="text-gray-600">
Easily create grid layouts using a graphical editor. Customize
columns, rows, etc... or choose from various grid layout
presets.
</p>
</div>
</div>
<button class="card-button bg-gray-100 w-full m-auto mr-8 text-left px-6 h-12 text-blue-600 font-medium"
onclick="window.location.href='/grid-layout-generator.html'">
Get started
</button>
</div>
<!-- Table Generator -->
<div class="bg-white shadow rounded-lg flex flex-col justify-center items-center overflow-hidden">
<div class="card-content p-6 flex flex-col justify-center items-center">
<img src="/table_gen_image.png" alt="" class="mb-4" />
<div>
<h2 class="text-xl font-bold text-gray-800 mb-2">
Table Generator
</h2>
<p class="text-gray-600">
Create and design tables for Tailwind using a graphical editor.
Leverage various export options, e.g. HTML + Tailwind source
code.
</p>
</div>
</div>
<button class="card-button bg-gray-100 w-full m-auto mr-8 text-left px-6 h-12 text-blue-600 font-medium"
onclick="window.location.href='/table-generator.html'">
Get started
</button>
</div>
<!-- Form Generator -->
<div class="bg-white shadow rounded-lg flex flex-col justify-center items-center overflow-hidden">
<div class="card-content p-6 flex flex-col justify-center items-center">
<img src="/form-generator.png" alt="" class="mb-4" />
<div>
<h2 class="text-xl font-bold text-gray-800 mb-2">
Form Generator
</h2>
<p class="text-gray-600">
Create and design dynamic forms using a user-friendly editor.
Customize fields, add buttons, preview live changes, and export
forms with HTML + TailwindCSS code for seamless integration.
</p>
</div>
</div>
<button class="card-button bg-gray-100 w-full m-auto mr-8 text-left px-6 h-12 text-blue-600 font-medium"
onclick="window.location.href='/form-generator.html'">
Get started
</button>
</div>
<!-- Navbar Generator -->
<div class="bg-white shadow rounded-lg flex flex-col justify-center items-center overflow-hidden">
<div class="card-content p-6 flex flex-col justify-center items-center">
<img src="/navbar.png" alt="" class="mb-4" />
<div>
<h2 class="text-xl font-bold text-gray-800 mb-2">
Navbar Generator
</h2>
<p class="text-gray-600">
Create and design responsive navigation bars using a user-friendly editor.
Customize links, add dropdowns, preview live changes, and export
navbars with HTML + TailwindCSS code for seamless integration.
</p>
</div>
</div>
<button class="card-button bg-gray-100 w-full m-auto mr-8 text-left px-6 h-12 text-blue-600 font-medium"
onclick="window.location.href='/navbar.html'">
Get started
</button>
</div>
</div>
</main>
<footer class="bg-gray-800 text-white py-6">
<div class="container mx-auto text-center">
<p class="text-sm mb-4">
© <script>document.write(new Date().getFullYear());</script> TailorWind. All rights reserved.
</p>
<a
href="https://github.com/androidvitb/Tailorwind"
target="_blank"
class="text-[#049b9f] hover:underline"
>
Visit us on GitHub
</a>
</footer>
<script src="scripts/tools-and-generator.js"></script>
<script>
document.addEventListener('DOMContentLoaded', () => {
const darkModeToggle = document.getElementById('darkModeToggle');
const lightIcon = document.getElementById('lightIcon');
const darkIcon = document.getElementById('darkIcon');
// Check for saved dark mode preference without animation
if (localStorage.getItem('darkMode') === 'enabled') {
document.documentElement.classList.add('dark');
lightIcon.classList.add('hidden');
darkIcon.classList.remove('hidden');
// Set initial position without animation
darkIcon.style.transform = 'rotate(0) scale(1)';
lightIcon.style.transform = 'rotate(0) scale(1)';
}
// Add transition classes after initial load
setTimeout(() => {
document.documentElement.classList.add('transition-colors', 'duration-500');
lightIcon.style.transition = 'all 0.3s ease-in-out';
darkIcon.style.transition = 'all 0.3s ease-in-out';
}, 100);
darkModeToggle.addEventListener('click', () => {
// Only animate on click
lightIcon.style.transform = 'rotate(180deg) scale(0.5)';
darkIcon.style.transform = 'rotate(180deg) scale(0.5)';
setTimeout(() => {
document.documentElement.classList.toggle('dark');
lightIcon.classList.toggle('hidden');
darkIcon.classList.toggle('hidden');
lightIcon.style.transform = 'rotate(0) scale(1)';
darkIcon.style.transform = 'rotate(0) scale(1)';
localStorage.setItem('darkMode',
document.documentElement.classList.contains('dark') ? 'enabled' : 'disabled'
);
}, 150);
});
});
// Toggle the menu on mobile
const menuToggle = document.getElementById('menu-toggle');
const menu = document.getElementById('menu');
menuToggle.addEventListener('click', () => {
menu.classList.toggle('hidden');
});
</script>
<script>
document.addEventListener("DOMContentLoaded", () => {
const scrollButton = document.getElementById("scrollButton");
// Show button when scrolled down
window.addEventListener("scroll", () => {
if (window.scrollY > 200) {
scrollButton.style.display = "block"; // Show button
} else {
scrollButton.style.display = "none"; // Hide button
}
});
// Scroll to the top when the button is clicked
scrollButton.addEventListener("click", () => {
window.scrollTo({
top: 0,
behavior: "smooth", // Smooth scroll effect
});
});
});
</script>
</body>
</html>