File size: 16,545 Bytes
1e37053
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>AI Assistant | CircaSnooze</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <script src="https://unpkg.com/feather-icons"></script>
    <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.rings.min.js"></script>
    <style>
        @import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');
        body {
            font-family: 'Space Grotesk', sans-serif;
        }
        .gradient-bg {
            background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
        }
        .assistant-card {
            backdrop-filter: blur(10px);
            background-color: rgba(255, 255, 255, 0.08);
        }
        .message-user {
            background: rgba(255, 160, 122, 0.2);
            border-left: 3px solid #FFA07A;
        }
        .message-ai {
            background: rgba(118, 75, 162, 0.2);
            border-left: 3px solid #4e4376;
        }
        .typing-indicator span {
            display: inline-block;
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #FFA07A;
            margin: 0 2px;
            animation: bounce 1.4s infinite ease-in-out;
        }
        .typing-indicator span:nth-child(2) {
            animation-delay: 0.2s;
        }
        .typing-indicator span:nth-child(3) {
            animation-delay: 0.4s;
        }
        @keyframes bounce {
            0%, 60%, 100% { transform: translateY(0); }
            30% { transform: translateY(-5px); }
        }
    </style>
</head>
<body class="min-h-screen text-white gradient-bg" id="vanta-bg">
    <div class="container mx-auto px-4 py-8">
        <header class="flex justify-between items-center mb-12">
            <a href="index.html" class="flex items-center space-x-2">
                <i data-feather="moon" class="w-6 h-6"></i>
                <span class="text-xl font-bold">CircaSnooze</span>
            </a>
            <nav class="hidden md:flex space-x-6">
                <a href="index.html" class="hover:text-[#FFA07A] transition">Home</a>
                <a href="sleep-calculator.html" class="hover:text-[#FFA07A] transition">Sleep</a>
                <a href="scheduling.html" class="hover:text-[#FFA07A] transition">Schedule</a>
                <a href="tasks.html" class="hover:text-[#FFA07A] transition">Tasks</a>
                <a href="media.html" class="hover:text-[#FFA07A] transition">Media</a>
            </nav>
            <button class="bg-[#FFA07A] px-4 py-2 rounded-lg text-sm font-medium hover:bg-[#ff8a5c] transition">
                My Account
            </button>
        </header>

        <main>
            <div class="grid lg:grid-cols-3 gap-8 mb-8">
                <div class="lg:col-span-2">
                    <div class="assistant-card rounded-3xl p-8 mb-8 h-[600px] flex flex-col">
                        <h1 class="text-3xl font-bold mb-8">CircaAssistant</h1>
                        
                        <div class="flex-1 space-y-4 overflow-y-auto mb-6 pr-4" id="chat-container">
                            <div class="message-ai rounded-lg p-4">
                                <div class="flex items-start">
                                    <div class="w-8 h-8 rounded-full bg-purple-600 flex items-center justify-center mr-3">
                                        <i data-feather="cpu" class="w-4 h-4"></i>
                                    </div>
                                    <div>
                                        <div class="font-bold mb-1">CircaAssistant</div>
                                        <p>Hi there! I'm your circadian rhythm AI assistant. I can help you optimize your sleep, schedule, productivity, and more based on your biological patterns. What would you like to know today?</p>
                                    </div>
                                </div>
                            </div>
                            
                            <div class="message-user rounded-lg p-4">
                                <div class="flex items-start">
                                    <div class="w-8 h-8 rounded-full bg-[#FFA07A] flex items-center justify-center mr-3">
                                        <i data-feather="user" class="w-4 h-4"></i>
                                    </div>
                                    <div>
                                        <div class="font-bold mb-1">You</div>
                                        <p>How can I improve my sleep quality?</p>
                                    </div>
                                </div>
                            </div>
                            
                            <div class="message-ai rounded-lg p-4">
                                <div class="flex items-start">
                                    <div class="w-8 h-8 rounded-full bg-purple-600 flex items-center justify-center mr-3">
                                        <i data-feather="cpu" class="w-4 h-4"></i>
                                    </div>
                                    <div>
                                        <div class="font-bold mb-1">CircaAssistant</div>
                                        <p>Based on your sleep data, here are personalized recommendations:</p>
                                        <ul class="list-disc pl-5 mt-2 space-y-2">
                                            <li>Maintain consistent bedtime (try 11:00 PM based on your patterns)</li>
                                            <li>Reduce screen time 1 hour before bed (your average is currently 30 mins)</li>
                                            <li>Keep bedroom temperature between 65-68°F (currently 72°F)</li>
                                            <li>Try our "Sleep Sounds" playlist featuring pink noise</li>
                                        </ul>
                                    </div>
                                </div>
                            </div>
                            
                            <div class="typing-indicator rounded-lg p-4 hidden">
                                <div class="flex items-center">
                                    <div class="w-8 h-8 rounded-full bg-purple-600 flex items-center justify-center mr-3">
                                        <i data-feather="cpu" class="w-4 h-4"></i>
                                    </div>
                                    <div class="flex space-x-1">
                                        <span></span>
                                        <span></span>
                                        <span></span>
                                    </div>
                                </div>
                            </div>
                        </div>
                        
                        <div class="relative">
                            <input type="text" placeholder="Ask me anything about sleep, productivity, or your schedule..." 
                                   class="w-full bg-white/10 border border-white/20 rounded-full px-6 py-4 pr-14">
                            <button class="absolute right-4 top-1/2 transform -translate-y-1/2 bg-[#FFA07A] p-2 rounded-full">
                                <i data-feather="send" class="w-5 h-5"></i>
                            </button>
                        </div>
                    </div>
                </div>
                
                <div>
                    <div class="assistant-card rounded-3xl p-8 mb-8">
                        <h2 class="text-2xl font-bold mb-6">Quick Actions</h2>
                        <div class="grid grid-cols-2 gap-4">
                            <button class="assistant-card rounded-xl p-4 flex flex-col items-center hover:bg-white/10 transition">
                                <div class="w-10 h-10 rounded-full bg-purple-600 flex items-center justify-center mb-2">
                                    <i data-feather="moon" class="w-5 h-5"></i>
                                </div>
                                <span class="text-sm">Sleep Tips</span>
                            </button>
                            <button class="assistant-card rounded-xl p-4 flex flex-col items-center hover:bg-white/10 transition">
                                <div class="w-10 h-10 rounded-full bg-blue-600 flex items-center justify-center mb-2">
                                    <i data-feather="clock" class="w-5 h-5"></i>
                                </div>
                                <span class="text-sm">Schedule Review</span>
                            </button>
                            <button class="assistant-card rounded-xl p-4 flex flex-col items-center hover:bg-white/10 transition">
                                <div class="w-10 h-10 rounded-full bg-green-600 flex items-center justify-center mb-2">
                                    <i data-feather="zap" class="w-5 h-5"></i>
                                </div>
                                <span class="text-sm">Energy Boost</span>
                            </button>
                            <button class="assistant-card rounded-xl p-4 flex flex-col items-center hover:bg-white/10 transition">
                                <div class="w-10 h-10 rounded-full bg-yellow-600 flex items-center justify-center mb-2">
                                    <i data-feather="book" class="w-5 h-5"></i>
                                </div>
                                <span class="text-sm">Learning Tips</span>
                            </button>
                        </div>
                    </div>
                    
                    <div class="assistant-card rounded-3xl p-8 mb-8">
                        <h2 class="text-2xl font-bold mb-6">Your Stats</h2>
                        <div class="space-y-6">
                            <div>
                                <div class="flex justify-between mb-1">
                                    <span class="font-medium">Sleep Quality</span>
                                    <span class="text-[#FFA07A]">78%</span>
                                </div>
                                <div class="w-full bg-white/10 rounded-full h-2">
                                    <div class="bg-[#FFA07A] h-2 rounded-full" style="width: 78%"></div>
                                </div>
                            </div>
                            <div>
                                <div class="flex justify-between mb-1">
                                    <span class="font-medium">Productivity</span>
                                    <span class="text-[#FFA07A]">85%</span>
                                </div>
                                <div class="w-full bg-white/10 rounded-full h-2">
                                    <div class="bg-[#FFA07A] h-2 rounded-full" style="width: 85%"></div>
                                </div>
                            </div>
                            <div>
                                <div class="flex justify-between mb-1">
                                    <span class="font-medium">Consistency</span>
                                    <span class="text-[#FFA07A]">64%</span>
                                </div>
                                <div class="w-full bg-white/10 rounded-full h-2">
                                    <div class="bg-[#FFA07A] h-2 rounded-full" style="width: 64%"></div>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <div class="assistant-card rounded-3xl p-8">
                        <h2 class="text-2xl font-bold mb-6">Suggested Topics</h2>
                        <div class="flex flex-wrap gap-2">
                            <button class="bg-white/10 hover:bg-[#FFA07A] hover:text-white px-3 py-1 rounded-full text-sm transition">Sleep optimization</button>
                            <button class="bg-white/10 hover:bg-[#FFA07A] hover:text-white px-3 py-1 rounded-full text-sm transition">Time blocking</button>
                            <button class="bg-white/10 hover:bg-[#FFA07A] hover:text-white px-3 py-1 rounded-full text-sm transition">Focus techniques</button>
                            <button class="bg-white/10 hover:bg-[#FFA07A] hover:text-white px-3 py-1 rounded-full text-sm transition">Morning routine</button>
                            <button class="bg-white/10 hover:bg-[#FFA07A] hover:text-white px-3 py-1 rounded-full text-sm transition">Nutrition</button>
                            <button class="bg-white/10 hover:bg-[#FFA07A] hover:text-white px-3 py-1 rounded-full text-sm transition">Stress reduction</button>
                        </div>
                    </div>
                </div>
            </div>
        </main>

        <footer class="border-t border-white/20 mt-12 pt-8 pb-12">
            <div class="text-center opacity-70 text-sm">
                © 2023 CircaSnooze. All rights reserved.
            </div>
        </footer>
    </div>

    <script>
        // Initialize Vanta.js background
        VANTA.RINGS({
            el: "#vanta-bg",
            mouseControls: true,
            touchControls: true,
            gyroControls: false,
            minHeight: 200.00,
            minWidth: 200.00,
            scale: 1.00,
            scaleMobile: 1.00,
            color: 0xffa07a,
            backgroundColor: 0x1a1b2f,
            backgroundAlpha: 0.5
        });

        // Initialize feather icons
        feather.replace();

        // Simple chat functionality
        document.querySelector('button').addEventListener('click', function() {
            const input = document.querySelector('input');
            const chatContainer = document.getElementById('chat-container');
            
            if(input.value.trim() === '') return;
            
            // Add user message
            chatContainer.innerHTML += `
                <div class="message-user rounded-lg p-4">
                    <div class="flex items-start">
                        <div class="w-8 h-8 rounded-full bg-[#FFA07A] flex items-center justify-center mr-3">
                            <i data-feather="user" class="w-4 h-4"></i>
                        </div>
                        <div>
                            <div class="font-bold mb-1">You</div>
                            <p>${input.value}</p>
                        </div>
                    </div>
                </div>
            `;
            
            // Show typing indicator
            document.querySelector('.typing-indicator').classList.remove('hidden');
            
            // Scroll to bottom
            chatContainer.scrollTop = chatContainer.scrollHeight;
            
            // Simulate AI response after delay
            setTimeout(() => {
                document.querySelector('.typing-indicator').classList.add('hidden');
                
                chatContainer.innerHTML += `
                    <div class="message-ai rounded-lg p-4">
                        <div class="flex items-start">
                            <div class="w-8 h-8 rounded-full bg-purple-600 flex items-center justify-center mr-3">
                                <i data-feather="cpu" class="w-4 h-4"></i>
                            </div>
                            <div>
                                <div class="font-bold mb-1">CircaAssistant</div>
                                <p>I'm analyzing your question about "${input.value}". This is a simulated response - in a real application, I would provide personalized advice based on your data.</p>
                            </div>
                        </div>
                    </div>
                `;
                
                // Scroll to bottom
                chatContainer.scrollTop = chatContainer.scrollHeight;
                
                // Re-initialize feather icons for new elements
                feather.replace();
            }, 2000);
            
            // Clear input
            input.value = '';
        });
    </script>
</body>
</html>