-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsable-nest.html
More file actions
192 lines (182 loc) · 11.4 KB
/
Copy pathsable-nest.html
File metadata and controls
192 lines (182 loc) · 11.4 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/png" href="assets/images/logo.png">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Sable’s Nest – VentPals</title>
<script src="https://cdn.tailwindcss.com"></script>
<style>
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
body { font-family:'Inter',sans-serif; background:linear-gradient(to bottom right,#fafaf9,#fffbeb); }
.float { animation:float 4s ease-in-out infinite; }
@keyframes float { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-10px);} }
#changeBirdModal { display:none; position:fixed; inset:0; background:rgba(0,0,0,0.4); z-index:50; align-items:center; justify-content:center; }
#changeBirdModal.open { display:flex; }
</style>
</head>
<body class="text-gray-800">
<script>if(localStorage.getItem('ventpals_logged_in')!=='true'){window.location.replace('login.html');}</script>
<script src="assets/js/session.js"></script>
<nav class="bg-white/70 backdrop-blur-md shadow-sm sticky top-0 z-40">
<div class="max-w-6xl mx-auto px-4 py-3 flex items-center justify-between">
<a href="dashboard.html" class="flex items-center gap-2">
<img src="assets/images/logo.png" class="h-8" alt="VentPals Logo">
<span class="font-bold text-lg text-purple-700">VentPals</span>
</a>
<button class="sm:hidden text-purple-700 text-2xl" id="menuToggle">☰</button>
<ul id="mobileMenu" class="hidden sm:flex flex-col sm:flex-row gap-4 text-sm font-semibold text-purple-700 sm:static absolute right-4 top-14 bg-white/90 sm:bg-transparent p-4 sm:p-0 rounded-xl shadow sm:shadow-none">
<li><a href="profile.html" class="hover:text-purple-900">Profile</a></li>
<li><a href="settings.html" class="hover:text-purple-900">Settings</a></li>
</ul>
</div>
</nav>
<script>document.getElementById('menuToggle').onclick=()=>document.getElementById('mobileMenu').classList.toggle('hidden');</script>
<section class="text-center py-10 px-4">
<div class="relative overflow-visible h-28">
<div class="absolute inset-0 flex items-center justify-center">
<img src="assets/images/sable-percher.png" class="h-24 float" alt="Sable" onerror="this.style.display='none';this.nextElementSibling.style.display='block'">
<div class="text-7xl float hidden">⭐</div>
</div>
</div>
<h1 class="text-3xl font-bold text-purple-700 mb-1 mt-4">Sable’s Nest</h1>
<p class="text-purple-500 font-semibold text-sm mb-2">Resilience & Strength</p>
<p class="text-gray-600 max-w-md mx-auto text-sm">Sable is the bird of resilience. Sable has been through storms and come out the other side. Sable knows that you are stronger than you think.</p>
</section>
<section class="max-w-2xl mx-auto px-4 pb-20 space-y-8">
<div id="myBirdBanner" class="hidden bg-purple-100 border border-purple-300 rounded-2xl p-4 text-center">
<p class="text-purple-700 font-bold text-sm">⭐ Sable is your VentPal! This is your personal Nest.</p>
</div>
<div class="bg-white rounded-3xl shadow p-6">
<h2 class="text-xl font-semibold text-purple-700 mb-4">Your Bird’s Growth</h2>
<div class="grid grid-cols-4 gap-3" id="stagesGrid"></div>
</div>
<div class="bg-white rounded-3xl shadow p-6 space-y-6">
<h2 class="text-xl font-semibold text-purple-700 mb-2">What Sable Teaches</h2>
<div class="flex gap-4">
<div class="text-3xl flex-shrink-0">⭐</div>
<div>
<h3 class="font-bold text-purple-700 mb-1">You Have Survived 100% of Your Hard Days</h3>
<p class="text-gray-600 text-sm">Every difficult moment you have lived through proves something: you are resilient. Sable asks you to remember the hard things you’ve already overcome.</p>
</div>
</div>
<div class="flex gap-4">
<div class="text-3xl flex-shrink-0">🌧️</div>
<div>
<h3 class="font-bold text-purple-700 mb-1">Pain Is Not Permanent</h3>
<p class="text-gray-600 text-sm">It feels permanent in the moment. It isn’t. Sable has lived through many storms and always found morning. So will you.</p>
</div>
</div>
<div class="flex gap-4">
<div class="text-3xl flex-shrink-0">🦾</div>
<div>
<h3 class="font-bold text-purple-700 mb-1">Strength Comes From Inside</h3>
<p class="text-gray-600 text-sm">No one can give you resilience — but you can grow it by choosing to try again, one more time, after each fall. Sable celebrates every “one more time.”</p>
</div>
</div>
</div>
<div class="bg-white rounded-3xl shadow p-6">
<h2 class="text-xl font-semibold text-purple-700 mb-3">Reflect with Sable</h2>
<p class="text-gray-500 text-sm mb-3 italic">“What is one hard thing you got through that you are quietly proud of?”</p>
<textarea id="nestReflection" placeholder="Write something here…"
class="w-full border-stone-200 border rounded-xl px-4 py-3 text-sm focus:outline-none focus:ring-2 focus:ring-stone-400 mb-4" rows="4"></textarea>
<button onclick="saveReflection()" class="w-full bg-stone-600 hover:bg-stone-700 text-white font-bold py-3 rounded-full">
Save to My Nest
</button>
<p id="saveMsg" class="text-center text-sm text-green-600 mt-2 hidden">Saved! ✓</p>
</div>
<div class="bg-white rounded-3xl shadow p-6">
<h2 class="text-xl font-semibold text-purple-700 mb-2">Change My Bird</h2>
<p class="text-gray-600 text-sm mb-4">People grow and change — and so do your feelings. You can switch your personal bird any time and your growth stage stays with you.</p>
<button onclick="document.getElementById('changeBirdModal').classList.add('open')"
class="w-full bg-gray-100 hover:bg-gray-200 text-gray-700 font-bold py-3 rounded-full text-sm">
Choose a New Bird
</button>
</div>
<div class="text-center flex flex-col sm:flex-row gap-3 justify-center">
<a href="circles-dashboard.html" class="text-purple-600 hover:text-purple-800 font-semibold text-sm">← Back to Nests</a>
<span class="hidden sm:inline text-gray-300">|</span>
<a href="dashboard.html" class="text-purple-600 hover:text-purple-800 font-semibold text-sm">Back to Dashboard</a>
</div>
</section>
<div id="changeBirdModal">
<div class="bg-white rounded-3xl shadow-2xl p-6 max-w-lg w-full mx-4 max-h-[85vh] overflow-y-auto">
<div class="flex justify-between items-center mb-4">
<h2 class="text-xl font-bold text-purple-700">Choose Your VentPal</h2>
<button onclick="document.getElementById('changeBirdModal').classList.remove('open')" class="text-gray-400 hover:text-gray-600 text-2xl leading-none">×</button>
</div>
<p class="text-gray-600 text-sm mb-4">Your growth stage stays the same — only your bird companion changes.</p>
<div class="grid grid-cols-2 gap-3" id="birdPickerGrid"></div>
<p id="changeBirdMsg" class="text-center text-sm text-green-600 mt-4 hidden">✓ Your VentPal has been updated!</p>
</div>
</div>
<footer class="py-6 text-center text-gray-500 text-xs">VentPals • The Journey of Growing Up.</footer>
<script>
const BIRDS_ALL = [
{ id:'aura', name:'Aura', emoji:'🕊️', trait:'Calm & Gentle' },
{ id:'breezy', name:'Breezy', emoji:'🍃', trait:'Thoughtful & Quiet' },
{ id:'clover', name:'Clover', emoji:'🍀', trait:'Safe & Grounded' },
{ id:'cove', name:'Cove', emoji:'🌊', trait:'Shelter & Comfort' },
{ id:'drift', name:'Drift', emoji:'🌙', trait:'Reflective' },
{ id:'echo', name:'Echo', emoji:'🔔', trait:'Validation' },
{ id:'flamez', name:'Flamez', emoji:'🔥', trait:'Bold & Expressive' },
{ id:'flare', name:'Flare', emoji:'⚡', trait:'Motivated & Brave' },
{ id:'flicker', name:'Flicker', emoji:'💫', trait:'Hopeful & Curious' },
{ id:'guardian', name:'Guardian', emoji:'🛡️', trait:'Protective' },
{ id:'lumen', name:'Lumen', emoji:'💡', trait:'Insight & Clarity' },
{ id:'nova', name:'Nova', emoji:'🌟', trait:'Perspective & Growth' },
{ id:'pebble', name:'Pebble', emoji:'🪨', trait:'Gentle Guidance' },
{ id:'sable', name:'Sable', emoji:'⭐', trait:'Resilience & Strength' },
{ id:'solace', name:'Solace', emoji:'🌿', trait:'Comfort & Soothing' },
{ id:'twig', name:'Twig', emoji:'🌱', trait:'Early Growth' },
];
const STAGE_LABELS=['baby','nestling','feathered','percher'];
const STAGE_NAMES=['Baby','Nestling','Feathered','Percher'];
let user={};
try{user=JSON.parse(localStorage.getItem('ventpals_user')||'{}');}catch(e){}
const myBirdId=user.birdId||'';
const myStage=user.stage||'baby';
if(myBirdId==='sable')document.getElementById('myBirdBanner').classList.remove('hidden');
const stagesGrid=document.getElementById('stagesGrid');
STAGE_LABELS.forEach((stage,i)=>{
const isActive=stage===myStage&&myBirdId==='sable';
const isPast=STAGE_LABELS.indexOf(myStage)>i&&myBirdId==='sable';
const div=document.createElement('div');
div.className='text-center p-3 rounded-2xl border-2 '+(isActive?'border-purple-400 bg-purple-50':isPast?'border-green-300 bg-green-50 opacity-70':'border-gray-200 bg-gray-50 opacity-40');
div.innerHTML='<img src="assets/images/sable-'+stage+'.png" class="h-12 mx-auto mb-1 object-contain" alt="'+STAGE_NAMES[i]+'" onerror="this.style.display=\'none\'">'
+'<p class="text-xs font-semibold text-gray-600">'+STAGE_NAMES[i]+'</p>'
+(isActive?'<p class="text-xs text-purple-500 mt-1">★ Now</p>':'')
+(isPast?'<p class="text-xs text-green-500 mt-1">✔</p>':'');
stagesGrid.appendChild(div);
});
const ta=document.getElementById('nestReflection');
ta.value=localStorage.getItem('ventpals_reflection_sable')||'';
function saveReflection(){
localStorage.setItem('ventpals_reflection_sable',ta.value);
const msg=document.getElementById('saveMsg');
msg.classList.remove('hidden');
setTimeout(()=>msg.classList.add('hidden'),2000);
}
const picker=document.getElementById('birdPickerGrid');
BIRDS_ALL.forEach(bird=>{
const isSelected=bird.id===myBirdId;
const btn=document.createElement('button');
btn.className='flex items-center gap-3 p-3 rounded-2xl border-2 text-left transition hover:bg-purple-50 '+(isSelected?'border-purple-400 bg-purple-50':'border-gray-200');
btn.innerHTML='<img src="assets/images/'+bird.id+'-nestling.png" class="h-10 w-10 object-contain flex-shrink-0" onerror="this.style.display=\'none\'">'
+'<div><p class="font-bold text-purple-700 text-sm">'+bird.name+'</p><p class="text-xs text-gray-400">'+bird.trait+'</p></div>';
btn.onclick=()=>{
try{
const u=JSON.parse(localStorage.getItem('ventpals_user')||'{}');
u.birdId=bird.id;
localStorage.setItem('ventpals_user',JSON.stringify(u));
const msg=document.getElementById('changeBirdMsg');
msg.textContent='✓ Your VentPal is now '+bird.name+'! Redirecting…';
msg.classList.remove('hidden');
setTimeout(()=>{window.location.href=bird.id+'-nest.html';},1500);
}catch(e){alert('Could not save. Please try again.');}
};
picker.appendChild(btn);
});
</script>
</body>
</html>