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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="pt-BR">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Nossas Memórias</title>
|
| 7 |
+
<link rel="preconnect" href="https://fonts.googleapis.com">
|
| 8 |
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
| 9 |
+
<link href="https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&family=Poppins:wght@300;400;600&display=swap" rel="stylesheet">
|
| 10 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
| 11 |
+
|
| 12 |
+
<style>
|
| 13 |
+
:root {
|
| 14 |
+
--primary-color: #ff6b6b;
|
| 15 |
+
--secondary-color: #ff8e8e;
|
| 16 |
+
--bg-gradient: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
|
| 17 |
+
--deep-gradient: linear-gradient(45deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
|
| 18 |
+
--text-color: #4a4a4a;
|
| 19 |
+
--white: #ffffff;
|
| 20 |
+
--shadow: 0 10px 30px rgba(0,0,0,0.1);
|
| 21 |
+
}
|
| 22 |
+
|
| 23 |
+
* {
|
| 24 |
+
margin: 0;
|
| 25 |
+
padding: 0;
|
| 26 |
+
box-sizing: border-box;
|
| 27 |
+
}
|
| 28 |
+
|
| 29 |
+
body {
|
| 30 |
+
font-family: 'Poppins', sans-serif;
|
| 31 |
+
background: var(--deep-gradient);
|
| 32 |
+
min-height: 100vh;
|
| 33 |
+
color: var(--text-color);
|
| 34 |
+
overflow-x: hidden;
|
| 35 |
+
}
|
| 36 |
+
|
| 37 |
+
/* --- Animação de Fundo (Corações Flutuantes) --- */
|
| 38 |
+
.bg-hearts {
|
| 39 |
+
position: fixed;
|
| 40 |
+
top: 0;
|
| 41 |
+
left: 0;
|
| 42 |
+
width: 100%;
|
| 43 |
+
height: 100%;
|
| 44 |
+
pointer-events: none;
|
| 45 |
+
z-index: 0;
|
| 46 |
+
overflow: hidden;
|
| 47 |
+
}
|
| 48 |
+
|
| 49 |
+
.heart {
|
| 50 |
+
position: absolute;
|
| 51 |
+
bottom: -100px;
|
| 52 |
+
color: rgba(255, 255, 255, 0.4);
|
| 53 |
+
font-size: 2rem;
|
| 54 |
+
animation: floatUp linear infinite;
|
| 55 |
+
}
|
| 56 |
+
|
| 57 |
+
@keyframes floatUp {
|
| 58 |
+
0% { transform: translateY(0) rotate(0deg); opacity: 1; }
|
| 59 |
+
100% { transform: translateY(-120vh) rotate(360deg); opacity: 0; }
|
| 60 |
+
}
|
| 61 |
+
|
| 62 |
+
/* --- Container Principal --- */
|
| 63 |
+
.container {
|
| 64 |
+
max-width: 800px;
|
| 65 |
+
margin: 0 auto;
|
| 66 |
+
padding: 20px;
|
| 67 |
+
position: relative;
|
| 68 |
+
z-index: 1;
|
| 69 |
+
display: flex;
|
| 70 |
+
flex-direction: column;
|
| 71 |
+
align-items: center;
|
| 72 |
+
min-height: 100vh;
|
| 73 |
+
}
|
| 74 |
+
|
| 75 |
+
/* --- Tela Inicial (Splash) --- */
|
| 76 |
+
#home-screen {
|
| 77 |
+
display: flex;
|
| 78 |
+
flex-direction: column;
|
| 79 |
+
align-items: center;
|
| 80 |
+
justify-content: center;
|
| 81 |
+
text-align: center;
|
| 82 |
+
height: 100vh;
|
| 83 |
+
width: 100%;
|
| 84 |
+
animation: fadeIn 1s ease;
|
| 85 |
+
}
|
| 86 |
+
|
| 87 |
+
h1 {
|
| 88 |
+
font-family: 'Dancing Script', cursive;
|
| 89 |
+
font-size: 5rem;
|
| 90 |
+
color: white;
|
| 91 |
+
text-shadow: 2px 2px 10px rgba(0,0,0,0.2);
|
| 92 |
+
margin-bottom: 20px;
|
| 93 |
+
line-height: 1.2;
|
| 94 |
+
}
|
| 95 |
+
|
| 96 |
+
.subtitle {
|
| 97 |
+
color: white;
|
| 98 |
+
font-size: 1.5rem;
|
| 99 |
+
margin-bottom: 40px;
|
| 100 |
+
font-weight: 300;
|
| 101 |
+
}
|
| 102 |
+
|
| 103 |
+
.btn-start {
|
| 104 |
+
padding: 15px 40px;
|
| 105 |
+
font-size: 1.5rem;
|
| 106 |
+
background: white;
|
| 107 |
+
color: var(--primary-color);
|
| 108 |
+
border: none;
|
| 109 |
+
border-radius: 50px;
|
| 110 |
+
cursor: pointer;
|
| 111 |
+
box-shadow: 0 10px 20px rgba(0,0,0,0.2);
|
| 112 |
+
transition: all 0.3s ease;
|
| 113 |
+
font-family: 'Poppins', sans-serif;
|
| 114 |
+
font-weight: 600;
|
| 115 |
+
}
|
| 116 |
+
|
| 117 |
+
.btn-start:hover {
|
| 118 |
+
transform: scale(1.1);
|
| 119 |
+
box-shadow: 0 15px 30px rgba(0,0,0,0.3);
|
| 120 |
+
background: #fff0f0;
|
| 121 |
+
}
|
| 122 |
+
|
| 123 |
+
/* --- Área Principal do App --- */
|
| 124 |
+
#app-content {
|
| 125 |
+
display: none; /* Oculto inicialmente */
|
| 126 |
+
width: 100%;
|
| 127 |
+
flex-direction: column;
|
| 128 |
+
gap: 30px;
|
| 129 |
+
animation: slideUp 0.8s ease;
|
| 130 |
+
}
|
| 131 |
+
|
| 132 |
+
header {
|
| 133 |
+
text-align: center;
|
| 134 |
+
margin-bottom: 20px;
|
| 135 |
+
}
|
| 136 |
+
|
| 137 |
+
.app-title {
|
| 138 |
+
font-family: 'Dancing Script', cursive;
|
| 139 |
+
font-size: 3.5rem;
|
| 140 |
+
color: var(--primary-color);
|
| 141 |
+
}
|
| 142 |
+
|
| 143 |
+
/* --- Cards de Conteúdo --- */
|
| 144 |
+
.card {
|
| 145 |
+
background: rgba(255, 255, 255, 0.95);
|
| 146 |
+
border-radius: 25px;
|
| 147 |
+
padding: 30px;
|
| 148 |
+
box-shadow: var(--shadow);
|
| 149 |
+
transition: transform 0.3s ease;
|
| 150 |
+
}
|
| 151 |
+
|
| 152 |
+
.card:hover {
|
| 153 |
+
transform: translateY(-5px);
|
| 154 |
+
}
|
| 155 |
+
|
| 156 |
+
.card-header {
|
| 157 |
+
display: flex;
|
| 158 |
+
align-items: center;
|
| 159 |
+
gap: 15px;
|
| 160 |
+
margin-bottom: 20px;
|
| 161 |
+
border-bottom: 2px solid #eee;
|
| 162 |
+
padding-bottom: 15px;
|
| 163 |
+
}
|
| 164 |
+
|
| 165 |
+
.card-icon {
|
| 166 |
+
font-size: 2rem;
|
| 167 |
+
color: var(--primary-color);
|
| 168 |
+
}
|
| 169 |
+
|
| 170 |
+
.section-title {
|
| 171 |
+
font-size: 1.8rem;
|
| 172 |
+
font-weight: 600;
|
| 173 |
+
color: var(--text-color);
|
| 174 |
+
}
|
| 175 |
+
|
| 176 |
+
/* --- Lista de Memórias --- */
|
| 177 |
+
.memory-list {
|
| 178 |
+
display: flex;
|
| 179 |
+
flex-direction: column;
|
| 180 |
+
gap: 20px;
|
| 181 |
+
}
|
| 182 |
+
|
| 183 |
+
.memory-item {
|
| 184 |
+
background: white;
|
| 185 |
+
border-radius: 15px;
|
| 186 |
+
padding: 20px;
|
| 187 |
+
display: flex;
|
| 188 |
+
gap: 20px;
|
| 189 |
+
border-left: 5px solid var(--primary-color);
|
| 190 |
+
box-shadow: 0 4px 10px rgba(0,0,0,0.05);
|
| 191 |
+
}
|
| 192 |
+
|
| 193 |
+
.memory-date {
|
| 194 |
+
font-family: 'Dancing Script', cursive;
|
| 195 |
+
font-size: 2rem;
|
| 196 |
+
color: var(--primary-color);
|
| 197 |
+
min-width: 120px;
|
| 198 |
+
}
|
| 199 |
+
|
| 200 |
+
.memory-text {
|
| 201 |
+
font-size: 1.1rem;
|
| 202 |
+
line-height: 1.6;
|
| 203 |
+
}
|
| 204 |
+
|
| 205 |
+
.memory-icon-small {
|
| 206 |
+
font-size: 1.2rem;
|
| 207 |
+
color: #aaa;
|
| 208 |
+
margin-top: 5px;
|
| 209 |
+
}
|
| 210 |
+
|
| 211 |
+
/* --- Botão de Surpresa --- */
|
| 212 |
+
.surprise-box {
|
| 213 |
+
text-align: center;
|
| 214 |
+
background: linear-gradient(to right, #ffecd2 0%, #fcb69f 100%);
|
| 215 |
+
padding: 40px;
|
| 216 |
+
border-radius: 25px;
|
| 217 |
+
position: relative;
|
| 218 |
+
overflow: hidden;
|
| 219 |
+
}
|
| 220 |
+
|
| 221 |
+
.surprise-btn {
|
| 222 |
+
background: white;
|
| 223 |
+
color: #ff6b6b;
|
| 224 |
+
border: 3px solid white;
|
| 225 |
+
padding: 15px 30px;
|
| 226 |
+
border-radius: 50px;
|
| 227 |
+
font-size: 1.5rem;
|
| 228 |
+
cursor: pointer;
|
| 229 |
+
box-shadow: 0 10px 20px rgba(0,0,0,0.2);
|
| 230 |
+
transition: 0.3s;
|
| 231 |
+
margin-top: 20px;
|
| 232 |
+
}
|
| 233 |
+
|
| 234 |
+
.surprise-btn:hover {
|
| 235 |
+
background: #fff0f0;
|
| 236 |
+
transform: scale(1.05);
|
| 237 |
+
}
|
| 238 |
+
|
| 239 |
+
.hidden-message {
|
| 240 |
+
display: none;
|
| 241 |
+
margin-top: 20px;
|
| 242 |
+
font-family: 'Dancing Script', cursive;
|
| 243 |
+
font-size: 3rem;
|
| 244 |
+
color: #d6336c;
|
| 245 |
+
animation: popIn 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
|
| 246 |
+
}
|
| 247 |
+
|
| 248 |
+
/* --- Formulário de Adicionar --- */
|
| 249 |
+
.add-memory-form {
|
| 250 |
+
display: flex;
|
| 251 |
+
flex-direction: column;
|
| 252 |
+
gap: 15px;
|
| 253 |
+
}
|
| 254 |
+
|
| 255 |
+
input, textarea {
|
| 256 |
+
width: 100%;
|
| 257 |
+
padding: 15px;
|
| 258 |
+
border-radius: 10px;
|
| 259 |
+
border: 2px solid #eee;
|
| 260 |
+
font-family: 'Poppins', sans-serif;
|
| 261 |
+
font-size: 1rem;
|
| 262 |
+
transition: 0.3s;
|
| 263 |
+
}
|
| 264 |
+
|
| 265 |
+
input:focus, textarea:focus {
|
| 266 |
+
outline: none;
|
| 267 |
+
border-color: var(--primary-color);
|
| 268 |
+
}
|
| 269 |
+
|
| 270 |
+
.btn-add {
|
| 271 |
+
background: var(--primary-color);
|
| 272 |
+
color: white;
|
| 273 |
+
border: none;
|
| 274 |
+
padding: 15px;
|
| 275 |
+
border-radius: 10px;
|
| 276 |
+
font-size: 1.1rem;
|
| 277 |
+
cursor: pointer;
|
| 278 |
+
transition: 0.3s;
|
| 279 |
+
font-weight: 600;
|
| 280 |
+
}
|
| 281 |
+
|
| 282 |
+
.btn-add:hover {
|
| 283 |
+
background: #ff4757;
|
| 284 |
+
}
|
| 285 |
+
|
| 286 |
+
/* --- Footer --- */
|
| 287 |
+
footer {
|
| 288 |
+
margin-top: 50px;
|
| 289 |
+
text-align: center;
|
| 290 |
+
color: rgba(255,255,255,0.8);
|
| 291 |
+
font-size: 0.9rem;
|
| 292 |
+
}
|
| 293 |
+
|
| 294 |
+
.anycoder-link {
|
| 295 |
+
color: #fff;
|
| 296 |
+
text-decoration: underline;
|
| 297 |
+
font-weight: bold;
|
| 298 |
+
}
|
| 299 |
+
|
| 300 |
+
/* --- Animações --- */
|
| 301 |
+
@keyframes fadeIn {
|
| 302 |
+
from { opacity: 0; }
|
| 303 |
+
to { opacity: 1; }
|
| 304 |
+
}
|
| 305 |
+
|
| 306 |
+
@keyframes slideUp {
|
| 307 |
+
from { opacity: 0; transform: translateY(50px); }
|
| 308 |
+
to { opacity: 1; transform: translateY(0); }
|
| 309 |
+
}
|
| 310 |
+
|
| 311 |
+
@keyframes popIn {
|
| 312 |
+
0% { transform: scale(0); opacity: 0; }
|
| 313 |
+
80% { transform: scale(1.1); opacity: 1; }
|
| 314 |
+
100% { transform: scale(1); }
|
| 315 |
+
}
|
| 316 |
+
|
| 317 |
+
/* Responsividade */
|
| 318 |
+
@media (max-width: 600px) {
|
| 319 |
+
h1 { font-size: 3.5rem; }
|
| 320 |
+
.memory-item { flex-direction: column; }
|
| 321 |
+
.memory-date { text-align: center; width: 100%; margin-bottom: 10px; }
|
| 322 |
+
.card { padding: 20px; }
|
| 323 |
+
}
|
| 324 |
+
</style>
|
| 325 |
+
</head>
|
| 326 |
+
<body>
|
| 327 |
+
|
| 328 |
+
<!-- Fundo Animado -->
|
| 329 |
+
<div class="bg-hearts" id="bg-hearts"></div>
|
| 330 |
+
|
| 331 |
+
<div class="container">
|
| 332 |
+
|
| 333 |
+
<!-- TELA INICIAL -->
|
| 334 |
+
<div id="home-screen">
|
| 335 |
+
<h1>Para o Meu Amor</h1>
|
| 336 |
+
<p class="subtitle">Um lugar para guardar nossos melhores momentos.</p>
|
| 337 |
+
<button class="btn-start" onclick="openApp()">
|
| 338 |
+
<i class="fas fa-heart"></i> Entrar no Nosso Mundo
|
| 339 |
+
</button>
|
| 340 |
+
</div>
|
| 341 |
+
|
| 342 |
+
<!-- CONTEÚDO PRINCIPAL -->
|
| 343 |
+
<div id="app-content">
|
| 344 |
+
<header>
|
| 345 |
+
<h2 class="app-title">Nossas Memórias</h2>
|
| 346 |
+
<p style="color: #777;">Cada momento conta uma história de amor.</p>
|
| 347 |
+
</header>
|
| 348 |
+
|
| 349 |
+
<!-- Seção de Surpresa -->
|
| 350 |
+
<div class="card surprise-box">
|
| 351 |
+
<i class="fas fa-gift fa-3x" style="color: #fff; text-shadow: 2px 2px 5px rgba(0,0,0,0.2);"></i>
|
| 352 |
+
<h3 style="color: white; margin-top: 10px; font-family: 'Dancing Script'; font-size: 2.5rem;">Surpresa Especial</h3>
|
| 353 |
+
<p style="color: #fff; margin-top: 10px;">Clique no botão abaixo se você quiser me dar um presente virtual...</p>
|
| 354 |
+
|
| 355 |
+
<button class="surprise-btn" onclick="showSurprise()">
|
| 356 |
+
<i class="fas fa-star"></i> Abrir Presente
|
| 357 |
+
</button>
|
| 358 |
+
|
| 359 |
+
<div id="surprise-message" class="hidden-message">
|
| 360 |
+
Você é a melhor coisa que me aconteceu. Amo você!
|
| 361 |
+
<i class="fas fa-heart" style="color: #d6336c; font-size: 2rem;"></i>
|
| 362 |
+
</div>
|
| 363 |
+
</div>
|
| 364 |
+
|
| 365 |
+
<!-- Seção de Adicionar Memória -->
|
| 366 |
+
<div class="card">
|
| 367 |
+
<div class="card-header">
|
| 368 |
+
<i class="fas fa-plus-circle card-icon"></i>
|
| 369 |
+
<span class="section-title">Adicionar Novo Momento</span>
|
| 370 |
+
</div>
|
| 371 |
+
<form class="add-memory-form" onsubmit="addMemory(event)">
|
| 372 |
+
<input type="date" id="memDate" required>
|
| 373 |
+
<textarea id="memText" rows="3" placeholder="O que aconteceu? Por que é especial?" required></textarea>
|
| 374 |
+
<button type="submit" class="btn-add"><i class="fas fa-save"></i> Salvar Memória</button>
|
| 375 |
+
</form>
|
| 376 |
+
</div>
|
| 377 |
+
|
| 378 |
+
<!-- Lista de Memórias -->
|
| 379 |
+
<div class="card">
|
| 380 |
+
<div class="card-header">
|
| 381 |
+
<i class="fas fa-book card-icon"></i>
|
| 382 |
+
<span class="section-title">Nossos Diários</span>
|
| 383 |
+
</div>
|
| 384 |
+
<div id="memory-list-container" class="memory-list">
|
| 385 |
+
<!-- Memórias serão inseridas aqui via JS -->
|
| 386 |
+
|
| 387 |
+
<!-- Exemplo de Memória Inicial -->
|
| 388 |
+
<div class="memory-item">
|
| 389 |
+
<div class="memory-date">14/02</div>
|
| 390 |
+
<div class="memory-text">
|
| 391 |
+
<p>Esse foi o nosso primeiro encontro oficial. Eu estava tão nervoso(a), mas quando te vi, tudo ficou perfeito. <i class="fas fa-heart" style="color: #ff6b6b;"></i></p>
|
| 392 |
+
</div>
|
| 393 |
+
</div>
|
| 394 |
+
<div class="memory-item">
|
| 395 |
+
<div class="memory-date">Aniversário</div>
|
| 396 |
+
<div class="memory-text">
|
| 397 |
+
<p>Te ver feliz no seu dia foi o melhor presente. Prometo fazer mais dias assim.</p>
|
| 398 |
+
</div>
|
| 399 |
+
</div>
|
| 400 |
+
|
| 401 |
+
</div>
|
| 402 |
+
</div>
|
| 403 |
+
|
| 404 |
+
<footer>
|
| 405 |
+
Feito com muito ❤️ para você.
|
| 406 |
+
<br><br>
|
| 407 |
+
<a href="https://huggingface.co/spaces/akhaliq/anycoder" target="_blank" class="anycoder-link">Built with anycoder</a>
|
| 408 |
+
</footer>
|
| 409 |
+
</div>
|
| 410 |
+
</div>
|
| 411 |
+
|
| 412 |
+
<script>
|
| 413 |
+
// --- Lógica da Aplicação ---
|
| 414 |
+
|
| 415 |
+
// 1. Animação de Corações no Fundo
|
| 416 |
+
const bgHeartsContainer = document.getElementById('bg-hearts');
|
| 417 |
+
|
| 418 |
+
function createHeart() {
|
| 419 |
+
const heart = document.createElement('div');
|
| 420 |
+
heart.classList.add('heart');
|
| 421 |
+
heart.innerHTML = '<i class="fas fa-heart"></i>';
|
| 422 |
+
|
| 423 |
+
// Posição aleatória
|
| 424 |
+
heart.style.left = Math.random() * 100 + 'vw';
|
| 425 |
+
|
| 426 |
+
// Tamanho aleatório
|
| 427 |
+
heart.style.fontSize = Math.random() * 20 + 20 + 'px';
|
| 428 |
+
|
| 429 |
+
// Duração da animação aleatória
|
| 430 |
+
heart.style.animationDuration = Math.random() * 3 + 5 + 's';
|
| 431 |
+
|
| 432 |
+
// Opacidade aleatória
|
| 433 |
+
heart.style.opacity = Math.random();
|
| 434 |
+
|
| 435 |
+
bgHeartsContainer.appendChild(heart);
|
| 436 |
+
|
| 437 |
+
// Remover o coração do DOM após a animação
|
| 438 |
+
setTimeout(() => {
|
| 439 |
+
heart.remove();
|
| 440 |
+
}, 8000);
|
| 441 |
+
}
|
| 442 |
+
|
| 443 |
+
// Criar corações a cada 300ms
|
| 444 |
+
setInterval(createHeart, 300);
|
| 445 |
+
|
| 446 |
+
|
| 447 |
+
// 2. Navegação (Tela Inicial -> App)
|
| 448 |
+
function openApp() {
|
| 449 |
+
const homeScreen = document.getElementById('home-screen');
|
| 450 |
+
const appContent = document.getElementById('app-content');
|
| 451 |
+
|
| 452 |
+
// Efeito de fade out na tela inicial
|
| 453 |
+
homeScreen.style.opacity = '0';
|
| 454 |
+
homeScreen.style.transition = 'opacity 1s';
|
| 455 |
+
|
| 456 |
+
setTimeout(() => {
|
| 457 |
+
homeScreen.style.display = 'none';
|
| 458 |
+
appContent.style.display = 'flex';
|
| 459 |
+
// Pequeno delay para garantir transição suave
|
| 460 |
+
appContent.style.opacity = '0';
|
| 461 |
+
setTimeout(() => {
|
| 462 |
+
appContent.style.opacity = '1';
|
| 463 |
+
}, 50);
|
| 464 |
+
}, 800);
|
| 465 |
+
}
|
| 466 |
+
|
| 467 |
+
// 3. Lógica da Surpresa
|
| 468 |
+
function showSurprise() {
|
| 469 |
+
const msg = document.getElementById('surprise-message');
|
| 470 |
+
const btn = document.querySelector('.surprise-btn');
|
| 471 |
+
|
| 472 |
+
if (msg.style.display === 'none' || msg.style.display === '') {
|
| 473 |
+
msg.style.display = 'block';
|
| 474 |
+
btn.innerHTML = '<i class="fas fa-check"></i> Mensagem Enviada!';
|
| 475 |
+
btn.disabled = true;
|
| 476 |
+
btn.style.backgroundColor = '#d6336c';
|
| 477 |
+
btn.style.color = 'white';
|
| 478 |
+
|
| 479 |
+
// Efeito de confete simples (mudança de cor do fundo da caixa)
|
| 480 |
+
const box = document.querySelector('.surprise-box');
|
| 481 |
+
box.style.background = 'linear-gradient(to right, #a18cd1 0%, #fbc2eb 100%)';
|
| 482 |
+
}
|
| 483 |
+
}
|
| 484 |
+
|
| 485 |
+
// 4. Adicionar Memórias (Persistência Local)
|
| 486 |
+
function addMemory(event) {
|
| 487 |
+
event.preventDefault();
|
| 488 |
+
|
| 489 |
+
const dateInput = document.getElementById('memDate').value;
|
| 490 |
+
const textInput = document.getElementById('memText').value;
|
| 491 |
+
|
| 492 |
+
if (dateInput && textInput) {
|
| 493 |
+
const listContainer = document.getElementById('memory-list-container');
|
| 494 |
+
|
| 495 |
+
// Formatar data para exibição
|
| 496 |
+
const dateObj = new Date(dateInput);
|
| 497 |
+
const formattedDate = dateObj.toLocaleDateString('pt-BR');
|
| 498 |
+
|
| 499 |
+
// Criar elemento HTML
|
| 500 |
+
const newMemory = document.createElement('div');
|
| 501 |
+
newMemory.className = 'memory-item';
|
| 502 |
+
newMemory.innerHTML = `
|
| 503 |
+
<div class="memory-date">${formattedDate}</div>
|
| 504 |
+
<div class="memory-text">
|
| 505 |
+
<p>${textInput}</p>
|
| 506 |
+
<span class="memory-icon-small"><i class="fas fa-clock"></i> Salvo agora</span>
|
| 507 |
+
</div>
|
| 508 |
+
`;
|
| 509 |
+
|
| 510 |
+
// Adicionar ao topo da lista
|
| 511 |
+
listContainer.prepend(newMemory);
|
| 512 |
+
|
| 513 |
+
// Limpar formulário
|
| 514 |
+
document.getElementById('memText').value = '';
|
| 515 |
+
|
| 516 |
+
// Feedback visual
|
| 517 |
+
alert('Memória guardada no coração do app! ❤️');
|
| 518 |
+
}
|
| 519 |
+
}
|
| 520 |
+
|
| 521 |
+
// Inicializar corações imediatamente
|
| 522 |
+
createHeart();
|
| 523 |
+
</script>
|
| 524 |
+
</body>
|
| 525 |
+
</html>
|