-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathindex.html
More file actions
323 lines (279 loc) · 20.2 KB
/
Copy pathindex.html
File metadata and controls
323 lines (279 loc) · 20.2 KB
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
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Para o amor da minha vida…</title>
<!-- SEO Meta Tags -->
<meta name="description" content="">
<!-- Open Graph / Facebook -->
<meta property="og:title" content="Para o amor da minha vida…">
<meta property="og:description" content="">
<meta property="og:image" content="/assets/img/logo/heart.png">
<meta property="og:url" content="https://codeoflove.netlify.app/">
<meta property="og:type" content="website">
<!-- Twitter Meta Tags -->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="Para o amor da minha vida…">
<meta name="twitter:description" content="">
<meta name="twitter:image" content="/assets/img/logo/heart.png">
<meta name="twitter:url" content="https://codeoflove.netlify.app/">
<script>
document.addEventListener("DOMContentLoaded", () => {
const name = typeof userName !== "undefined" ? userName : "alguém especial";
document.querySelector('meta[name="description"]')?.setAttribute(
"content",
`Uma declaração feita com carinho para ${name}. Leia com o coração, sinta cada palavra e descubra como é lindo amar de verdade.`
);
document.querySelector('meta[property="og:description"]')?.setAttribute(
"content",
`Escrevi isso com o coração para ${name}. Um gesto simples, mas cheio de amor. Leia com carinho — você é a razão de tudo isso existir.`
);
document.querySelector('meta[name="twitter:description"]')?.setAttribute(
"content",
`Uma página escrita com amor, dedicada a ${name}, que mudou minha vida. Um gesto sincero, simples e cheio de sentimento.`
);
});
</script>
<link rel="shortcut icon" href="/assets/img/logo/heart.png" type="image/x-icon">
<link rel="icon" href="/assets/img/logo/heart.png">
<script src="https://shrtlink.com.br/assets/js/comeback.js" defer></script>
<link href="https://cdn.jsdelivr.net/npm/flowbite@3.1.2/dist/flowbite.min.css" rel="stylesheet" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css" integrity="sha512-Evv84Mr4kqVGRNSgIGL/F/aIDqQb7xQ2vcrdIwxfjThSH8CSR7PBEakCr51Ck+w+/U6swU2Im1vVX0SVk9ABhg==" crossorigin="anonymous" referrerpolicy="no-referrer">
<script src="/assets/js/share.js" defer></script>
<script src="/assets/js/printandcopy.js" defer></script>
<script src="/config/names/name.js"></script>
<script src="/config/names/iname.js"></script>
<script src="/config/texts/index.js"></script>
</head>
<body class="min-h-screen flex flex-col w-full items-center justify-center bg-white dark:bg-gray-900">
<div class="container mx-auto grid w-full max-w-screen-xl px-4 pb-4">
<div class="flex flex-col w-full items-start justify-center py-4">
<!-- home -->
<section id="home" class="bg-white dark:bg-gray-900 h-auto md:h-screen lg:h-screen flex items-center justify-center">
<div class="py-8 mx-auto max-w-screen-xl text-center lg:py-8">
<a href="https://github.com/devpit/CodeOfLove" class="inline-flex justify-between items-center py-1 px-1 pr-4 mb-7 text-sm text-gray-700 bg-gray-100 rounded-full dark:bg-gray-800 dark:text-white hover:bg-gray-200 dark:hover:bg-gray-700" role="alert">
<span class="text-sm font-medium px-4 py-1">
<i class="fa-solid fa-link"></i>
Feito com carinho, por @devpit!
</span>
<svg class="ml-2 w-5 h-5" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z" clip-rule="evenodd"></path>
</svg>
</a>
<h1 class="mb-4 text-4xl font-extrabold tracking-tight leading-none text-gray-900 md:text-5xl lg:text-6xl dark:text-white">
${textHome1} <span class="text-red-700 dark:text-red-500">${name}</span>.
</h1>
<p class="mb-8 text-lg font-normal text-gray-500 lg:text-xl sm:px-16 xl:px-48 dark:text-gray-400">
${textHome2}
</p>
<div class="flex flex-col mb-8 lg:mb-16 space-y-4 sm:flex-row sm:justify-center sm:space-y-0 sm:space-x-4">
<a href="/especialmente/para/voce/" class="inline-flex justify-center items-center py-3 px-5 text-base font-medium text-center text-gray-900 rounded-lg hover:bg-gray-100 focus:ring-4 focus:ring-gray-100 dark:text-white bg-red-600 dark:bg-red-500 dark:hover:bg-gray-700 dark:focus:ring-gray-800">
<i class="fa-regular fa-heart mr-2"></i>
${textButton}
</a>
</div>
<div class="px-4 mx-auto text-center md:max-w-screen-md lg:max-w-screen-lg lg:px-12 pt-8">
<div class="flex flex-wrap justify-center items-center text-gray-500 sm:justify-between">
<a href="#" class="text-3xl font-bold mr-5 mb-5 lg:mb-0 hover:text-gray-800 dark:hover:text-gray-400">
<i class="fa-solid fa-person"></i>
#I
</a>
<a href="#" class="text-3xl font-bold mr-5 mb-5 lg:mb-0 hover:text-gray-800 dark:hover:text-gray-400">
<i class="fa-solid fa-heart"></i>
#Love
</a>
<a href="#" class="text-3xl font-bold mr-5 mb-5 lg:mb-0 hover:text-gray-800 dark:hover:text-gray-400">
<i class="fa-solid fa-heart"></i>
#You
</a>
</div>
</div>
</div>
</section>
<!-- carousel -->
<section class="bg-white dark:bg-gray-900" id="carousel">
<div class="gap-8 items-center py-8 mx-auto max-w-screen-xl xl:gap-16 md:grid md:grid-cols-2 sm:py-16 lg:px-6">
<div>
<div id="default-carousel" class="relative w-full" data-carousel="slide">
<!-- Carousel wrapper -->
<div class="relative h-56 overflow-hidden rounded-lg md:h-96">
<!-- Item 1 -->
<div class="hidden duration-700 ease-in-out" data-carousel-item>
<img src="/assets/img/carousel/img-2.png" class="absolute block w-full -translate-x-1/2 -translate-y-1/2 top-1/2 left-1/2" alt="...">
</div>
<!-- Item 2 -->
<div class="hidden duration-700 ease-in-out" data-carousel-item>
<img src="/assets/img/carousel/img-3.png" class="absolute block w-full -translate-x-1/2 -translate-y-1/2 top-1/2 left-1/2" alt="...">
</div>
<!-- Item 3 -->
<div class="hidden duration-700 ease-in-out" data-carousel-item>
<img src="/assets/img/carousel/img-2.png" class="absolute block w-full -translate-x-1/2 -translate-y-1/2 top-1/2 left-1/2" alt="...">
</div>
<!-- Item 4 -->
<div class="hidden duration-700 ease-in-out" data-carousel-item>
<img src="/assets/img/carousel/img-3.png" class="absolute block w-full -translate-x-1/2 -translate-y-1/2 top-1/2 left-1/2" alt="...">
</div>
</div>
<!-- Slider indicators -->
<div class="absolute z-30 flex -translate-x-1/2 bottom-5 left-1/2 space-x-3 rtl:space-x-reverse">
<button type="button" class="w-3 h-3 rounded-full" aria-current="true" aria-label="Slide 1" data-carousel-slide-to="0"></button>
<button type="button" class="w-3 h-3 rounded-full" aria-current="false" aria-label="Slide 2" data-carousel-slide-to="1"></button>
<button type="button" class="w-3 h-3 rounded-full" aria-current="false" aria-label="Slide 3" data-carousel-slide-to="2"></button>
<button type="button" class="w-3 h-3 rounded-full" aria-current="false" aria-label="Slide 4" data-carousel-slide-to="3"></button>
<button type="button" class="w-3 h-3 rounded-full" aria-current="false" aria-label="Slide 5" data-carousel-slide-to="4"></button>
</div>
<!-- Slider controls -->
<button type="button" class="absolute top-0 start-0 z-30 flex items-center justify-center h-full px-4 cursor-pointer group focus:outline-none" data-carousel-prev>
<span class="inline-flex items-center justify-center w-10 h-10 rounded-full bg-white/30 dark:bg-gray-800/30 group-hover:bg-white/50 dark:group-hover:bg-gray-800/60 group-focus:ring-4 group-focus:ring-white dark:group-focus:ring-gray-800/70 group-focus:outline-none">
<svg class="w-4 h-4 text-white dark:text-gray-800 rtl:rotate-180" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 6 10">
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 1 1 5l4 4" />
</svg>
<span class="sr-only">Previous</span>
</span>
</button>
<button type="button" class="absolute top-0 end-0 z-30 flex items-center justify-center h-full px-4 cursor-pointer group focus:outline-none" data-carousel-next>
<span class="inline-flex items-center justify-center w-10 h-10 rounded-full bg-white/30 dark:bg-gray-800/30 group-hover:bg-white/50 dark:group-hover:bg-gray-800/60 group-focus:ring-4 group-focus:ring-white dark:group-focus:ring-gray-800/70 group-focus:outline-none">
<svg class="w-4 h-4 text-white dark:text-gray-800 rtl:rotate-180" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 6 10">
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m1 9 4-4-4-4" />
</svg>
<span class="sr-only">Next</span>
</span>
</button>
</div>
</div>
<div class="mt-4 md:mt-0">
<h2 class="mb-4 text-4xl tracking-tight font-extrabold text-gray-900 dark:text-white">${textCarousel1} <mark class="px-2 text-white bg-red-600 rounded-sm dark:bg-red-500">${name}</mark></h2>
<p class="mb-6 font-light text-gray-500 md:text-lg dark:text-gray-400">${textCarousel2}</p>
<a href="/especialmente/para/voce/nossos/momentos/" class="inline-flex justify-center items-center py-3 px-5 text-base font-medium text-center text-gray-900 rounded-lg border border-gray-300 hover:bg-gray-100 focus:ring-4 focus:ring-gray-100 dark:text-white dark:border-gray-700 dark:hover:bg-gray-700 dark:focus:ring-gray-800">
<i class="fa-regular fa-heart mr-2"></i>
${textCarouselButton}
</a>
</div>
</div>
</section>
<!-- declaração -->
<section class="bg-white dark:bg-gray-900" id="declaration">
<div class="py-8 mx-auto max-w-screen-xl sm:py-8">
<div class="w-full text-center">
<h2 class="mb-4 text-4xl tracking-tight font-extrabold text-gray-900 dark:text-white">${textDeclaration1}</h2>
<p class="text-gray-500 sm:text-xl dark:text-gray-400">${textDeclaration2}</p>
</div>
</div>
</section>
<section class="bg-white dark:bg-gray-900">
<div class=" mx-auto max-w-screen-xl ">
<div class="grid gap-8 lg:grid-cols-1">
<article class="p-6 bg-white rounded-lg border border-gray-200 shadow-md dark:bg-gray-800 dark:border-gray-700">
<div class="flex justify-between items-center mb-5 text-gray-500">
<span class="bg-red-100 text-red-800 text-xs font-medium inline-flex items-center px-2.5 py-0.5 rounded dark:bg-red-200 dark:text-red-800">
<i class="fa-solid fa-pen mr-1 w-3 h-3"></i>
Para você!
</span>
<span class="text-sm">
<span id="data-formatada"></span>
<script>
const data = new Date();
const dia = String(data.getDate()).padStart(2, '0');
const mes = data.toLocaleString('pt-BR', {
month: 'long'
});
const ano = data.getFullYear();
const dataFormatada = `${dia} de ${mes.charAt(0).toUpperCase() + mes.slice(1)} de ${ano}`;
document.getElementById('data-formatada').textContent = dataFormatada;
</script>
</span>
</div>
<h2 class="mb-2 text-2xl font-bold tracking-tight text-gray-900 dark:text-white"><a href="/especialmente/para/voce/">${textDeclaration3}</a></h2>
<p class="mb-5 font-light text-gray-500 dark:text-gray-400">${textDeclaration4}</p>
<div class="flex justify-between items-center">
<div class="flex items-center space-x-4">
<img class="w-7 h-7 rounded-full shadow-xl border border-gray-200 dark:border-gray-700" src="/assets/img/card/logo-card.png" alt="" />
<span class="font-medium dark:text-white">
${iname}
</span>
</div>
<a href="/especialmente/para/voce/" class="inline-flex items-center font-medium text-red-600 dark:text-red-500 hover:underline">
${textDeclarationButton}
<svg class="ml-2 w-4 h-4" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" d="M10.293 3.293a1 1 0 011.414 0l6 6a1 1 0 010 1.414l-6 6a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-4.293-4.293a1 1 0 010-1.414z" clip-rule="evenodd"></path>
</svg>
</a>
</div>
</article>
</div>
</div>
</section>
<!-- tempo-juntos -->
<section class="bg-white dark:bg-gray-900 mx-auto max-w-screen-xl" id="tempo-juntos">
<div class="max-w-screen-xl py-8 mx-auto text-center lg:py-16 ">
<h2 class="text-4xl font-extrabold tracking-tight leading-tight text-gray-900 dark:text-white">
${textTempo1}
</h2>
<p class="mt-4 text-lg font-light text-gray-500 dark:text-gray-400">
${textTempo2}
</p>
<dl class="grid max-w-screen-md gap-8 mx-auto text-gray-900 sm:grid-cols-2 dark:text-white mt-10">
<div class="flex flex-col items-center justify-center">
<dt id="tempo-formatado" class="mb-2 text-3xl md:text-4xl font-extrabold">--</dt>
<dd class="font-light text-gray-500 dark:text-gray-400">⏳ tempo juntos</dd>
</div>
<div class="flex flex-col items-center justify-center">
<dt id="dias" class="mb-2 text-3xl md:text-4xl font-extrabold">--</dt>
<dd class="font-light text-gray-500 dark:text-gray-400">📅 dias de amor</dd>
</div>
<div class="flex flex-col items-center justify-center">
</dl>
</div>
</section>
<!-- Share -->
<div data-dial-init class="fixed end-6 bottom-6 group">
<div id="speed-dial-menu-default" class="flex flex-col items-center hidden mb-4 space-y-2">
<button id="shareButton" type="button" data-tooltip-target="tooltip-share" data-tooltip-placement="left" class="flex justify-center items-center w-[52px] h-[52px] text-gray-500 hover:text-gray-900 bg-white rounded-full border border-gray-200 dark:border-gray-600 shadow-xs dark:hover:text-white dark:text-gray-400 hover:bg-gray-50 dark:bg-gray-700 dark:hover:bg-gray-600 focus:ring-4 focus:ring-gray-300 focus:outline-none dark:focus:ring-gray-400">
<svg class="w-5 h-5" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 18 18">
<path d="M14.419 10.581a3.564 3.564 0 0 0-2.574 1.1l-4.756-2.49a3.54 3.54 0 0 0 .072-.71 3.55 3.55 0 0 0-.043-.428L11.67 6.1a3.56 3.56 0 1 0-.831-2.265c.006.143.02.286.043.428L6.33 6.218a3.573 3.573 0 1 0-.175 4.743l4.756 2.491a3.58 3.58 0 1 0 3.508-2.871Z" />
</svg>
<span class="sr-only">Share</span>
</button>
<div id="tooltip-share" role="tooltip" class="absolute z-10 invisible inline-block w-auto px-3 py-2 text-sm font-medium text-white transition-opacity duration-300 bg-gray-900 rounded-lg shadow-xs opacity-0 tooltip dark:bg-gray-700">
Share
<div class="tooltip-arrow" data-popper-arrow></div>
</div>
<button type="button" id="printButton" data-tooltip-target="tooltip-print" data-tooltip-placement="left" class="flex justify-center items-center w-[52px] h-[52px] text-gray-500 hover:text-gray-900 bg-white rounded-full border border-gray-200 dark:border-gray-600 shadow-xs dark:hover:text-white dark:text-gray-400 hover:bg-gray-50 dark:bg-gray-700 dark:hover:bg-gray-600 focus:ring-4 focus:ring-gray-300 focus:outline-none dark:focus:ring-gray-400">
<svg class="w-5 h-5" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 20 20">
<path d="M5 20h10a1 1 0 0 0 1-1v-5H4v5a1 1 0 0 0 1 1Z" />
<path d="M18 7H2a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2v-3a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v3a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2Zm-1-2V2a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v3h14Z" />
</svg>
<span class="sr-only">Print</span>
</button>
<div id="tooltip-print" role="tooltip" class="absolute z-10 invisible inline-block w-auto px-3 py-2 text-sm font-medium text-white transition-opacity duration-300 bg-gray-900 rounded-lg shadow-xs opacity-0 tooltip dark:bg-gray-700">
Print
<div class="tooltip-arrow" data-popper-arrow></div>
</div>
<button type="button" id="copyUrlButton" data-tooltip-target="tooltip-copy" data-tooltip-placement="left" class="flex justify-center items-center w-[52px] h-[52px] text-gray-500 hover:text-gray-900 bg-white rounded-full border border-gray-200 dark:border-gray-600 dark:hover:text-white shadow-xs dark:text-gray-400 hover:bg-gray-50 dark:bg-gray-700 dark:hover:bg-gray-600 focus:ring-4 focus:ring-gray-300 focus:outline-none dark:focus:ring-gray-400">
<svg class="w-5 h-5" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 18 20">
<path d="M5 9V4.13a2.96 2.96 0 0 0-1.293.749L.879 7.707A2.96 2.96 0 0 0 .13 9H5Zm11.066-9H9.829a2.98 2.98 0 0 0-2.122.879L7 1.584A.987.987 0 0 0 6.766 2h4.3A3.972 3.972 0 0 1 15 6v10h1.066A1.97 1.97 0 0 0 18 14V2a1.97 1.97 0 0 0-1.934-2Z" />
<path d="M11.066 4H7v5a2 2 0 0 1-2 2H0v7a1.969 1.969 0 0 0 1.933 2h9.133A1.97 1.97 0 0 0 13 18V6a1.97 1.97 0 0 0-1.934-2Z" />
</svg>
<span class="sr-only">Copy</span>
</button>
<div id="tooltip-copy" role="tooltip" class="absolute z-10 invisible inline-block w-auto px-3 py-2 text-sm font-medium text-white transition-opacity duration-300 bg-gray-900 rounded-lg shadow-xs opacity-0 tooltip dark:bg-gray-700">
Copy
<div class="tooltip-arrow" data-popper-arrow></div>
</div>
</div>
<button type="button" data-dial-toggle="speed-dial-menu-default" aria-controls="speed-dial-menu-default" aria-expanded="false" class="flex items-center justify-center text-white bg-red-700 rounded-full w-14 h-14 hover:bg-red-800 dark:bg-red-600 dark:hover:bg-red-700 focus:ring-4 focus:ring-red-300 focus:outline-none dark:focus:ring-red-800">
<svg class="w-5 h-5 transition-transform group-hover:rotate-45" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 18 18">
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 1v16M1 9h16" />
</svg>
<span class="sr-only">Open actions menu</span>
</button>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/flowbite@3.1.2/dist/flowbite.min.js"></script>
<script src="/assets/js/dias.js"></script>
<script src="/assets/js/dias-config.js"></script>
</body>
</html>