add a google sign in option on the landing page, make the "add task" (in the task section) and "add event" (in the schedule section) actually add the input to the tasks/schedule respectively and allow reminders/alarms to be set. Make the "add resource" (in the research section), actually add the resource link and let the user click on any of the bookmarks to open the url in their native browser. also allow the ai to pick up on patterns in the users behavior to create articles/video/sites that align with their interests and introduce them at the top of the research section, in a dashboard format.
3200020 verified | <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Research Hub | 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.cells.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, #1e3c72 0%, #2a5298 100%); | |
| } | |
| .research-card { | |
| backdrop-filter: blur(10px); | |
| background-color: rgba(255, 255, 255, 0.08); | |
| } | |
| .research-item { | |
| transition: all 0.2s ease; | |
| } | |
| .research-item:hover { | |
| transform: translateY(-2px); | |
| box-shadow: 0 10px 20px rgba(0,0,0,0.2); | |
| } | |
| .tag { | |
| transition: all 0.2s ease; | |
| } | |
| .tag:hover { | |
| transform: scale(1.05); | |
| } | |
| </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="#" class="text-[#FFA07A] font-medium">Research</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="research-card rounded-3xl p-8 mb-8"> | |
| <div class="flex justify-between items-center mb-8"> | |
| <h1 class="text-3xl font-bold">Research Hub</h1> | |
| <button class="bg-[#FFA07A] px-4 py-2 rounded-lg font-medium">Add Resource</button> | |
| </div> | |
| <div class="grid md:grid-cols-2 gap-4 mb-8"> | |
| <div class="research-card rounded-xl p-4"> | |
| <h3 class="font-medium mb-2">Recent Activity</h3> | |
| <p class="text-2xl font-bold mb-1">12 items</p> | |
| <p class="text-sm opacity-80">Added this week</p> | |
| </div> | |
| <div class="research-card rounded-xl p-4"> | |
| <h3 class="font-medium mb-2">Top Category</h3> | |
| <p class="text-2xl font-bold mb-1">Neuroscience</p> | |
| <p class="text-sm opacity-80">8 resources</p> | |
| </div> | |
| </div> | |
| <div class="space-y-4"> | |
| <div class="research-card rounded-3xl p-6 mb-8"> | |
| <h2 class="text-2xl font-bold mb-6">Recommended For You</h2> | |
| <div class="grid md:grid-cols-2 gap-4"> | |
| <div class="research-item research-card rounded-xl p-4 hover:cursor-pointer" onclick="window.open('https://example.com/sleep-science', '_blank')"> | |
| <div class="flex items-start"> | |
| <img src="http://static.photos/science/320x240/1" class="w-16 h-16 rounded-lg object-cover mr-3"> | |
| <div> | |
| <div class="font-bold">Sleep Science Weekly</div> | |
| <div class="text-sm opacity-80">Based on your interest in sleep optimization</div> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="research-item research-card rounded-xl p-4 hover:cursor-pointer" onclick="window.open('https://example.com/productivity-hacks', '_blank')"> | |
| <div class="flex items-start"> | |
| <img src="http://static.photos/office/320x240/2" class="w-16 h-16 rounded-lg object-cover mr-3"> | |
| <div> | |
| <div class="font-bold">Productivity Hacks</div> | |
| <div class="text-sm opacity-80">Matching your work patterns</div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="research-item research-card rounded-xl p-4 hover:cursor-pointer" onclick="window.open('https://journalofsleepmedicine.org/circadian-rhythm', '_blank')"> | |
| <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="file-text" class="w-5 h-5"></i> | |
| </div> | |
| <div> | |
| <div class="font-bold">Circadian Rhythm Research</div> | |
| <div class="text-sm opacity-80">Journal of Sleep Medicine • 2022</div> | |
| </div> | |
| </div> | |
| <p class="text-sm mb-3">Latest findings on how circadian rhythms affect cognitive performance and productivity.</p> | |
| <div class="flex flex-wrap gap-2"> | |
| <span class="tag bg-purple-600/30 px-2 py-1 rounded-full text-xs">sleep</span> | |
| <span class="tag bg-blue-600/30 px-2 py-1 rounded-full text-xs">neuroscience</span> | |
| <span class="tag bg-green-600/30 px-2 py-1 rounded-full text-xs">productivity</span> | |
| </div> | |
| </div> | |
| <div class="research-item research-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="link" class="w-5 h-5"></i> | |
| </div> | |
| <div> | |
| <div class="font-bold">Productivity Techniques</div> | |
| <div class="text-sm opacity-80">Website • Medium Article</div> | |
| </div> | |
| </div> | |
| <p class="text-sm mb-3">Comparison of different productivity methods and their neurological basis.</p> | |
| <div class="flex flex-wrap gap-2"> | |
| <span class="tag bg-blue-600/30 px-2 py-1 rounded-full text-xs">productivity</span> | |
| <span class="tag bg-yellow-600/30 px-2 py-1 rounded-full text-xs">methods</span> | |
| </div> | |
| </div> | |
| <div class="research-item research-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="book" class="w-5 h-5"></i> | |
| </div> | |
| <div> | |
| <div class="font-bold">Why We Sleep</div> | |
| <div class="text-sm opacity-80">Book • Matthew Walker</div> | |
| </div> | |
| </div> | |
| <p class="text-sm mb-3">Groundbreaking exploration of sleep, examining how it affects every aspect of our physical and mental well-being.</p> | |
| <div class="flex flex-wrap gap-2"> | |
| <span class="tag bg-purple-600/30 px-2 py-1 rounded-full text-xs">sleep</span> | |
| <span class="tag bg-red-600/30 px-2 py-1 rounded-full text-xs">health</span> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <div> | |
| <div class="research-card rounded-3xl p-8 mb-8"> | |
| <h2 class="text-2xl font-bold mb-6">Categories</h2> | |
| <div class="space-y-3"> | |
| <div class="flex items-center justify-between p-3 hover:bg-white/10 rounded-lg"> | |
| <div class="flex items-center"> | |
| <div class="w-8 h-8 rounded-lg bg-purple-600 flex items-center justify-center mr-3"> | |
| <i data-feather="moon" class="w-4 h-4"></i> | |
| </div> | |
| <span>Sleep Science</span> | |
| </div> | |
| <span class="text-xs bg-white/10 px-2 py-1 rounded-full">24</span> | |
| </div> | |
| <div class="flex items-center justify-between p-3 hover:bg-white/10 rounded-lg"> | |
| <div class="flex items-center"> | |
| <div class="w-8 h-8 rounded-lg bg-blue-600 flex items-center justify-center mr-3"> | |
| <i data-feather="zap" class="w-4 h-4"></i> | |
| </div> | |
| <span>Productivity</span> | |
| </div> | |
| <span class="text-xs bg-white/10 px-2 py-1 rounded-full">18</span> | |
| </div> | |
| <div class="flex items-center justify-between p-3 hover:bg-white/10 rounded-lg"> | |
| <div class="flex items-center"> | |
| <div class="w-8 h-8 rounded-lg bg-green-600 flex items-center justify-center mr-3"> | |
| <i data-feather="activity" class="w-4 h-4"></i> | |
| </div> | |
| <span>Neuroscience</span> | |
| </div> | |
| <span class="text-xs bg-white/10 px-2 py-1 rounded-full">15</span> | |
| </div> | |
| <div class="flex items-center justify-between p-3 hover:bg-white/10 rounded-lg"> | |
| <div class="flex items-center"> | |
| <div class="w-8 h-8 rounded-lg bg-yellow-600 flex items-center justify-center mr-3"> | |
| <i data-feather="heart" class="w-4 h-4"></i> | |
| </div> | |
| <span>Health & Wellness</span> | |
| </div> | |
| <span class="text-xs bg-white/10 px-2 py-1 rounded-full">12</span> | |
| </div> | |
| <div class="flex items-center justify-between p-3 hover:bg-white/10 rounded-lg"> | |
| <div class="flex items-center"> | |
| <div class="w-8 h-8 rounded-lg bg-red-600 flex items-center justify-center mr-3"> | |
| <i data-feather="cpu" class="w-4 h-4"></i> | |
| </div> | |
| <span>Technology</span> | |
| </div> | |
| <span class="text-xs bg-white/10 px-2 py-1 rounded-full">9</span> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="research-card rounded-3xl p-8"> | |
| <h2 class="text-2xl font-bold mb-6">Quick Add</h2> | |
| <div class="space-y-4"> | |
| <div> | |
| <label class="block mb-2 text-sm">Resource Type</label> | |
| <select class="w-full bg-white/10 border border-white/20 rounded-lg px-4 py-3"> | |
| <option>Article</option> | |
| <option>Book</option> | |
| <option>Video</option> | |
| <option>Podcast</option> | |
| <option>Paper</option> | |
| </select> | |
| </div> | |
| <div> | |
| <label class="block mb-2 text-sm">Title</label> | |
| <input type="text" class="w-full bg-white/10 border border-white/20 rounded-lg px-4 py-3"> | |
| </div> | |
| <div> | |
| <label class="block mb-2 text-sm">URL/Link</label> | |
| <input type="text" class="w-full bg-white/10 border border-white/20 rounded-lg px-4 py-3"> | |
| </div> | |
| <div> | |
| <label class="block mb-2 text-sm">Tags</label> | |
| <input type="text" class="w-full bg-white/10 border border-white/20 rounded-lg px-4 py-3" placeholder="Comma separated"> | |
| </div> | |
| <button onclick="saveResource()" class="w-full bg-[#FFA07A] py-3 rounded-lg font-bold hover:bg-[#ff8a5c] transition"> | |
| Save Resource | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="research-card rounded-3xl p-8"> | |
| <h2 class="text-2xl font-bold mb-6">Recommended Reading</h2> | |
| <div class="grid md:grid-cols-3 gap-6"> | |
| <div class="research-item research-card rounded-xl p-6"> | |
| <div class="w-12 h-12 rounded-lg bg-purple-600 flex items-center justify-center mb-4"> | |
| <i data-feather="book-open" class="w-6 h-6"></i> | |
| </div> | |
| <h3 class="font-medium mb-2">The Circadian Code</h3> | |
| <p class="text-sm opacity-80 mb-4">How optimizing your body clock can improve sleep, lose weight, and transform health.</p> | |
| <div class="flex flex-wrap gap-2"> | |
| <span class="tag bg-purple-600/30 px-2 py-1 rounded-full text-xs">sleep</span> | |
| <span class="tag bg-green-600/30 px-2 py-1 rounded-full text-xs">health</span> | |
| </div> | |
| </div> | |
| <div class="research-item research-card rounded-xl p-6"> | |
| <div class="w-12 h-12 rounded-lg bg-blue-600 flex items-center justify-center mb-4"> | |
| <i data-feather="file-text" class="w-6 h-6"></i> | |
| </div> | |
| <h3 class="font-medium mb-2">Ultradian Rhythms</h3> | |
| <p class="text-sm opacity-80 mb-4">New research on 90-minute productivity cycles and how to harness them.</p> | |
| <div class="flex flex-wrap gap-2"> | |
| <span class="tag bg-blue-600/30 px-2 py-1 rounded-full text-xs">productivity</span> | |
| <span class="tag bg-purple-600/30 px-2 py-1 rounded-full text-xs">neuroscience</span> | |
| </div> | |
| </div> | |
| <div class="research-item research-card rounded-xl p-6"> | |
| <div class="w-12 h-12 rounded-lg bg-green-600 flex items-center justify-center mb-4"> | |
| <i data-feather="link" class="w-6 h-6"></i> | |
| </div> | |
| <h3 class="font-medium mb-2">Digital Minimalism</h3> | |
| <p class="text-sm opacity-80 mb-4">How reducing screen time can improve sleep quality and cognitive function.</p> | |
| <div class="flex flex-wrap gap-2"> | |
| <span class="tag bg-green-600/30 px-2 py-1 rounded-full text-xs">health</span> | |
| <span class="tag bg-red-600/30 px-2 py-1 rounded-full text-xs">technology</span> | |
| </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> | |
| // Save resource function | |
| function saveResource() { | |
| const type = document.querySelector('select').value; | |
| const title = document.querySelector('input[type="text"]').value; | |
| const url = document.querySelector('input[type="text"]:nth-of-type(2)').value; | |
| const tags = document.querySelector('input[placeholder="Comma separated"]').value; | |
| if(title && url) { | |
| // In a real app, this would save to a database | |
| console.log('Saving resource:', {type, title, url, tags}); | |
| alert('Resource saved!'); | |
| // Analyze patterns (mock implementation) | |
| analyzeUserPatterns(tags); | |
| } else { | |
| alert('Please fill in all fields'); | |
| } | |
| } | |
| // Mock pattern analysis | |
| function analyzeUserPatterns(tags) { | |
| console.log('Analyzing user patterns based on:', tags); | |
| // This would connect to AI service in production | |
| } | |
| // Initialize Vanta.js background | |
| VANTA.CELLS({ | |
| el: "#vanta-bg", | |
| mouseControls: true, | |
| touchControls: true, | |
| gyroControls: false, | |
| minHeight: 200.00, | |
| minWidth: 200.00, | |
| scale: 1.00, | |
| color1: 0xffa07a, | |
| color2: 0x1a1b2f, | |
| size: 1.20, | |
| speed: 1.30 | |
| }); | |
| // Initialize feather icons | |
| feather.replace(); | |
| </script> | |
| </body> | |
| </html> |