|
<!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"> |
|
|
|
<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> |
|
|
|
|
|
<div id="app" class="h-screen flex flex-col hidden"> |
|
|
|
<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 id="content" class="flex-1 overflow-y-auto pb-16"> |
|
|
|
<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> |
|
|
|
|
|
<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> |
|
|
|
|
|
<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> |
|
|
|
|
|
<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> |
|
|
|
|
|
<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> |
|
|
|
|
|
<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> |
|
|
|
|
|
<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> |
|
|
|
setTimeout(() => { |
|
document.getElementById('splash').classList.add('hidden'); |
|
document.getElementById('app').classList.remove('hidden'); |
|
document.getElementById('splash-page').classList.remove('hidden'); |
|
}, 2000); |
|
|
|
|
|
const navButtons = document.querySelectorAll('.nav-btn'); |
|
const pages = document.querySelectorAll('[id$="-page"]'); |
|
|
|
navButtons.forEach(button => { |
|
button.addEventListener('click', () => { |
|
const targetPage = button.getAttribute('data-page'); |
|
|
|
|
|
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'); |
|
|
|
|
|
pages.forEach(page => { |
|
page.classList.add('hidden'); |
|
}); |
|
|
|
|
|
document.getElementById(targetPage).classList.remove('hidden'); |
|
}); |
|
}); |
|
|
|
|
|
document.getElementById('start-btn').addEventListener('click', () => { |
|
document.getElementById('splash-page').classList.add('hidden'); |
|
document.getElementById('register-page').classList.remove('hidden'); |
|
}); |
|
|
|
|
|
document.getElementById('complete-register').addEventListener('click', () => { |
|
document.getElementById('register-page').classList.add('hidden'); |
|
document.getElementById('main-page').classList.remove('hidden'); |
|
|
|
|
|
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'); |
|
} |
|
}); |
|
}); |
|
|
|
|
|
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'); |
|
}); |
|
}); |
|
|
|
|
|
const chatInput = document.querySelector('#caretalk-page input'); |
|
const chatContainer = document.getElementById('chat-container'); |
|
|
|
document.querySelector('#caretalk-page button').addEventListener('click', () => { |
|
if(chatInput.value.trim() !== '') { |
|
|
|
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); |
|
|
|
|
|
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); |
|
|
|
|
|
chatContainer.scrollTop = chatContainer.scrollHeight; |
|
}, 1000); |
|
|
|
|
|
chatInput.value = ''; |
|
|
|
|
|
chatContainer.scrollTop = chatContainer.scrollHeight; |
|
} |
|
}); |
|
|
|
|
|
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> |