hlsitech commited on
Commit
1cda717
·
verified ·
1 Parent(s): f73f07c

do not add a section .. just insert all template inside the AI Preview already build .. when we click on Generate .. show the pre build template with the carousell on the AI Preview - Initial Deployment

Browse files
Files changed (2) hide show
  1. README.md +7 -5
  2. index.html +670 -19
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Wedding Invite
3
- emoji: 🐠
4
- colorFrom: pink
5
- colorTo: red
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: wedding-invite
3
+ emoji: 🐳
4
+ colorFrom: green
5
+ colorTo: gray
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,670 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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>Elegant Wedding Invitations | AI-Powered Card Creator</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
+ champagne: '#F7E7CE',
15
+ blush: '#DEB6AB',
16
+ sage: '#C8C6A7',
17
+ mauve: '#A2678A',
18
+ navy: '#4D4C7D',
19
+ },
20
+ fontFamily: {
21
+ 'playfair': ['"Playfair Display"', 'serif'],
22
+ 'montserrat': ['Montserrat', 'sans-serif'],
23
+ }
24
+ }
25
+ }
26
+ }
27
+ </script>
28
+ <style>
29
+ @import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&family=Playfair+Display:wght@400;500;600;700&display=swap');
30
+
31
+ .card-preview {
32
+ background-image: url('https://images.unsplash.com/photo-1515934751635-c81c6bc9a2d8?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80');
33
+ background-size: cover;
34
+ background-position: center;
35
+ box-shadow: 0 10px 30px rgba(0,0,0,0.15);
36
+ }
37
+
38
+ .floating {
39
+ animation: floating 3s ease-in-out infinite;
40
+ }
41
+
42
+ @keyframes floating {
43
+ 0% { transform: translateY(0px); }
44
+ 50% { transform: translateY(-15px); }
45
+ 100% { transform: translateY(0px); }
46
+ }
47
+
48
+ .ai-thinking {
49
+ display: inline-block;
50
+ position: relative;
51
+ width: 80px;
52
+ height: 80px;
53
+ }
54
+ .ai-thinking div {
55
+ position: absolute;
56
+ width: 6px;
57
+ height: 6px;
58
+ background: #A2678A;
59
+ border-radius: 50%;
60
+ animation: ai-thinking 1.2s linear infinite;
61
+ }
62
+ .ai-thinking div:nth-child(1) {
63
+ animation-delay: 0s;
64
+ top: 37px;
65
+ left: 66px;
66
+ }
67
+ .ai-thinking div:nth-child(2) {
68
+ animation-delay: -0.1s;
69
+ top: 22px;
70
+ left: 62px;
71
+ }
72
+ .ai-thinking div:nth-child(3) {
73
+ animation-delay: -0.2s;
74
+ top: 11px;
75
+ left: 52px;
76
+ }
77
+ .ai-thinking div:nth-child(4) {
78
+ animation-delay: -0.3s;
79
+ top: 7px;
80
+ left: 37px;
81
+ }
82
+ .ai-thinking div:nth-child(5) {
83
+ animation-delay: -0.4s;
84
+ top: 11px;
85
+ left: 22px;
86
+ }
87
+ .ai-thinking div:nth-child(6) {
88
+ animation-delay: -0.5s;
89
+ top: 22px;
90
+ left: 11px;
91
+ }
92
+ .ai-thinking div:nth-child(7) {
93
+ animation-delay: -0.6s;
94
+ top: 37px;
95
+ left: 7px;
96
+ }
97
+ .ai-thinking div:nth-child(8) {
98
+ animation-delay: -0.7s;
99
+ top: 52px;
100
+ left: 11px;
101
+ }
102
+ .ai-thinking div:nth-child(9) {
103
+ animation-delay: -0.8s;
104
+ top: 62px;
105
+ left: 22px;
106
+ }
107
+ .ai-thinking div:nth-child(10) {
108
+ animation-delay: -0.9s;
109
+ top: 66px;
110
+ left: 37px;
111
+ }
112
+ .ai-thinking div:nth-child(11) {
113
+ animation-delay: -1s;
114
+ top: 62px;
115
+ left: 52px;
116
+ }
117
+ .ai-thinking div:nth-child(12) {
118
+ animation-delay: -1.1s;
119
+ top: 52px;
120
+ left: 62px;
121
+ }
122
+ @keyframes ai-thinking {
123
+ 0%, 20%, 80%, 100% {
124
+ transform: scale(1);
125
+ }
126
+ 50% {
127
+ transform: scale(1.5);
128
+ }
129
+ }
130
+ </style>
131
+ </head>
132
+ <body class="bg-champagne font-montserrat text-navy">
133
+ <!-- Header -->
134
+ <header class="bg-white shadow-sm">
135
+ <div class="container mx-auto px-4 py-6 flex justify-between items-center">
136
+ <div class="flex items-center">
137
+ <i class="fas fa-ring text-3xl text-mauve mr-2"></i>
138
+ <h1 class="text-2xl font-playfair font-semibold">Elegant Invites</h1>
139
+ </div>
140
+ <nav class="hidden md:block">
141
+ <ul class="flex space-x-8">
142
+ <li><a href="#create" class="hover:text-mauve transition">Create</a></li>
143
+ <li><a href="#gallery" class="hover:text-mauve transition">Gallery</a></li>
144
+ <li><a href="#about" class="hover:text-mauve transition">About</a></li>
145
+ <li><a href="#contact" class="hover:text-mauve transition">Contact</a></li>
146
+ </ul>
147
+ </nav>
148
+ <button class="md:hidden text-2xl">
149
+ <i class="fas fa-bars"></i>
150
+ </button>
151
+ </div>
152
+ </header>
153
+
154
+ <!-- Hero Section -->
155
+ <section class="py-16 md:py-24 bg-gradient-to-b from-white to-champagne">
156
+ <div class="container mx-auto px-4 flex flex-col md:flex-row items-center">
157
+ <div class="md:w-1/2 mb-10 md:mb-0">
158
+ <h2 class="text-4xl md:text-5xl font-playfair font-bold mb-6">Your Perfect Wedding Invitation <span class="text-mauve">Made Easy</span></h2>
159
+ <p class="text-lg mb-8">Our AI designer creates stunning, personalized wedding invitations in minutes. Just fill in your details and watch the magic happen!</p>
160
+ <a href="#create" class="bg-mauve hover:bg-navy text-white px-8 py-3 rounded-full font-medium transition duration-300 inline-block">Create Yours Now</a>
161
+ </div>
162
+ <div class="md:w-1/2 flex justify-center">
163
+ <div class="card-preview w-80 h-96 rounded-lg p-8 flex flex-col justify-center items-center text-center text-white relative overflow-hidden floating">
164
+ <div class="absolute inset-0 bg-black bg-opacity-40"></div>
165
+ <div class="relative z-10">
166
+ <h3 class="font-playfair text-2xl mb-2">Sarah & Michael</h3>
167
+ <p class="text-sm mb-4">Invite you to celebrate their wedding</p>
168
+ <div class="w-16 h-px bg-white mx-auto my-4"></div>
169
+ <p class="text-sm mb-1">Saturday, June 10th, 2023</p>
170
+ <p class="text-sm">The Grand Ballroom, New York</p>
171
+ </div>
172
+ </div>
173
+ </div>
174
+ </div>
175
+ </section>
176
+
177
+ <!-- Create Form Section -->
178
+ <section id="create" class="py-16 bg-white">
179
+ <!-- Hidden Templates Carousel -->
180
+ <div id="templatesCarousel" class="hidden mt-12">
181
+ <div class="container mx-auto px-4">
182
+ <h3 class="text-2xl font-playfair font-bold text-center mb-8">Select Your Favorite Design</h3>
183
+ <div class="relative">
184
+ <div class="carousel-inner flex overflow-x-auto snap-x snap-mandatory scroll-smooth gap-6 pb-8">
185
+ <!-- Template 1 -->
186
+ <div class="carousel-item flex-shrink-0 w-full sm:w-1/2 lg:w-1/3 snap-start">
187
+ <div class="card-preview w-full h-96 rounded-lg p-8 flex flex-col justify-center items-center text-center text-white relative overflow-hidden">
188
+ <div class="absolute inset-0 bg-mauve bg-opacity-70"></div>
189
+ <div class="relative z-10">
190
+ <h3 id="template1Names" class="font-playfair text-2xl mb-2">Sarah & Michael</h3>
191
+ <p class="text-sm mb-4">Invite you to celebrate their wedding</p>
192
+ <div class="w-16 h-px bg-white mx-auto my-4"></div>
193
+ <p id="template1Date" class="text-sm mb-1">Saturday, June 10th, 2023</p>
194
+ <p id="template1Venue" class="text-sm">The Grand Ballroom, New York</p>
195
+ </div>
196
+ </div>
197
+ <button class="w-full mt-4 bg-mauve hover:bg-navy text-white py-2 px-4 rounded-lg font-medium transition duration-300 select-template" data-template="1">Select This Design</button>
198
+ </div>
199
+
200
+ <!-- Template 2 -->
201
+ <div class="carousel-item flex-shrink-0 w-full sm:w-1/2 lg:w-1/3 snap-start">
202
+ <div class="card-preview w-full h-96 rounded-lg p-8 flex flex-col justify-center items-center text-center text-white relative overflow-hidden">
203
+ <div class="absolute inset-0 bg-navy bg-opacity-80"></div>
204
+ <div class="relative z-10">
205
+ <h3 id="template2Names" class="font-playfair text-2xl mb-2">Sarah & Michael</h3>
206
+ <p class="text-sm mb-4">Invite you to celebrate their wedding</p>
207
+ <div class="w-16 h-px bg-white mx-auto my-4"></div>
208
+ <p id="template2Date" class="text-sm mb-1">Saturday, June 10th, 2023</p>
209
+ <p id="template2Venue" class="text-sm">The Grand Ballroom, New York</p>
210
+ </div>
211
+ </div>
212
+ <button class="w-full mt-4 bg-navy hover:bg-mauve text-white py-2 px-4 rounded-lg font-medium transition duration-300 select-template" data-template="2">Select This Design</button>
213
+ </div>
214
+
215
+ <!-- Template 3 -->
216
+ <div class="carousel-item flex-shrink-0 w-full sm:w-1/2 lg:w-1/3 snap-start">
217
+ <div class="card-preview w-full h-96 rounded-lg p-8 flex flex-col justify-center items-center text-center text-white relative overflow-hidden">
218
+ <div class="absolute inset-0 bg-sage bg-opacity-60"></div>
219
+ <div class="relative z-10">
220
+ <h3 id="template3Names" class="font-playfair text-2xl mb-2">Sarah & Michael</h3>
221
+ <p class="text-sm mb-4">Invite you to celebrate their wedding</p>
222
+ <div class="w-16 h-px bg-white mx-auto my-4"></div>
223
+ <p id="template3Date" class="text-sm mb-1">Saturday, June 10th, 2023</p>
224
+ <p id="template3Venue" class="text-sm">The Grand Ballroom, New York</p>
225
+ </div>
226
+ </div>
227
+ <button class="w-full mt-4 bg-sage hover:bg-navy text-white py-2 px-4 rounded-lg font-medium transition duration-300 select-template" data-template="3">Select This Design</button>
228
+ </div>
229
+ </div>
230
+ <button class="carousel-prev absolute left-0 top-1/2 -translate-y-1/2 -ml-4 bg-white rounded-full w-10 h-10 flex items-center justify-center shadow-md hover:bg-gray-100 transition"><i class="fas fa-chevron-left text-mauve"></i></button>
231
+ <button class="carousel-next absolute right-0 top-1/2 -translate-y-1/2 -mr-4 bg-white rounded-full w-10 h-10 flex items-center justify-center shadow-md hover:bg-gray-100 transition"><i class="fas fa-chevron-right text-mauve"></i></button>
232
+ </div>
233
+ </div>
234
+ </div>
235
+ <div class="container mx-auto px-4">
236
+ <h2 class="text-3xl font-playfair font-bold text-center mb-12">Create Your Invitation</h2>
237
+
238
+ <div class="flex flex-col lg:flex-row gap-12">
239
+ <!-- Form -->
240
+ <div class="lg:w-1/2">
241
+ <form id="invitationForm" class="space-y-6">
242
+ <div>
243
+ <label for="coupleNames" class="block text-sm font-medium mb-1">Couple's Names</label>
244
+ <input type="text" id="coupleNames" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-mauve focus:border-mauve" placeholder="Sarah & Michael" required>
245
+ </div>
246
+
247
+ <div>
248
+ <label for="weddingDate" class="block text-sm font-medium mb-1">Wedding Date</label>
249
+ <input type="date" id="weddingDate" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-mauve focus:border-mauve" required>
250
+ </div>
251
+
252
+ <div>
253
+ <label for="venue" class="block text-sm font-medium mb-1">Venue</label>
254
+ <input type="text" id="venue" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-mauve focus:border-mauve" placeholder="The Grand Ballroom, New York" required>
255
+ </div>
256
+
257
+ <div>
258
+ <label for="time" class="block text-sm font-medium mb-1">Time</label>
259
+ <input type="time" id="time" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-mauve focus:border-mauve" required>
260
+ </div>
261
+
262
+ <div>
263
+ <label for="theme" class="block text-sm font-medium mb-1">Design Theme</label>
264
+ <select id="theme" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-mauve focus:border-mauve">
265
+ <option value="classic">Classic Elegance</option>
266
+ <option value="modern">Modern Minimalist</option>
267
+ <option value="rustic">Rustic Charm</option>
268
+ <option value="vintage">Vintage Romance</option>
269
+ <option value="beach">Beachy Bliss</option>
270
+ </select>
271
+ </div>
272
+
273
+ <div>
274
+ <label for="colors" class="block text-sm font-medium mb-1">Color Scheme</label>
275
+ <div class="flex space-x-2">
276
+ <button type="button" data-color="blush" class="w-8 h-8 rounded-full bg-blush border-2 border-white shadow-sm color-btn active"></button>
277
+ <button type="button" data-color="sage" class="w-8 h-8 rounded-full bg-sage border-2 border-white shadow-sm color-btn"></button>
278
+ <button type="button" data-color="mauve" class="w-8 h-8 rounded-full bg-mauve border-2 border-white shadow-sm color-btn"></button>
279
+ <button type="button" data-color="navy" class="w-8 h-8 rounded-full bg-navy border-2 border-white shadow-sm color-btn"></button>
280
+ <button type="button" data-color="champagne" class="w-8 h-8 rounded-full bg-champagne border-2 border-white shadow-sm color-btn"></button>
281
+ </div>
282
+ <input type="hidden" id="colors" value="blush">
283
+ </div>
284
+
285
+ <div>
286
+ <label for="message" class="block text-sm font-medium mb-1">Special Message (Optional)</label>
287
+ <textarea id="message" rows="3" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-mauve focus:border-mauve" placeholder="We can't wait to celebrate with you..."></textarea>
288
+ </div>
289
+
290
+ <button type="submit" class="w-full bg-mauve hover:bg-navy text-white py-3 px-6 rounded-lg font-medium transition duration-300 flex items-center justify-center">
291
+ <span id="submitText">Generate Invitation</span>
292
+ <div id="loadingSpinner" class="ai-thinking ml-2 hidden">
293
+ <div></div><div></div><div></div><div></div><div></div><div></div>
294
+ <div></div><div></div><div></div><div></div><div></div><div></div>
295
+ </div>
296
+ </button>
297
+ </form>
298
+ </div>
299
+
300
+ <!-- Preview -->
301
+ <div class="lg:w-1/2">
302
+ <div class="sticky top-24">
303
+ <h3 class="text-xl font-playfair font-semibold mb-4">AI Preview</h3>
304
+ <div id="cardPreview" class="card-preview w-full h-96 rounded-lg p-8 flex flex-col justify-center items-center text-center text-white relative overflow-hidden">
305
+ <div class="absolute inset-0 bg-blush bg-opacity-70"></div>
306
+ <div class="relative z-10">
307
+ <h3 id="previewNames" class="font-playfair text-2xl mb-2">Sarah & Michael</h3>
308
+ <p id="previewInviteText" class="text-sm mb-4">Invite you to celebrate their wedding</p>
309
+ <div class="w-16 h-px bg-white mx-auto my-4"></div>
310
+ <p id="previewDate" class="text-sm mb-1">Saturday, June 10th, 2023</p>
311
+ <p id="previewVenue" class="text-sm">The Grand Ballroom, New York</p>
312
+ <p id="previewTime" class="text-sm mt-2">4:30 PM</p>
313
+ <p id="previewMessage" class="text-xs mt-4 italic hidden">We can't wait to celebrate with you</p>
314
+ </div>
315
+ </div>
316
+
317
+ <div id="aiAgent" class="mt-6 bg-white p-4 rounded-lg shadow-sm border border-gray-100">
318
+ <div class="flex items-start">
319
+ <div class="flex-shrink-0 bg-mauve text-white rounded-full w-10 h-10 flex items-center justify-center">
320
+ <i class="fas fa-robot"></i>
321
+ </div>
322
+ <div class="ml-3">
323
+ <h4 class="font-medium">AI Design Assistant</h4>
324
+ <p id="aiMessage" class="text-sm text-gray-600 mt-1">Ready to create your perfect invitation! Fill out the form and I'll design it for you.</p>
325
+ </div>
326
+ </div>
327
+ </div>
328
+ </div>
329
+ </div>
330
+ </div>
331
+ </div>
332
+ </section>
333
+
334
+ <!-- Gallery Section -->
335
+ <section id="gallery" class="py-16 bg-champagne">
336
+ <div class="container mx-auto px-4">
337
+ <h2 class="text-3xl font-playfair font-bold text-center mb-12">Design Inspiration</h2>
338
+
339
+ <div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6">
340
+ <!-- Card 1 -->
341
+ <div class="bg-white rounded-lg overflow-hidden shadow-md hover:shadow-lg transition duration-300">
342
+ <div class="h-48 bg-cover bg-center" style="background-image: url('https://images.unsplash.com/photo-1530103862676-de8c9debad1d?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80');"></div>
343
+ <div class="p-4">
344
+ <h3 class="font-playfair font-semibold text-lg mb-2">Classic Elegance</h3>
345
+ <p class="text-sm text-gray-600">Timeless design with delicate details</p>
346
+ </div>
347
+ </div>
348
+
349
+ <!-- Card 2 -->
350
+ <div class="bg-white rounded-lg overflow-hidden shadow-md hover:shadow-lg transition duration-300">
351
+ <div class="h-48 bg-cover bg-center" style="background-image: url('https://images.unsplash.com/photo-1519225421980-715cb0215aed?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80');"></div>
352
+ <div class="p-4">
353
+ <h3 class="font-playfair font-semibold text-lg mb-2">Modern Minimalist</h3>
354
+ <p class="text-sm text-gray-600">Clean lines and contemporary style</p>
355
+ </div>
356
+ </div>
357
+
358
+ <!-- Card 3 -->
359
+ <div class="bg-white rounded-lg overflow-hidden shadow-md hover:shadow-lg transition duration-300">
360
+ <div class="h-48 bg-cover bg-center" style="background-image: url('https://images.unsplash.com/photo-1515934751635-c81c6bc9a2d8?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80');"></div>
361
+ <div class="p-4">
362
+ <h3 class="font-playfair font-semibold text-lg mb-2">Rustic Charm</h3>
363
+ <p class="text-sm text-gray-600">Natural textures and warm tones</p>
364
+ </div>
365
+ </div>
366
+ </div>
367
+ </div>
368
+ </section>
369
+
370
+ <!-- About Section -->
371
+ <section id="about" class="py-16 bg-white">
372
+ <div class="container mx-auto px-4">
373
+ <div class="flex flex-col md:flex-row items-center">
374
+ <div class="md:w-1/2 mb-10 md:mb-0 md:pr-10">
375
+ <h2 class="text-3xl font-playfair font-bold mb-6">About Elegant Invites</h2>
376
+ <p class="mb-4">We believe your wedding invitation should be as unique and special as your love story. That's why we've combined beautiful design with artificial intelligence to create personalized invitations that perfectly capture your style.</p>
377
+ <p>Our AI designer learns your preferences and creates multiple options for you to choose from. No design skills needed - just answer a few simple questions and we'll handle the rest!</p>
378
+ </div>
379
+ <div class="md:w-1/2">
380
+ <div class="bg-blush bg-opacity-20 p-8 rounded-lg">
381
+ <div class="flex items-center mb-4">
382
+ <div class="bg-mauve text-white rounded-full w-12 h-12 flex items-center justify-center mr-4">
383
+ <i class="fas fa-bolt text-xl"></i>
384
+ </div>
385
+ <h3 class="font-playfair font-semibold text-xl">Fast & Easy</h3>
386
+ </div>
387
+ <p class="mb-6">Create your perfect invitation in minutes, not days. Our AI does the heavy lifting so you can focus on your wedding.</p>
388
+
389
+ <div class="flex items-center mb-4">
390
+ <div class="bg-mauve text-white rounded-full w-12 h-12 flex items-center justify-center mr-4">
391
+ <i class="fas fa-palette text-xl"></i>
392
+ </div>
393
+ <h3 class="font-playfair font-semibold text-xl">Endless Options</h3>
394
+ </div>
395
+ <p class="mb-6">With thousands of possible combinations, you're guaranteed to find a design that feels uniquely yours.</p>
396
+
397
+ <div class="flex items-center">
398
+ <div class="bg-mauve text-white rounded-full w-12 h-12 flex items-center justify-center mr-4">
399
+ <i class="fas fa-print text-xl"></i>
400
+ </div>
401
+ <h3 class="font-playfair font-semibold text-xl">Premium Quality</h3>
402
+ </div>
403
+ <p>We use only the finest materials and printing techniques to ensure your invitations look as beautiful in person as they do on screen.</p>
404
+ </div>
405
+ </div>
406
+ </div>
407
+ </div>
408
+ </section>
409
+
410
+ <!-- Contact Section -->
411
+ <section id="contact" class="py-16 bg-navy text-white">
412
+ <div class="container mx-auto px-4">
413
+ <h2 class="text-3xl font-playfair font-bold text-center mb-12">Have Questions?</h2>
414
+
415
+ <div class="max-w-2xl mx-auto">
416
+ <form class="space-y-6">
417
+ <div>
418
+ <label for="name" class="block text-sm font-medium mb-1">Name</label>
419
+ <input type="text" id="name" class="w-full px-4 py-2 rounded-lg bg-navy border border-white border-opacity-30 focus:border-opacity-100 focus:ring-0 text-white placeholder-white placeholder-opacity-50">
420
+ </div>
421
+
422
+ <div>
423
+ <label for="email" class="block text-sm font-medium mb-1">Email</label>
424
+ <input type="email" id="email" class="w-full px-4 py-2 rounded-lg bg-navy border border-white border-opacity-30 focus:border-opacity-100 focus:ring-0 text-white placeholder-white placeholder-opacity-50">
425
+ </div>
426
+
427
+ <div>
428
+ <label for="message" class="block text-sm font-medium mb-1">Message</label>
429
+ <textarea id="message" rows="4" class="w-full px-4 py-2 rounded-lg bg-navy border border-white border-opacity-30 focus:border-opacity-100 focus:ring-0 text-white placeholder-white placeholder-opacity-50"></textarea>
430
+ </div>
431
+
432
+ <button type="submit" class="w-full bg-mauve hover:bg-blush text-white py-3 px-6 rounded-lg font-medium transition duration-300">Send Message</button>
433
+ </form>
434
+
435
+ <div class="mt-12 text-center">
436
+ <p class="mb-4">Or reach us directly:</p>
437
+ <div class="flex justify-center space-x-6">
438
+ <a href="#" class="hover:text-mauve transition"><i class="fab fa-instagram text-2xl"></i></a>
439
+ <a href="#" class="hover:text-mauve transition"><i class="fab fa-pinterest text-2xl"></i></a>
440
+ <a href="#" class="hover:text-mauve transition"><i class="fas fa-envelope text-2xl"></i></a>
441
+ <a href="#" class="hover:text-mauve transition"><i class="fas fa-phone text-2xl"></i></a>
442
+ </div>
443
+ </div>
444
+ </div>
445
+ </div>
446
+ </section>
447
+
448
+ <!-- Footer -->
449
+ <footer class="bg-white py-8 border-t border-gray-100">
450
+ <div class="container mx-auto px-4">
451
+ <div class="flex flex-col md:flex-row justify-between items-center">
452
+ <div class="flex items-center mb-4 md:mb-0">
453
+ <i class="fas fa-ring text-2xl text-mauve mr-2"></i>
454
+ <h2 class="text-xl font-playfair font-semibold">Elegant Invites</h2>
455
+ </div>
456
+
457
+ <div class="text-sm text-gray-600 mb-4 md:mb-0">
458
+ © 2023 Elegant Invites. All rights reserved.
459
+ </div>
460
+
461
+ <div class="flex space-x-4">
462
+ <a href="#" class="text-gray-600 hover:text-mauve transition">Privacy Policy</a>
463
+ <a href="#" class="text-gray-600 hover:text-mauve transition">Terms of Service</a>
464
+ </div>
465
+ </div>
466
+ </div>
467
+ </footer>
468
+
469
+ <script>
470
+ document.addEventListener('DOMContentLoaded', function() {
471
+ // Color selection
472
+ const colorButtons = document.querySelectorAll('.color-btn');
473
+ const colorInput = document.getElementById('colors');
474
+ const cardPreview = document.getElementById('cardPreview');
475
+
476
+ colorButtons.forEach(button => {
477
+ button.addEventListener('click', function() {
478
+ // Remove active class from all buttons
479
+ colorButtons.forEach(btn => btn.classList.remove('active'));
480
+
481
+ // Add active class to clicked button
482
+ this.classList.add('active');
483
+
484
+ // Update hidden input value
485
+ const color = this.getAttribute('data-color');
486
+ colorInput.value = color;
487
+
488
+ // Update preview background
489
+ const bgColorClass = `bg-${color}`;
490
+ const bgElements = cardPreview.querySelectorAll('div:first-child');
491
+ bgElements.forEach(el => {
492
+ // Remove all possible color classes
493
+ el.classList.remove('bg-blush', 'bg-sage', 'bg-mauve', 'bg-navy', 'bg-champagne');
494
+ // Add the selected color class
495
+ el.classList.add(bgColorClass);
496
+ });
497
+ });
498
+ });
499
+
500
+ // Form submission and AI simulation
501
+ const form = document.getElementById('invitationForm');
502
+ const submitText = document.getElementById('submitText');
503
+ const loadingSpinner = document.getElementById('loadingSpinner');
504
+ const aiMessage = document.getElementById('aiMessage');
505
+
506
+ form.addEventListener('submit', function(e) {
507
+ e.preventDefault();
508
+
509
+ // Show loading state
510
+ submitText.textContent = 'Designing your invitation...';
511
+ loadingSpinner.classList.remove('hidden');
512
+
513
+ // Update preview with form data
514
+ updatePreview();
515
+
516
+ // Simulate AI working
517
+ setTimeout(() => {
518
+ aiMessage.textContent = "I've created 3 beautiful designs for you based on your preferences. Which one do you like best?";
519
+
520
+ // Show success state
521
+ submitText.textContent = 'View Designs';
522
+ loadingSpinner.classList.add('hidden');
523
+
524
+ // Show templates carousel
525
+ document.getElementById('templatesCarousel').classList.remove('hidden');
526
+
527
+ // Update template previews with form data
528
+ updateTemplatePreviews();
529
+ }, 3000);
530
+ });
531
+
532
+ // Update preview as user types
533
+ const formInputs = form.querySelectorAll('input, textarea, select');
534
+ formInputs.forEach(input => {
535
+ input.addEventListener('input', updatePreview);
536
+ });
537
+
538
+ function updatePreview() {
539
+ // Get form values
540
+ const names = document.getElementById('coupleNames').value || 'Sarah & Michael';
541
+ const dateInput = document.getElementById('weddingDate').value;
542
+ const venue = document.getElementById('venue').value || 'The Grand Ballroom, New York';
543
+ const time = document.getElementById('time').value || '16:30';
544
+ const message = document.getElementById('message').value;
545
+
546
+ // Format date
547
+ let formattedDate = 'Saturday, June 10th, 2023';
548
+ if (dateInput) {
549
+ const date = new Date(dateInput);
550
+ const options = { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' };
551
+ formattedDate = date.toLocaleDateString('en-US', options);
552
+ }
553
+
554
+ // Format time
555
+ let formattedTime = '4:30 PM';
556
+ if (time) {
557
+ const [hours, minutes] = time.split(':');
558
+ const hourNum = parseInt(hours);
559
+ const ampm = hourNum >= 12 ? 'PM' : 'AM';
560
+ const displayHour = hourNum % 12 || 12;
561
+ formattedTime = `${displayHour}:${minutes} ${ampm}`;
562
+ }
563
+
564
+ // Update preview elements
565
+ document.getElementById('previewNames').textContent = names;
566
+ document.getElementById('previewDate').textContent = formattedDate;
567
+ document.getElementById('previewVenue').textContent = venue;
568
+ document.getElementById('previewTime').textContent = formattedTime;
569
+
570
+ // Update optional message
571
+ const previewMessage = document.getElementById('previewMessage');
572
+ if (message) {
573
+ previewMessage.textContent = message;
574
+ previewMessage.classList.remove('hidden');
575
+ } else {
576
+ previewMessage.classList.add('hidden');
577
+ }
578
+
579
+ // Update theme (simplified for demo)
580
+ const theme = document.getElementById('theme').value;
581
+ const previewDiv = cardPreview.querySelector('div:first-child');
582
+
583
+ // Reset all theme classes
584
+ previewDiv.classList.remove(
585
+ 'bg-opacity-70', 'bg-opacity-80', 'bg-opacity-60', 'bg-opacity-50', 'bg-opacity-90'
586
+ );
587
+
588
+ // Apply theme-specific styles
589
+ switch(theme) {
590
+ case 'classic':
591
+ previewDiv.classList.add('bg-opacity-70');
592
+ break;
593
+ case 'modern':
594
+ previewDiv.classList.add('bg-opacity-80');
595
+ break;
596
+ case 'rustic':
597
+ previewDiv.classList.add('bg-opacity-60');
598
+ break;
599
+ case 'vintage':
600
+ previewDiv.classList.add('bg-opacity-50');
601
+ break;
602
+ case 'beach':
603
+ previewDiv.classList.add('bg-opacity-90');
604
+ break;
605
+ }
606
+ }
607
+
608
+ // Smooth scrolling for navigation
609
+ document.querySelectorAll('a[href^="#"]').forEach(anchor => {
610
+ anchor.addEventListener('click', function (e) {
611
+ e.preventDefault();
612
+
613
+ const targetId = this.getAttribute('href');
614
+ if (targetId === '#') return;
615
+
616
+ const targetElement = document.querySelector(targetId);
617
+ if (targetElement) {
618
+ targetElement.scrollIntoView({
619
+ behavior: 'smooth'
620
+ });
621
+ }
622
+ });
623
+ });
624
+
625
+ // Initialize with default values
626
+ updatePreview();
627
+
628
+ // Carousel navigation
629
+ document.querySelector('.carousel-prev').addEventListener('click', () => {
630
+ document.querySelector('.carousel-inner').scrollBy({ left: -300, behavior: 'smooth' });
631
+ });
632
+
633
+ document.querySelector('.carousel-next').addEventListener('click', () => {
634
+ document.querySelector('.carousel-inner').scrollBy({ left: 300, behavior: 'smooth' });
635
+ });
636
+
637
+ // Template selection
638
+ document.querySelectorAll('.select-template').forEach(button => {
639
+ button.addEventListener('click', function() {
640
+ const templateNum = this.getAttribute('data-template');
641
+ // In a real app, you would apply the selected template
642
+ alert(`Template ${templateNum} selected! This would apply the design to your invitation.`);
643
+ });
644
+ });
645
+
646
+ function updateTemplatePreviews() {
647
+ // Get form values
648
+ const names = document.getElementById('coupleNames').value || 'Sarah & Michael';
649
+ const dateInput = document.getElementById('weddingDate').value;
650
+ const venue = document.getElementById('venue').value || 'The Grand Ballroom, New York';
651
+
652
+ // Format date
653
+ let formattedDate = 'Saturday, June 10th, 2023';
654
+ if (dateInput) {
655
+ const date = new Date(dateInput);
656
+ const options = { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' };
657
+ formattedDate = date.toLocaleDateString('en-US', options);
658
+ }
659
+
660
+ // Update all template previews
661
+ for (let i = 1; i <= 3; i++) {
662
+ document.getElementById(`template${i}Names`).textContent = names;
663
+ document.getElementById(`template${i}Date`).textContent = formattedDate;
664
+ document.getElementById(`template${i}Venue`).textContent = venue;
665
+ }
666
+ }
667
+ });
668
+ </script>
669
+ <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=hlsitech/wedding-invite" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
670
+ </html>