File size: 14,971 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
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Pattern Finder | 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.topology.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, #0f2027 0%, #203a43 50%, #2c5364 100%);
        }
        .pattern-card {
            backdrop-filter: blur(10px);
            background-color: rgba(255, 255, 255, 0.08);
        }
        .pattern-item {
            transition: all 0.2s ease;
        }
        .pattern-item:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.2);
        }
        .insight-card {
            transition: all 0.3s ease;
        }
        .insight-card:hover {
            transform: scale(1.02);
        }
    </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="pattern-card rounded-3xl p-8 mb-8">
                        <div class="flex justify-between items-center mb-8">
                            <h1 class="text-3xl font-bold">Pattern Finder</h1>
                            <button class="bg-[#FFA07A] px-4 py-2 rounded-lg font-medium">Run Analysis</button>
                        </div>
                        
                        <div class="grid md:grid-cols-2 gap-4 mb-8">
                            <div class="pattern-card rounded-xl p-4">
                                <h3 class="font-medium mb-2">Patterns Detected</h3>
                                <p class="text-2xl font-bold mb-1">12</p>
                                <p class="text-sm opacity-80">This month</p>
                            </div>
                            <div class="pattern-card rounded-xl p-4">
                                <h3 class="font-medium mb-2">Most Significant</h3>
                                <p class="text-2xl font-bold mb-1">Sleep & Productivity</p>
                                <p class="text-sm opacity-80">85% correlation</p>
                            </div>
                        </div>
                        
                        <div class="space-y-4">
                            <h3 class="font-medium">Recent Insights</h3>
                            <div class="pattern-item pattern-card rounded-xl p-4">
                                <div class="flex items-start mb-3">
                                    <div class="w-10 h-10 rounded-lg bg-purple-600 flex items-center justify-center mr-3">
                                        <i data-feather="activity" class="w-5 h-5"></i>
                                    </div>
                                    <div>
                                        <div class="font-bold">Sleep & Productivity</div>
                                        <div class="text-sm opacity-80">Discovered 2 days ago</div>
                                    </div>
                                </div>
                                <p class="text-sm mb-3">When you get at least 7 hours of sleep, your next day productivity increases by 32% on average.</p>
                                <div class="bg-white/5 rounded-lg p-3">
                                    <div class="flex justify-between text-xs mb-1">
                                        <span>Productivity</span>
                                        <span>+32%</span>
                                    </div>
                                    <div class="w-full bg-white/10 rounded-full h-2">
                                        <div class="bg-[#FFA07A] h-2 rounded-full" style="width: 32%"></div>
                                    </div>
                                </div>
                            </div>
                            
                            <div class="pattern-item pattern-card rounded-xl p-4">
                                <div class="flex items-start mb-3">
                                    <div class="w-10 h-10 rounded-lg bg-blue-600 flex items-center justify-center mr-3">
                                        <i data-feather="clock" class="w-5 h-5"></i>
                                    </div>
                                    <div>
                                        <div class="font-bold">Creative Peak</div>
                                        <div class="text-sm opacity-80">Discovered 1 week ago</div>
                                    </div>
                                </div>
                                <p class="text-sm mb-3">Your most creative work consistently happens between 9:30 AM and 11:30 AM.</p>
                                <div class="flex items-center text-sm">
                                    <i data-feather="alert-circle" class="w-4 h-4 mr-1 text-yellow-400"></i>
                                    <span class="opacity-80">Consider scheduling creative tasks during this window</span>
                                </div>
                            </div>
                            
                            <div class="pattern-item pattern-card rounded-xl p-4">
                                <div class="flex items-start mb-3">
                                    <div class="w-10 h-10 rounded-lg bg-green-600 flex items-center justify-center mr-3">
                                        <i data-feather="coffee" class="w-5 h-5"></i>
                                    </div>
                                    <div>
                                        <div class="font-bold">Caffeine Impact</div>
                                        <div class="text-sm opacity-80">Discovered 2 weeks ago</div>
                                    </div>
                                </div>
                                <p class="text-sm mb-3">Caffeine consumption after 2 PM correlates with 27 minutes less sleep that night.</p>
                                <div class="bg-white/5 rounded-lg p-3">
                                    <div class="flex justify-between text-xs">
                                        <span>Before 2 PM</span>
                                        <span>After 2 PM</span>
                                    </div>
                                    <div class="flex justify-between mt-1">
                                        <div class="text-center">
                                            <div class="text-lg font-bold">7h 12m</div>
                                            <div class="text-xs opacity-80">Avg sleep</div>
                                        </div>
                                        <div class="text-center">
                                            <div class="text-lg font-bold">6h 45m</div>
                                            <div class="text-xs opacity-80">Avg sleep</div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                
                <div>
                    <div class="pattern-card rounded-3xl p-8 mb-8">
                        <h2 class="text-2xl font-bold mb-6">Key Insights</h2>
                        <div class="space-y-4">
                            <div class="insight-card pattern-card rounded-xl p-4">
                                <div class="flex items-center mb-2">
                                    <div class="w-8 h-8 rounded-lg bg-purple-600 flex items-center justify-center mr-3">
                                        <i data-feather="trending-up" class="w-4 h-4"></i>
                                    </div>
                                    <div>
                                        <div class="font-bold">Productivity Patterns</div>
                                        <div class="text-xs opacity-80">Weekly trends</div>
                                    </div>
                                </div>
                                <p class="text-sm opacity-80">Your most productive day is Wednesday, with productivity declining toward the weekend.</p>
                            </div>
                            <div class="insight-card pattern-card rounded-xl p-4">
                                <div class="flex items-center mb-2">
                                    <div class="w-8 h-8 rounded-lg bg-blue-600 flex items-center justify-center mr-3">
                                        <i data-feather="moon" class="w-4 h-4"></i>
                                    </div>
                                    <div>
                                        <div class="font-bold">Sleep Quality</div>
                                        <div class="text-xs opacity-80">Monthly average</div>
                                    </div>
                                </div>
                                <p class="text-sm opacity-80">Your sleep quality is 18% better when you exercise during the day.</p>
                            </div>
                            <div class="insight-card pattern-card rounded-xl p-4">
                                <div class="flex items-center mb-2">
                                    <div class="w-8 h-8 rounded-lg bg-green-600 flex items-center justify-center mr-3">
                                        <i data-feather="clock" class="w-4 h-4"></i>
                                    </div>
                                    <div>
                                        <div class="font-bold">Energy Levels</div>
                                        <div class="text-xs opacity-80">Daily rhythm</div>
                                    </div>
                                </div>
                                <p class="text-sm opacity-80">Your energy consistently dips between 2 PM and 3 PM - consider a power nap.</p>
                            </div>
                        </div>
                    </div>
                    
                    <div class="pattern-card rounded-3xl p-8">
                        <h2 class="text-2xl font-bold mb-6">Pattern Analysis</h2>
                        <div class="space-y-4">
                            <div>
                                <label class="block mb-2 text-sm">Analyze</label>
                                <select class="w-full bg-white/10 border border-white/20 rounded-lg px-4 py-3 mb-4">
                                    <option>Sleep vs. Productivity</option>
                                    <option>Caffeine vs. Sleep</option>
                                    <option>Exercise vs. Energy</option>
                                    <option>Screen Time vs. Sleep</option>
                                    <option>Custom Analysis</option>
                                </select>
                            </div>
                            <div>
                                <label class="block mb-2 text-sm">Time Frame</label>
                                <select class="w-full bg-white/10 border border-white/20 rounded-lg px-4 py-3 mb-4">
                                    <option>Last 7 days</option>
                                    <option>Last 30 days</option>
                                    <option>Last 3 months</option>
                                    <option>Last year</option>
                                    <option>All time</option>
                                </select>
                            </div>
                            <button class="w-full bg-[#FFA07A] py-3 rounded-lg font-bold hover:bg-[#ff8a5c] transition">
                                Discover Patterns
                            </button>
                        </div>
                    </div>
                </div>
            </div>
            
            <div class="pattern-card rounded-3xl p-8">
                <h2 class="text-2xl font-bold mb-6">Visual Patterns</h2>
                <div class="grid md:grid-cols-2 gap-6">
                    <div class="pattern-card rounded-xl p-6 h-64">
                        <h3 class="font-medium mb-4">Sleep vs. Productivity</h3>
                        <div class="h-40 bg-white/5 rounded-lg"></div>
                    </div>
                    <div class="pattern-card rounded-xl p-6 h-64">
                        <h3 class="font-medium mb-4">Weekly Energy Flow</h3>
                        <div class="h-40 bg-white/5 rounded-lg"></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.TOPOLOGY({
            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,
            size: 1.20
        });

        // Initialize feather icons
        feather.replace();
    </script>
</body>
</html>