File size: 33,669 Bytes
5cc0c1d |
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 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 |
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>์ก์ํด๊ทผ</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<script>
tailwind.config = {
theme: {
extend: {
colors: {
primary: '#6BC8F2',
secondary: '#EF93BB',
accent: '#F8B74A',
success: '#4FBAA1',
}
}
}
}
</script>
<style>
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&display=swap');
body {
font-family: 'Noto Sans KR', sans-serif;
max-width: 430px;
margin: 0 auto;
position: relative;
height: 100vh;
background-color: #f8f9fa;
}
.slide-in {
animation: slideIn 0.3s forwards;
}
.slide-out {
animation: slideOut 0.3s forwards;
}
@keyframes slideIn {
from { transform: translateX(100%); }
to { transform: translateX(0); }
}
@keyframes slideOut {
from { transform: translateX(0); }
to { transform: translateX(100%); }
}
.fade-in {
animation: fadeIn 0.5s;
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
.chip-selected {
box-shadow: 0 0 0 2px #6BC8F2;
}
.record-card {
transition: all 0.3s ease;
}
.record-card:hover {
transform: translateY(-2px);
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.chat-bubble {
max-width: 70%;
border-radius: 1rem;
padding: 0.75rem;
margin-bottom: 0.5rem;
}
.user-bubble {
background-color: #6BC8F2;
color: white;
align-self: flex-end;
border-bottom-right-radius: 0.25rem;
}
.ai-bubble {
background-color: #f1f1f1;
color: #333;
align-self: flex-start;
border-bottom-left-radius: 0.25rem;
}
</style>
</head>
<body class="relative overflow-x-hidden">
<!-- Splash Screen -->
<div id="splash" class="absolute inset-0 bg-white flex flex-col items-center justify-center z-50 fade-in">
<div class="w-40 h-40 rounded-full bg-gradient-to-br from-primary to-secondary flex items-center justify-center mb-6">
<i class="fas fa-baby text-white text-6xl"></i>
</div>
<h1 class="text-3xl font-bold text-gray-800 mb-2">์ก์ํด๊ทผ</h1>
<p class="text-gray-500">์์ด ๋๋ด์ ๋ ์ฝ๊ฒ, ๋ ์ฆ๊ฒ๊ฒ</p>
</div>
<!-- Main Container -->
<div id="app" class="h-screen flex flex-col hidden">
<!-- Header -->
<header class="bg-white shadow-sm py-4 px-6 flex items-center justify-between sticky top-0 z-10">
<h1 class="text-xl font-bold text-gray-800">์ก์ํด๊ทผ</h1>
<div class="flex items-center space-x-3">
<button class="text-gray-600">
<i class="fas fa-bell"></i>
</button>
<button class="text-gray-600">
<i class="fas fa-user-circle text-xl"></i>
</button>
</div>
</header>
<!-- Main Content -->
<main id="content" class="flex-1 overflow-y-auto pb-16">
<!-- Splash Page (hidden by default) -->
<div id="splash-page" class="h-full flex flex-col items-center justify-center bg-white">
<div class="w-40 h-40 rounded-full bg-gradient-to-br from-primary to-secondary flex items-center justify-center mb-6">
<i class="fas fa-baby text-white text-6xl"></i>
</div>
<h1 class="text-3xl font-bold text-gray-800 mb-2">์ก์ํด๊ทผ</h1>
<p class="text-gray-500 mb-8">์์ด ๋๋ด์ ๋ ์ฝ๊ฒ, ๋ ์ฆ๊ฒ๊ฒ</p>
<button id="start-btn" class="bg-primary text-white px-8 py-3 rounded-full font-medium hover:bg-blue-400 transition">
์์ํ๊ธฐ
</button>
</div>
<!-- Registration Page -->
<div id="register-page" class="hidden p-6 bg-white">
<h2 class="text-2xl font-bold text-gray-800 mb-6">์์ด ์ ๋ณด ๋ฑ๋ก</h2>
<div class="mb-6">
<label class="block text-gray-700 mb-2">์์ด ์ด๋ฆ</label>
<input type="text" placeholder="์์ด ์ด๋ฆ์ ์
๋ ฅํด์ฃผ์ธ์" class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary">
</div>
<div class="mb-6">
<label class="block text-gray-700 mb-2">์ถ์ฐ ์์ ์ผ ๋๋ ์ถ์์ผ</label>
<input type="date" class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary">
</div>
<div class="mb-8">
<label class="block text-gray-700 mb-2">์ฑ๋ณ</label>
<div class="flex space-x-4">
<button class="flex-1 py-3 border border-gray-300 rounded-lg flex items-center justify-center">
<i class="fas fa-mars text-blue-500 mr-2"></i>
<span>๋จ์</span>
</button>
<button class="flex-1 py-3 border border-gray-300 rounded-lg flex items-center justify-center">
<i class="fas fa-venus text-pink-500 mr-2"></i>
<span>์ฌ์</span>
</button>
</div>
</div>
<button id="complete-register" class="w-full bg-primary text-white py-3 rounded-lg font-medium hover:bg-blue-400 transition">
๋ฑ๋ก ์๋ฃ
</button>
</div>
<!-- Main Page -->
<div id="main-page" class="hidden p-4">
<div class="bg-gradient-to-r from-primary to-secondary p-4 rounded-xl text-white mb-6">
<h2 class="font-bold text-lg mb-1">ํ์ฌ ์ถ์ฒ ์ปจํ
์ธ </h2>
<p class="text-sm opacity-90">5๊ฐ์ ์๊ธฐ์๊ฒ ์ ํฉํ ํ๋์ ์ถ์ฒํด์</p>
</div>
<div class="mb-6">
<h3 class="font-bold text-gray-800 mb-3">๊ฐ์ ์ ์ ํ</h3>
<div class="flex overflow-x-auto pb-2 space-x-2">
<button class="chip px-4 py-2 bg-white border border-gray-200 rounded-full text-sm whitespace-nowrap">์ ์์</button>
<button class="chip px-4 py-2 bg-white border border-gray-200 rounded-full text-sm whitespace-nowrap">1๊ฐ์</button>
<button class="chip px-4 py-2 bg-white border border-gray-200 rounded-full text-sm whitespace-nowrap">2๊ฐ์</button>
<button class="chip px-4 py-2 bg-white border border-gray-200 rounded-full text-sm whitespace-nowrap">3๊ฐ์</button>
<button class="chip px-4 py-2 bg-white border border-gray-200 rounded-full text-sm whitespace-nowrap">4๊ฐ์</button>
<button class="chip px-4 py-2 bg-white border border-gray-200 rounded-full text-sm whitespace-nowrap chip-selected">5๊ฐ์</button>
<button class="chip px-4 py-2 bg-white border border-gray-200 rounded-full text-sm whitespace-nowrap">6๊ฐ์</button>
<button class="chip px-4 py-2 bg-white border border-gray-200 rounded-full text-sm whitespace-nowrap">7๊ฐ์</button>
<button class="chip px-4 py-2 bg-white border border-gray-200 rounded-full text-sm whitespace-nowrap">8๊ฐ์</button>
</div>
</div>
<div class="grid grid-cols-2 gap-3 mb-4">
<div class="bg-white p-3 rounded-xl shadow-sm record-card">
<div class="w-full h-32 bg-primary rounded-lg mb-2 flex items-center justify-center">
<i class="fas fa-music text-white text-3xl"></i>
</div>
<h3 class="font-medium text-sm">๊ฐ๊ฐ ๋ฐ๋ฌ ์์
</h3>
<p class="text-xs text-gray-500">5๊ฐ์ ์๊ธฐ์๊ฒ ์ ํฉ</p>
</div>
<div class="bg-white p-3 rounded-xl shadow-sm record-card">
<div class="w-full h-32 bg-secondary rounded-lg mb-2 flex items-center justify-center">
<i class="fas fa-book text-white text-3xl"></i>
</div>
<h3 class="font-medium text-sm">์ฒซ ๊ทธ๋ฆผ์ฑ
์ถ์ฒ</h3>
<p class="text-xs text-gray-500">5๊ฐ์ ์๊ธฐ์๊ฒ ์ ํฉ</p>
</div>
<div class="bg-white p-3 rounded-xl shadow-sm record-card">
<div class="w-full h-32 bg-accent rounded-lg mb-2 flex items-center justify-center">
<i class="fas fa-utensils text-white text-3xl"></i>
</div>
<h3 class="font-medium text-sm">์ด์ ์ ์์ ๊ฐ์ด๋</h3>
<p class="text-xs text-gray-500">5๊ฐ์ ์๊ธฐ์๊ฒ ์ ํฉ</p>
</div>
<div class="bg-white p-3 rounded-xl shadow-sm record-card">
<div class="w-full h-32 bg-success rounded-lg mb-2 flex items-center justify-center">
<i class="fas fa-baby-carriage text-white text-3xl"></i>
</div>
<h3 class="font-medium text-sm">๊ธฐ์ ๊ท ์ ํ ํ</h3>
<p class="text-xs text-gray-500">5๊ฐ์ ์๊ธฐ์๊ฒ ์ ํฉ</p>
</div>
</div>
<h3 class="font-bold text-gray-800 mb-3 mt-6">5๊ฐ์ ์๊ธฐ ์ฑ์ฅ ๋ฐ๋ฌ</h3>
<div class="bg-white rounded-xl p-4 shadow-sm mb-6">
<div class="flex items-start mb-3">
<div class="bg-primary bg-opacity-10 p-2 rounded-lg mr-3">
<i class="fas fa-ruler text-primary"></i>
</div>
<div>
<h4 class="font-medium text-gray-800">์ ์ฒด ๋ฐ๋ฌ</h4>
<p class="text-sm text-gray-600">๋ค์ง๊ธฐ๋ฅผ ์๋ํ๊ณ , ๋ฌผ๊ฑด์ ์ก์ ์ ์์ด์</p>
</div>
</div>
<div class="flex items-start mb-3">
<div class="bg-secondary bg-opacity-10 p-2 rounded-lg mr-3">
<i class="fas fa-brain text-secondary"></i>
</div>
<div>
<h4 class="font-medium text-gray-800">์ธ์ง ๋ฐ๋ฌ</h4>
<p class="text-sm text-gray-600">๋ฏ์ ์ฌ๋์ ๊ตฌ๋ถํ๊ณ ๋ฐ์์ ๋ณด์ด๊ธฐ ์์ํด์</p>
</div>
</div>
<div class="flex items-start">
<div class="bg-accent bg-opacity-10 p-2 rounded-lg mr-3">
<i class="fas fa-comment-dots text-accent"></i>
</div>
<div>
<h4 class="font-medium text-gray-800">์ธ์ด ๋ฐ๋ฌ</h4>
<p class="text-sm text-gray-600">์น์์ด๊ฐ ๋ค์ํด์ง๊ณ ์๋ฆฌ์ ๋ฐ์ํด์</p>
</div>
</div>
</div>
</div>
<!-- Record Page -->
<div id="record-page" class="hidden p-4">
<h2 class="text-xl font-bold text-gray-800 mb-4">๊ธฐ๋ก</h2>
<div class="bg-white rounded-xl p-4 shadow-sm mb-6">
<div class="flex justify-between items-center mb-3">
<h3 class="font-medium text-gray-800">์ค๋์ ํ๋ ์์ฝ</h3>
<button class="text-primary text-sm font-medium">๋๋ณด๊ธฐ</button>
</div>
<div class="grid grid-cols-3 gap-2 text-center">
<div class="p-2">
<div class="bg-primary bg-opacity-10 w-12 h-12 rounded-full flex items-center justify-center mx-auto mb-1">
<i class="fas fa-bottle-water text-primary"></i>
</div>
<p class="text-xs font-medium">์์ </p>
<p class="text-xs text-gray-500">4ํ</p>
</div>
<div class="p-2">
<div class="bg-secondary bg-opacity-10 w-12 h-12 rounded-full flex items-center justify-center mx-auto mb-1">
<i class="fas fa-baby text-secondary"></i>
</div>
<p class="text-xs font-medium">๊ธฐ์ ๊ท</p>
<p class="text-xs text-gray-500">6ํ</p>
</div>
<div class="p-2">
<div class="bg-accent bg-opacity-10 w-12 h-12 rounded-full flex items-center justify-center mx-auto mb-1">
<i class="fas fa-moon text-accent"></i>
</div>
<p class="text-xs font-medium">์๋ฉด</p>
<p class="text-xs text-gray-500">3์๊ฐ</p>
</div>
</div>
</div>
<div class="flex justify-between items-center mb-4">
<h3 class="font-medium text-gray-800">ํ๋ ๊ธฐ๋ก</h3>
<div class="flex space-x-2">
<button class="px-3 py-1 bg-gray-100 rounded-full text-xs flex items-center">
<i class="fas fa-filter text-gray-500 mr-1"></i>
<span>ํํฐ</span>
</button>
<button class="px-3 py-1 bg-primary text-white rounded-full text-xs">
+ ๊ธฐ๋ก
</button>
</div>
</div>
<div class="space-y-3">
<div class="bg-white rounded-lg p-3 shadow-sm record-card">
<div class="flex items-center">
<div class="bg-primary text-white w-8 h-8 rounded-full flex items-center justify-center mr-3">
<i class="fas fa-bottle-water text-xs"></i>
</div>
<div class="flex-1">
<h4 class="font-medium text-sm">์์ ๊ธฐ๋ก</h4>
<p class="text-xs text-gray-500">์ค์ 10:30 โข ๋ถ์ 120ml</p>
</div>
<button class="text-gray-400">
<i class="fas fa-ellipsis-v"></i>
</button>
</div>
</div>
<div class="bg-white rounded-lg p-3 shadow-sm record-card">
<div class="flex items-center">
<div class="bg-secondary text-white w-8 h-8 rounded-full flex items-center justify-center mr-3">
<i class="fas fa-baby text-xs"></i>
</div>
<div class="flex-1">
<h4 class="font-medium text-sm">๊ธฐ์ ๊ท ๊ต์ฒด</h4>
<p class="text-xs text-gray-500">์ค์ 11:15 โข ๋๋ณ</p>
</div>
<button class="text-gray-400">
<i class="fas fa-ellipsis-v"></i>
</button>
</div>
</div>
<div class="bg-white rounded-lg p-3 shadow-sm record-card">
<div class="flex items-center">
<div class="bg-accent text-white w-8 h-8 rounded-full flex items-center justify-center mr-3">
<i class="fas fa-moon text-xs"></i>
</div>
<div class="flex-1">
<h4 class="font-medium text-sm">๋ฎ์ </h4>
<p class="text-xs text-gray-500">์คํ 1:00 - ์คํ 2:30 (1์๊ฐ 30๋ถ)</p>
</div>
<button class="text-gray-400">
<i class="fas fa-ellipsis-v"></i>
</button>
</div>
</div>
<div class="bg-white rounded-lg p-3 shadow-sm record-card">
<div class="flex items-center">
<div class="bg-success text-white w-8 h-8 rounded-full flex items-center justify-center mr-3">
<i class="fas fa-temperature-high text-xs"></i>
</div>
<div class="flex-1">
<h4 class="font-medium text-sm">์ฒด์จ ์ธก์ </h4>
<p class="text-xs text-gray-500">์คํ 4:20 โข 36.8ยฐC</p>
</div>
<button class="text-gray-400">
<i class="fas fa-ellipsis-v"></i>
</button>
</div>
</div>
</div>
</div>
<!-- CareTalk Page -->
<div id="caretalk-page" class="hidden h-full flex flex-col">
<div class="p-4 bg-white shadow-sm">
<h2 class="text-xl font-bold text-gray-800">์ผ์ดํก</h2>
<p class="text-sm text-gray-500">์ก์ ์ ๋ฌธ AI์ ๋ํํด๋ณด์ธ์</p>
</div>
<div id="chat-container" class="flex-1 p-4 overflow-y-auto space-y-3">
<div class="flex flex-col">
<div class="ai-bubble chat-bubble">
<p>์๋
ํ์ธ์! ์ก์ํด๊ทผ AI ๋์ฐ๋ฏธ์
๋๋ค. ๐<br>์ก์ ๊ด๋ จ ์ด๋ค ๊ณ ๋ฏผ์ด ์์ผ์ ๊ฐ์?</p>
</div>
</div>
<div class="flex flex-col">
<div class="user-bubble chat-bubble">
<p>5๊ฐ์ ์๊ธฐ ์ด์ ์ ์์ํ ๋ ์ฃผ์ํ ์ ์ด ๋ญ์์?</p>
</div>
</div>
<div class="flex flex-col">
<div class="ai-bubble chat-bubble">
<p>5๊ฐ์ ์๊ธฐ ์ด์ ์ ์์ ์ ์ฃผ์ํ ์ ์:<br>
1. ์๋ฏธ์ ๊ฐ์ ์ํ ์์๋ถํฐ ์์<br>
2. ํ๋ฃจ 1ํ, 1-2์คํผ์ผ๋ก ์์<br>
3. ์๋ ๋ฅด๊ธฐ ์ ๋ฐ ์์์ ํผํ๊ธฐ<br>
4. ์๊ธฐ์ ๋ฐ์ ๊ผญ ๊ด์ฐฐํ๊ธฐ<br>
๋ ์์ธํ ์ ๋ณด๋ฅผ ์ํ์๋์?</p>
</div>
</div>
</div>
<div class="p-3 bg-white border-t border-gray-200">
<div class="flex items-center">
<button class="text-gray-500 mx-2">
<i class="fas fa-microphone"></i>
</button>
<input type="text" placeholder="๋ฉ์์ง๋ฅผ ์
๋ ฅํ์ธ์..." class="flex-1 border border-gray-300 rounded-full px-4 py-2 focus:outline-none focus:ring-1 focus:ring-primary">
<button class="bg-primary text-white rounded-full w-8 h-8 flex items-center justify-center ml-2">
<i class="fas fa-paper-plane"></i>
</button>
</div>
</div>
</div>
<!-- CareService Page -->
<div id="careservice-page" class="hidden p-4">
<h2 class="text-xl font-bold text-gray-800 mb-4">์ผ์ด ์๋น์ค</h2>
<div class="bg-gradient-to-r from-primary to-secondary p-4 rounded-xl text-white mb-6">
<h3 class="font-bold text-lg mb-1">์ถ์ฒ ์๋น์ค</h3>
<p class="text-sm opacity-90">5๊ฐ์ ์๊ธฐ์๊ฒ ์ ํฉํ ์๋น์ค</p>
</div>
<div class="space-y-4">
<div class="bg-white rounded-xl p-4 shadow-sm record-card">
<div class="flex items-start">
<div class="w-16 h-16 bg-primary bg-opacity-10 rounded-lg flex items-center justify-center mr-4">
<i class="fas fa-utensils text-primary text-2xl"></i>
</div>
<div class="flex-1">
<h3 class="font-bold text-gray-800 mb-1">์ด์ ์ ์ ๋ฌธ๊ฐ</h3>
<p class="text-sm text-gray-600 mb-2">5๊ฐ์ ์๊ธฐ ๋ง์ถคํ ์ด์ ์ ์กฐ๋ฆฌ ๋ฐ ์์ ์๋ด</p>
<div class="flex flex-wrap gap-1">
<span class="px-2 py-1 bg-primary bg-opacity-10 text-primary text-xs rounded-full">์ด์ ์</span>
<span class="px-2 py-1 bg-primary bg-opacity-10 text-primary text-xs rounded-full">์์</span>
<span class="px-2 py-1 bg-primary bg-opacity-10 text-primary text-xs rounded-full">5๊ฐ์</span>
</div>
</div>
</div>
</div>
<div class="bg-white rounded-xl p-4 shadow-sm record-card">
<div class="flex items-start">
<div class="w-16 h-16 bg-secondary bg-opacity-10 rounded-lg flex items-center justify-center mr-4">
<i class="fas fa-baby text-secondary text-2xl"></i>
</div>
<div class="flex-1">
<h3 class="font-bold text-gray-800 mb-1">์ฐํ๋์ฐ๋ฏธ</h3>
<p class="text-sm text-gray-600 mb-2">๊ฒฝํ ๋ง์ ์ฐํ์กฐ๋ฆฌ์ฌ๊ฐ ๋๋ด ์๋น์ค ์ ๊ณต</p>
<div class="flex flex-wrap gap-1">
<span class="px-2 py-1 bg-secondary bg-opacity-10 text-secondary text-xs rounded-full">์ฐํ์กฐ๋ฆฌ</span>
<span class="px-2 py-1 bg-secondary bg-opacity-10 text-secondary text-xs rounded-full">24์๊ฐ</span>
<span class="px-2 py-1 bg-secondary bg-opacity-10 text-secondary text-xs rounded-full">์ ๋ฌธ๊ฐ</span>
</div>
</div>
</div>
</div>
<div class="bg-white rounded-xl p-4 shadow-sm record-card">
<div class="flex items-start">
<div class="w-16 h-16 bg-accent bg-opacity-10 rounded-lg flex items-center justify-center mr-4">
<i class="fas fa-home text-accent text-2xl"></i>
</div>
<div class="flex-1">
<h3 class="font-bold text-gray-800 mb-1">๊ฐ์ฌ๋์ฐ๋ฏธ</h3>
<p class="text-sm text-gray-600 mb-2">์ก์๋ก ๋ฐ์ ์ผ์ ์ ๊ฐ์ฌ ์ผ์ ๋์๋๋ฆฝ๋๋ค</p>
<div class="flex flex-wrap gap-1">
<span class="px-2 py-1 bg-accent bg-opacity-10 text-accent text-xs rounded-full">์ฒญ์</span>
<span class="px-2 py-1 bg-accent bg-opacity-10 text-accent text-xs rounded-full">์ธํ</span>
<span class="px-2 py-1 bg-accent bg-opacity-10 text-accent text-xs rounded-full">์๋ฆฌ</span>
</div>
</div>
</div>
</div>
<div class="bg-white rounded-xl p-4 shadow-sm record-card">
<div class="flex items-start">
<div class="w-16 h-16 bg-success bg-opacity-10 rounded-lg flex items-center justify-center mr-4">
<i class="fas fa-hand-holding-heart text-success text-2xl"></i>
</div>
<div class="flex-1">
<h3 class="font-bold text-gray-800 mb-1">์์ด๋๋ณด๋ฏธ</h3>
<p class="text-sm text-gray-600 mb-2">์๊ฒฉ์ฆ ์์ง ์ ๋ฌธ ๋๋ณด๋ฏธ๊ฐ ์์ ํ๊ฒ ๋๋ด๋๋ฆฝ๋๋ค</p>
<div class="flex flex-wrap gap-1">
<span class="px-2 py-1 bg-success bg-opacity-10 text-success text-xs rounded-full">์ ๋ฌธ๊ฐ</span>
<span class="px-2 py-1 bg-success bg-opacity-10 text-success text-xs rounded-full">์์ </span>
<span class="px-2 py-1 bg-success bg-opacity-10 text-success text-xs rounded-full">์๊ฐ์ </span>
</div>
</div>
</div>
</div>
</div>
</div>
</main>
<!-- Bottom Navigation -->
<nav class="bg-white border-t border-gray-200 py-2 px-4 flex justify-around items-center fixed bottom-0 w-full max-w-md">
<button class="nav-btn flex flex-col items-center text-primary" data-page="main-page">
<i class="fas fa-home text-lg"></i>
<span class="text-xs mt-1">ํ</span>
</button>
<button class="nav-btn flex flex-col items-center text-gray-500" data-page="record-page">
<i class="fas fa-clipboard-list text-lg"></i>
<span class="text-xs mt-1">๊ธฐ๋ก</span>
</button>
<button class="nav-btn flex flex-col items-center text-gray-500" data-page="caretalk-page">
<i class="fas fa-comment-dots text-lg"></i>
<span class="text-xs mt-1">์ผ์ดํก</span>
</button>
<button class="nav-btn flex flex-col items-center text-gray-500" data-page="careservice-page">
<i class="fas fa-hands-helping text-lg"></i>
<span class="text-xs mt-1">์๋น์ค</span>
</button>
</nav>
</div>
<script>
// Hide splash screen after 2 seconds
setTimeout(() => {
document.getElementById('splash').classList.add('hidden');
document.getElementById('app').classList.remove('hidden');
document.getElementById('splash-page').classList.remove('hidden');
}, 2000);
// Navigation functionality
const navButtons = document.querySelectorAll('.nav-btn');
const pages = document.querySelectorAll('[id$="-page"]');
navButtons.forEach(button => {
button.addEventListener('click', () => {
const targetPage = button.getAttribute('data-page');
// Update active state
navButtons.forEach(btn => {
btn.classList.remove('text-primary');
btn.classList.add('text-gray-500');
});
button.classList.remove('text-gray-500');
button.classList.add('text-primary');
// Hide all pages
pages.forEach(page => {
page.classList.add('hidden');
});
// Show target page
document.getElementById(targetPage).classList.remove('hidden');
});
});
// Start button click handler
document.getElementById('start-btn').addEventListener('click', () => {
document.getElementById('splash-page').classList.add('hidden');
document.getElementById('register-page').classList.remove('hidden');
});
// Complete registration button
document.getElementById('complete-register').addEventListener('click', () => {
document.getElementById('register-page').classList.add('hidden');
document.getElementById('main-page').classList.remove('hidden');
// Set main page as active in nav
navButtons.forEach(btn => {
btn.classList.remove('text-primary');
btn.classList.add('text-gray-500');
if(btn.getAttribute('data-page') === 'main-page') {
btn.classList.remove('text-gray-500');
btn.classList.add('text-primary');
}
});
});
// Chip selection functionality
const chips = document.querySelectorAll('.chip');
chips.forEach(chip => {
chip.addEventListener('click', () => {
chips.forEach(c => c.classList.remove('chip-selected', 'bg-primary', 'text-white'));
chip.classList.add('chip-selected', 'bg-primary', 'text-white');
});
});
// Simulate chat functionality
const chatInput = document.querySelector('#caretalk-page input');
const chatContainer = document.getElementById('chat-container');
document.querySelector('#caretalk-page button').addEventListener('click', () => {
if(chatInput.value.trim() !== '') {
// Add user message
const userMsg = document.createElement('div');
userMsg.className = 'flex flex-col';
userMsg.innerHTML = `
<div class="user-bubble chat-bubble">
<p>${chatInput.value}</p>
</div>
`;
chatContainer.appendChild(userMsg);
// Simulate AI response after a delay
setTimeout(() => {
const aiMsg = document.createElement('div');
aiMsg.className = 'flex flex-col';
aiMsg.innerHTML = `
<div class="ai-bubble chat-bubble">
<p>AI๊ฐ "${chatInput.value}"์ ๋ํ ๋ต๋ณ์ ์ค๋น ์ค์
๋๋ค. ์ค์ ์ฑ์์๋ ์ ๋ฌธ AI๊ฐ ์์ธํ ๋ต๋ณ์ ์ ๊ณตํด ๋๋ฆด ๊ฑฐ์์!</p>
</div>
`;
chatContainer.appendChild(aiMsg);
// Scroll to bottom
chatContainer.scrollTop = chatContainer.scrollHeight;
}, 1000);
// Clear input
chatInput.value = '';
// Scroll to bottom
chatContainer.scrollTop = chatContainer.scrollHeight;
}
});
// Allow pressing Enter to send message
chatInput.addEventListener('keypress', (e) => {
if(e.key === 'Enter') {
document.querySelector('#caretalk-page button').click();
}
});
</script>
<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=Mineru/care" style="color: #fff;text-decoration: underline;" target="_blank" >๐งฌ Remix</a></p></body>
</html> |