Spaces:
Running
Running
📝 Project Brief — Productivity Time-Tracking App Inspired by Hormozi's Method 1️⃣ Core Concept A minimalist productivity tracking app based on 15-minute time blocks. Users log their activity every 15 minutes in a sleek, distraction-free interface. The goal: Increase self-awareness and optimize how time is spent during the day. 2️⃣ Functional Requirements ✅ Main Features 15-Minute Timer Loop Automatic countdown timer of 15 minutes. At the end of each 15-minute block, a modal or notification appears: ➔ “What did you do in the last 15 minutes?” User must input a short description (max 150 characters). Activity Log Every 15-minute entry is saved with timestamp. Entries displayed in a scrollable daily log (reverse chronological order). Color-coded tags (optional): Work, Break, Distraction, Exercise, etc. Daily Summary & Analytics Simple dashboard with stats: Total productive time vs non-productive. Time spent on each tag. Streak counter (days tracked). Data Persistence User data saved in a local database (IndexedDB/LocalStorage) or sync with backend (Firebase/SQLite). Ability to export data as CSV or JSON. 3️⃣ User Interface & Design 🎨 UI Theme Background: Deep black with semi-transparent glass effect. Accent Colors: Warm glowing orange with subtle gradients. Blur & Shadow: Use backdrop blur with frosted glass effect for modals and cards. Typography: Clean, modern sans-serif font (e.g., Inter, Manrope). Buttons: Rounded corners, soft shadows, hover glow effect. Animations: Smooth fade-ins, slide-ups for modals, timer countdown animation. 4️⃣ Pages / Screens Home / Dashboard Display active timer. Quick “Pause Timer” button. Show time until next prompt. Prompt Modal Pops up every 15 minutes. Input field + Save button. Optional tag selector. Daily Log Screen List of logged activities with timestamps and tags. Filter by tag or keyword. Analytics Dashboard Pie chart or bar chart for time distribution. Daily streak counter. Settings Page Toggle sound on/off for timer. Change color theme (Light/Dark). Export data. 5️⃣ Tech Stack Suggestion (if built manually) Frontend: React (with Tailwind CSS + Framer Motion). Backend (optional): Firebase or Supabase. Database: LocalStorage (MVP) or Firestore (for sync). Charts: Chart.js or Recharts. 6️⃣ Optional Features to Consider Later Mobile PWA support. Browser extension mode. AI-assisted productivity suggestions based on log analysis. Social accountability (share logs with friends). 7️⃣ Sample Hero Section Copy (if landing page is needed) Track Every 15 Minutes. Own Your Time. A sleek app designed to boost your productivity—one conscious time block at a time. - Initial Deployment
bcb54f1 verified Download index.html from dolorestrd/focusely: direct link, hf CLI and curl.
- Browser
- Download file 26 kB
-
https://huggingface.co/spaces/dolorestrd/focusely/resolve/main/index.html
- Command line
-
hf download hf://spaces/dolorestrd/focusely/index.html
-
curl -L -o index.html https://huggingface.co/spaces/dolorestrd/focusely/resolve/main/index.html
26 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>TimeBlock - Track Every 15 Minutes</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 src="https://cdn.jsdelivr.net/npm/chart.js"></script> | |
| <style> | |
| @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap'); | |
| :root { | |
| --primary: #ff7a00; | |
| --primary-light: #ff9e4a; | |
| --primary-dark: #e56a00; | |
| --glass: rgba(30, 30, 30, 0.5); | |
| --glass-border: rgba(255, 255, 255, 0.1); | |
| } | |
| body { | |
| font-family: 'Inter', sans-serif; | |
| background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%); | |
| color: #f0f0f0; | |
| min-height: 100vh; | |
| overflow-x: hidden; | |
| } | |
| .glass-panel { | |
| background: var(--glass); | |
| backdrop-filter: blur(12px); | |
| -webkit-backdrop-filter: blur(12px); | |
| border: 1px solid var(--glass-border); | |
| border-radius: 16px; | |
| box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2); | |
| } | |
| .timer-circle { | |
| width: 280px; | |
| height: 280px; | |
| border: 8px solid rgba(255, 122, 0, 0.2); | |
| box-shadow: 0 0 30px rgba(255, 122, 0, 0.3); | |
| } | |
| .timer-progress { | |
| stroke-dasharray: 942; | |
| stroke-dashoffset: 0; | |
| stroke: var(--primary); | |
| stroke-width: 8; | |
| transition: stroke-dashoffset 1s linear; | |
| } | |
| .glow-button { | |
| background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); | |
| box-shadow: 0 4px 20px rgba(255, 122, 0, 0.4); | |
| transition: all 0.3s ease; | |
| } | |
| .glow-button:hover { | |
| transform: translateY(-2px); | |
| box-shadow: 0 6px 25px rgba(255, 122, 0, 0.6); | |
| } | |
| .glow-button:active { | |
| transform: translateY(0); | |
| } | |
| .tag-work { background: rgba(46, 204, 113, 0.15); color: #2ecc71; } | |
| .tag-break { background: rgba(52, 152, 219, 0.15); color: #3498db; } | |
| .tag-distraction { background: rgba(231, 76, 60, 0.15); color: #e74c3c; } | |
| .tag-exercise { background: rgba(155, 89, 182, 0.15); color: #9b59b6; } | |
| .tag-learning { background: rgba(241, 196, 15, 0.15); color: #f1c40f; } | |
| .modal-overlay { | |
| background: rgba(0, 0, 0, 0.7); | |
| backdrop-filter: blur(5px); | |
| -webkit-backdrop-filter: blur(5px); | |
| } | |
| .entry-card { | |
| transition: all 0.3s ease; | |
| border-left: 4px solid var(--primary); | |
| } | |
| .entry-card:hover { | |
| transform: translateX(5px); | |
| background: rgba(40, 40, 40, 0.7); | |
| } | |
| .streak-glow { | |
| text-shadow: 0 0 10px rgba(255, 122, 0, 0.7); | |
| } | |
| .fade-in { | |
| animation: fadeIn 0.5s ease-in-out; | |
| } | |
| @keyframes fadeIn { | |
| from { opacity: 0; transform: translateY(10px); } | |
| to { opacity: 1; transform: translateY(0); } | |
| } | |
| .slide-up { | |
| animation: slideUp 0.4s ease-out; | |
| } | |
| @keyframes slideUp { | |
| from { transform: translateY(20px); opacity: 0; } | |
| to { transform: translateY(0); opacity: 1; } | |
| } | |
| .pulse { | |
| animation: pulse 2s infinite; | |
| } | |
| @keyframes pulse { | |
| 0% { box-shadow: 0 0 0 0 rgba(255, 122, 0, 0.4); } | |
| 70% { box-shadow: 0 0 0 10px rgba(255, 122, 0, 0); } | |
| 100% { box-shadow: 0 0 0 0 rgba(255, 122, 0, 0); } | |
| } | |
| </style> | |
| </head> | |
| <body class="min-h-screen flex flex-col"> | |
| <!-- Header --> | |
| <header class="py-4 px-6 glass-panel mx-4 mt-4"> | |
| <div class="container mx-auto flex justify-between items-center"> | |
| <div class="flex items-center"> | |
| <div class="w-10 h-10 rounded-full bg-gradient-to-br from-orange-500 to-amber-600 flex items-center justify-center mr-3"> | |
| <i class="fas fa-clock text-white"></i> | |
| </div> | |
| <h1 class="text-2xl font-bold bg-gradient-to-r from-orange-400 to-amber-500 bg-clip-text text-transparent">TimeBlock</h1> | |
| </div> | |
| <nav class="hidden md:flex space-x-6"> | |
| <a href="#dashboard" class="nav-link active">Dashboard</a> | |
| <a href="#log" class="nav-link">Daily Log</a> | |
| <a href="#analytics" class="nav-link">Analytics</a> | |
| <a href="#settings" class="nav-link">Settings</a> | |
| </nav> | |
| <div class="flex items-center space-x-4"> | |
| <div class="relative"> | |
| <div class="w-3 h-3 rounded-full bg-green-500 absolute top-0 right-0"></div> | |
| <div class="w-10 h-10 rounded-full bg-gray-700 flex items-center justify-center"> | |
| <i class="fas fa-user text-gray-300"></i> | |
| </div> | |
| </div> | |
| <button class="md:hidden text-gray-300"> | |
| <i class="fas fa-bars text-xl"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </header> | |
| <!-- Main Content --> | |
| <main class="flex-grow container mx-auto px-4 py-8"> | |
| <!-- Hero Section --> | |
| <section class="text-center mb-16 fade-in"> | |
| <h1 class="text-4xl md:text-6xl font-bold mb-6">Track Every 15 Minutes. <span class="bg-gradient-to-r from-orange-400 to-amber-500 bg-clip-text text-transparent">Own Your Time.</span></h1> | |
| <p class="text-xl text-gray-300 max-w-2xl mx-auto mb-10">A sleek app designed to boost your productivity—one conscious time block at a time.</p> | |
| <div class="flex justify-center space-x-4"> | |
| <button class="glow-button px-8 py-3 rounded-full font-semibold text-white">Get Started</button> | |
| <button class="glass-panel px-8 py-3 rounded-full font-semibold border border-gray-700">How It Works</button> | |
| </div> | |
| </section> | |
| <!-- Dashboard --> | |
| <section id="dashboard" class="mb-16 slide-up"> | |
| <div class="glass-panel p-6 md:p-8"> | |
| <div class="flex flex-col md:flex-row items-center justify-between mb-8"> | |
| <div> | |
| <h2 class="text-2xl font-bold mb-2">Today's Progress</h2> | |
| <p class="text-gray-400">Wednesday, October 18</p> | |
| </div> | |
| <div class="mt-4 md:mt-0"> | |
| <div class="flex items-center"> | |
| <div class="mr-4"> | |
| <span class="text-gray-400">Current streak:</span> | |
| <span class="font-bold text-orange-400 streak-glow">7 days</span> | |
| </div> | |
| <button class="glow-button px-4 py-2 rounded-lg flex items-center"> | |
| <i class="fas fa-pause mr-2"></i> Pause Timer | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="flex flex-col md:flex-row items-center justify-between"> | |
| <div class="relative mb-10 md:mb-0"> | |
| <div class="timer-circle rounded-full flex items-center justify-center mx-auto pulse"> | |
| <svg class="absolute top-0 left-0 w-full h-full transform -rotate-90" viewBox="0 0 100 100"> | |
| <circle cx="50" cy="50" r="45" fill="none" stroke="#2d2d2d" stroke-width="8"></circle> | |
| <circle id="timer-progress" class="timer-progress" cx="50" cy="50" r="45" fill="none" stroke-width="8"></circle> | |
| </svg> | |
| <div class="text-center"> | |
| <div id="timer" class="text-5xl font-bold mb-2">14:32</div> | |
| <div class="text-gray-400">until next prompt</div> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="w-full md:w-1/2"> | |
| <div class="grid grid-cols-2 gap-4"> | |
| <div class="glass-panel p-4"> | |
| <div class="text-gray-400 mb-1">Productive Time</div> | |
| <div class="text-2xl font-bold">3h 45m</div> | |
| <div class="h-2 bg-gray-700 rounded-full mt-2"> | |
| <div class="h-2 bg-green-500 rounded-full" style="width: 75%"></div> | |
| </div> | |
| </div> | |
| <div class="glass-panel p-4"> | |
| <div class="text-gray-400 mb-1">Break Time</div> | |
| <div class="text-2xl font-bold">45m</div> | |
| <div class="h-2 bg-gray-700 rounded-full mt-2"> | |
| <div class="h-2 bg-blue-500 rounded-full" style="width: 25%"></div> | |
| </div> | |
| </div> | |
| <div class="glass-panel p-4"> | |
| <div class="text-gray-400 mb-1">Blocks Completed</div> | |
| <div class="text-2xl font-bold">15</div> | |
| <div class="text-sm text-gray-400 mt-1">Today's goal: 20</div> | |
| </div> | |
| <div class="glass-panel p-4"> | |
| <div class="text-gray-400 mb-1">Distractions</div> | |
| <div class="text-2xl font-bold">2</div> | |
| <div class="text-sm text-gray-400 mt-1">-12 min</div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Daily Log --> | |
| <section id="log" class="mb-16"> | |
| <div class="glass-panel p-6 md:p-8"> | |
| <div class="flex justify-between items-center mb-6"> | |
| <h2 class="text-2xl font-bold">Today's Activity Log</h2> | |
| <div class="flex space-x-2"> | |
| <button class="glass-panel px-4 py-2 rounded-lg">All Activities</button> | |
| <button class="glow-button px-4 py-2 rounded-lg flex items-center"> | |
| <i class="fas fa-plus mr-2"></i> Add Entry | |
| </button> | |
| </div> | |
| </div> | |
| <div class="space-y-4 max-h-[500px] overflow-y-auto pr-2"> | |
| <!-- Activity Entry --> | |
| <div class="entry-card glass-panel p-4"> | |
| <div class="flex justify-between"> | |
| <div> | |
| <div class="font-semibold">Prepared client presentation</div> | |
| <div class="text-sm text-gray-400 mt-1">Created slides and outlined talking points</div> | |
| </div> | |
| <div class="text-right"> | |
| <div class="text-orange-400">14:15 - 14:30</div> | |
| <span class="tag-work px-2 py-1 rounded-full text-xs font-medium mt-1 inline-block">Work</span> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="entry-card glass-panel p-4"> | |
| <div class="flex justify-between"> | |
| <div> | |
| <div class="font-semibold">Coffee break</div> | |
| <div class="text-sm text-gray-400 mt-1">Got coffee and chatted with colleagues</div> | |
| </div> | |
| <div class="text-right"> | |
| <div class="text-orange-400">14:00 - 14:15</div> | |
| <span class="tag-break px-2 py-1 rounded-full text-xs font-medium mt-1 inline-block">Break</span> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="entry-card glass-panel p-4"> | |
| <div class="flex justify-between"> | |
| <div> | |
| <div class="font-semibold">Checked social media</div> | |
| <div class="text-sm text-gray-400 mt-1">Scrolled through Instagram</div> | |
| </div> | |
| <div class="text-right"> | |
| <div class="text-orange-400">13:45 - 14:00</div> | |
| <span class="tag-distraction px-2 py-1 rounded-full text-xs font-medium mt-1 inline-block">Distraction</span> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="entry-card glass-panel p-4"> | |
| <div class="flex justify-between"> | |
| <div> | |
| <div class="font-semibold">Team meeting</div> | |
| <div class="text-sm text-gray-400 mt-1">Weekly project sync</div> | |
| </div> | |
| <div class="text-right"> | |
| <div class="text-orange-400">13:30 - 13:45</div> | |
| <span class="tag-work px-2 py-1 rounded-full text-xs font-medium mt-1 inline-block">Work</span> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="entry-card glass-panel p-4"> | |
| <div class="flex justify-between"> | |
| <div> | |
| <div class="font-semibold">Lunch break</div> | |
| <div class="text-sm text-gray-400 mt-1">Ate lunch while listening to podcast</div> | |
| </div> | |
| <div class="text-right"> | |
| <div class="text-orange-400">13:15 - 13:30</div> | |
| <span class="tag-break px-2 py-1 rounded-full text-xs font-medium mt-1 inline-block">Break</span> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Analytics --> | |
| <section id="analytics" class="mb-16"> | |
| <div class="glass-panel p-6 md:p-8"> | |
| <h2 class="text-2xl font-bold mb-6">Productivity Analytics</h2> | |
| <div class="grid grid-cols-1 md:grid-cols-2 gap-8"> | |
| <div> | |
| <h3 class="text-xl font-semibold mb-4">Time Distribution</h3> | |
| <div class="h-80"> | |
| <canvas id="timeChart"></canvas> | |
| </div> | |
| </div> | |
| <div> | |
| <h3 class="text-xl font-semibold mb-4">Daily Focus</h3> | |
| <div class="h-80"> | |
| <canvas id="focusChart"></canvas> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="grid grid-cols-1 md:grid-cols-3 gap-6 mt-8"> | |
| <div class="glass-panel p-4 text-center"> | |
| <div class="text-5xl font-bold text-orange-400 mb-2">87%</div> | |
| <div class="text-gray-400">Productivity Rate</div> | |
| </div> | |
| <div class="glass-panel p-4 text-center"> | |
| <div class="text-5xl font-bold text-orange-400 mb-2">7</div> | |
| <div class="text-gray-400">Day Streak</div> | |
| </div> | |
| <div class="glass-panel p-4 text-center"> | |
| <div class="text-5xl font-bold text-orange-400 mb-2">18</div> | |
| <div class="text-gray-400">Avg Blocks/Day</div> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| </main> | |
| <!-- Prompt Modal --> | |
| <div id="prompt-modal" class="modal-overlay fixed inset-0 flex items-center justify-center z-50 hidden"> | |
| <div class="glass-panel p-8 max-w-md w-full mx-4 slide-up"> | |
| <div class="text-center mb-6"> | |
| <div class="w-16 h-16 rounded-full bg-orange-500/20 flex items-center justify-center mx-auto mb-4"> | |
| <i class="fas fa-bell text-orange-400 text-2xl"></i> | |
| </div> | |
| <h3 class="text-2xl font-bold mb-2">Time Block Complete</h3> | |
| <p class="text-gray-400">What did you do in the last 15 minutes?</p> | |
| </div> | |
| <div class="mb-6"> | |
| <textarea | |
| class="w-full bg-gray-800/50 border border-gray-700 rounded-lg p-4 focus:outline-none focus:ring-2 focus:ring-orange-500 focus:border-transparent" | |
| placeholder="Briefly describe your activity..." | |
| rows="3" | |
| ></textarea> | |
| <div class="text-right text-sm text-gray-500 mt-1">0/150 characters</div> | |
| </div> | |
| <div class="mb-6"> | |
| <label class="block text-gray-400 mb-2">Select Category</label> | |
| <div class="grid grid-cols-3 gap-2"> | |
| <button class="tag-work py-2 rounded-lg font-medium">Work</button> | |
| <button class="tag-break py-2 rounded-lg font-medium">Break</button> | |
| <button class="tag-distraction py-2 rounded-lg font-medium">Distraction</button> | |
| <button class="tag-exercise py-2 rounded-lg font-medium">Exercise</button> | |
| <button class="tag-learning py-2 rounded-lg font-medium">Learning</button> | |
| <button class="glass-panel py-2 rounded-lg font-medium">Other</button> | |
| </div> | |
| </div> | |
| <div class="flex space-x-3"> | |
| <button class="glass-panel flex-grow py-3 rounded-lg font-medium">Skip</button> | |
| <button class="glow-button flex-grow py-3 rounded-lg font-medium">Save</button> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Footer --> | |
| <footer class="py-8 px-4 text-center text-gray-500"> | |
| <div class="container mx-auto"> | |
| <p>TimeBlock - Track Every 15 Minutes. Own Your Time.</p> | |
| <p class="mt-2">© 2023 Productivity Labs. All rights reserved.</p> | |
| <div class="mt-4 flex justify-center space-x-4"> | |
| <a href="#" class="text-gray-400 hover:text-orange-400"><i class="fab fa-twitter"></i></a> | |
| <a href="#" class="text-gray-400 hover:text-orange-400"><i class="fab fa-instagram"></i></a> | |
| <a href="#" class="text-gray-400 hover:text-orange-400"><i class="fab fa-github"></i></a> | |
| </div> | |
| </div> | |
| </footer> | |
| <script> | |
| // Timer functionality | |
| let seconds = 14 * 60 + 32; // 14 minutes 32 seconds | |
| const timerElement = document.getElementById('timer'); | |
| const progressElement = document.getElementById('timer-progress'); | |
| const circumference = 2 * Math.PI * 45; | |
| progressElement.style.strokeDasharray = circumference; | |
| function updateTimer() { | |
| const minutes = Math.floor(seconds / 60); | |
| const remainingSeconds = seconds % 60; | |
| timerElement.textContent = `${minutes.toString().padStart(2, '0')}:${remainingSeconds.toString().padStart(2, '0')}`; | |
| // Update progress circle | |
| const progress = 1 - (seconds / (15 * 60)); | |
| const offset = circumference * progress; | |
| progressElement.style.strokeDashoffset = offset; | |
| seconds--; | |
| if (seconds < 0) { | |
| // Show modal when timer reaches 0 | |
| document.getElementById('prompt-modal').classList.remove('hidden'); | |
| seconds = 15 * 60; // Reset timer | |
| } | |
| } | |
| // Initialize timer | |
| setInterval(updateTimer, 1000); | |
| updateTimer(); | |
| // Initialize charts | |
| document.addEventListener('DOMContentLoaded', function() { | |
| // Time distribution chart | |
| const timeCtx = document.getElementById('timeChart').getContext('2d'); | |
| const timeChart = new Chart(timeCtx, { | |
| type: 'doughnut', | |
| data: { | |
| labels: ['Work', 'Break', 'Learning', 'Distraction', 'Exercise'], | |
| datasets: [{ | |
| data: [65, 15, 10, 7, 3], | |
| backgroundColor: [ | |
| 'rgba(46, 204, 113, 0.7)', | |
| 'rgba(52, 152, 219, 0.7)', | |
| 'rgba(241, 196, 15, 0.7)', | |
| 'rgba(231, 76, 60, 0.7)', | |
| 'rgba(155, 89, 182, 0.7)' | |
| ], | |
| borderColor: [ | |
| 'rgba(46, 204, 113, 1)', | |
| 'rgba(52, 152, 219, 1)', | |
| 'rgba(241, 196, 15, 1)', | |
| 'rgba(231, 76, 60, 1)', | |
| 'rgba(155, 89, 182, 1)' | |
| ], | |
| borderWidth: 1 | |
| }] | |
| }, | |
| options: { | |
| responsive: true, | |
| maintainAspectRatio: false, | |
| plugins: { | |
| legend: { | |
| position: 'bottom', | |
| labels: { | |
| color: '#f0f0f0', | |
| font: { | |
| size: 12 | |
| } | |
| } | |
| } | |
| } | |
| } | |
| }); | |
| // Focus chart | |
| const focusCtx = document.getElementById('focusChart').getContext('2d'); | |
| const focusChart = new Chart(focusCtx, { | |
| type: 'bar', | |
| data: { | |
| labels: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'], | |
| datasets: [{ | |
| label: 'Productive Blocks', | |
| data: [18, 22, 15, 20, 17, 8, 5], | |
| backgroundColor: 'rgba(255, 122, 0, 0.7)', | |
| borderColor: 'rgba(255, 122, 0, 1)', | |
| borderWidth: 1, | |
| borderRadius: 6 | |
| }] | |
| }, | |
| options: { | |
| responsive: true, | |
| maintainAspectRatio: false, | |
| scales: { | |
| y: { | |
| beginAtZero: true, | |
| grid: { | |
| color: 'rgba(255, 255, 255, 0.1)' | |
| }, | |
| ticks: { | |
| color: '#f0f0f0' | |
| } | |
| }, | |
| x: { | |
| grid: { | |
| display: false | |
| }, | |
| ticks: { | |
| color: '#f0f0f0' | |
| } | |
| } | |
| }, | |
| plugins: { | |
| legend: { | |
| display: false | |
| } | |
| } | |
| } | |
| }); | |
| // Navigation | |
| const navLinks = document.querySelectorAll('.nav-link'); | |
| navLinks.forEach(link => { | |
| link.addEventListener('click', function(e) { | |
| e.preventDefault(); | |
| navLinks.forEach(l => l.classList.remove('active')); | |
| this.classList.add('active'); | |
| // Scroll to section | |
| const targetId = this.getAttribute('href'); | |
| document.querySelector(targetId).scrollIntoView({ | |
| behavior: 'smooth' | |
| }); | |
| }); | |
| }); | |
| // Simulate modal opening after 5 seconds for demo | |
| setTimeout(() => { | |
| document.getElementById('prompt-modal').classList.remove('hidden'); | |
| }, 5000); | |
| }); | |
| </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=dolorestrd/focusely" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> | |
| </html> |