Download index.html from Bbkbless1/blessbbk: direct link, hf CLI and curl.
- Browser
- Download file 37.8 kB
-
https://huggingface.co/spaces/Bbkbless1/blessbbk/resolve/main/index.html
- Command line
-
hf download hf://spaces/Bbkbless1/blessbbk/index.html
-
curl -L -o index.html https://huggingface.co/spaces/Bbkbless1/blessbbk/resolve/main/index.html
37.8 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Mindful - Daily Tracker</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"> | |
| <style> | |
| @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap'); | |
| body { | |
| font-family: 'Poppins', sans-serif; | |
| background-color: #f8fafc; | |
| } | |
| .gradient-bg { | |
| background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); | |
| } | |
| .commandment-card:hover { | |
| transform: translateY(-5px); | |
| box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); | |
| } | |
| .habit-tracker { | |
| transition: all 0.3s ease; | |
| } | |
| .habit-tracker:hover { | |
| background-color: #f1f5f9; | |
| } | |
| .progress-ring__circle { | |
| transition: stroke-dashoffset 0.35s; | |
| transform: rotate(-90deg); | |
| transform-origin: 50% 50%; | |
| } | |
| .fade-in { | |
| animation: fadeIn 0.5s ease-in; | |
| } | |
| @keyframes fadeIn { | |
| from { opacity: 0; } | |
| to { opacity: 1; } | |
| } | |
| .quote-container::before { | |
| content: '"'; | |
| font-size: 4rem; | |
| position: absolute; | |
| top: -1rem; | |
| left: 0.5rem; | |
| color: rgba(255, 255, 255, 0.2); | |
| } | |
| .quote-container::after { | |
| content: '"'; | |
| font-size: 4rem; | |
| position: absolute; | |
| bottom: -3rem; | |
| right: 0.5rem; | |
| color: rgba(255, 255, 255, 0.2); | |
| } | |
| </style> | |
| </head> | |
| <body class="min-h-screen"> | |
| <!-- Header --> | |
| <header class="gradient-bg text-white shadow-lg"> | |
| <div class="container mx-auto px-4 py-6"> | |
| <div class="flex justify-between items-center"> | |
| <div class="flex items-center space-x-2"> | |
| <i class="fas fa-brain text-3xl"></i> | |
| <h1 class="text-2xl font-bold">Mindful</h1> | |
| </div> | |
| <div class="flex items-center space-x-4"> | |
| <button class="bg-white text-indigo-700 px-4 py-2 rounded-full font-medium hover:bg-indigo-100 transition"> | |
| <i class="fas fa-user mr-2"></i>Profile | |
| </button> | |
| <button id="theme-toggle" class="p-2 rounded-full bg-white bg-opacity-20 hover:bg-opacity-30"> | |
| <i class="fas fa-moon"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </header> | |
| <!-- Main Content --> | |
| <main class="container mx-auto px-4 py-8"> | |
| <!-- Dashboard Overview --> | |
| <section class="mb-12"> | |
| <div class="grid grid-cols-1 md:grid-cols-3 gap-6"> | |
| <!-- Daily Progress --> | |
| <div class="bg-white rounded-xl shadow-md p-6 flex items-center"> | |
| <div class="relative w-20 h-20 mr-4"> | |
| <svg class="progress-ring w-20 h-20" viewBox="0 0 100 100"> | |
| <circle class="progress-ring__circle stroke-indigo-100" stroke-width="8" fill="transparent" r="40" cx="50" cy="50"/> | |
| <circle class="progress-ring__circle stroke-indigo-600" stroke-width="8" stroke-dasharray="251.2" stroke-dashoffset="175.84" fill="transparent" r="40" cx="50" cy="50"/> | |
| </svg> | |
| <div class="absolute inset-0 flex items-center justify-center"> | |
| <span class="text-2xl font-bold text-indigo-700">70%</span> | |
| </div> | |
| </div> | |
| <div> | |
| <h3 class="text-gray-500 font-medium">Today's Progress</h3> | |
| <p class="text-2xl font-bold text-gray-800">7/10 tasks</p> | |
| <p class="text-sm text-gray-500">Keep going!</p> | |
| </div> | |
| </div> | |
| <!-- Current Streak --> | |
| <div class="bg-white rounded-xl shadow-md p-6 flex items-center"> | |
| <div class="bg-yellow-100 text-yellow-800 rounded-full w-16 h-16 flex items-center justify-center mr-4"> | |
| <i class="fas fa-fire text-3xl"></i> | |
| </div> | |
| <div> | |
| <h3 class="text-gray-500 font-medium">Current Streak</h3> | |
| <p class="text-2xl font-bold text-gray-800">14 days</p> | |
| <p class="text-sm text-gray-500">Don't break the chain!</p> | |
| </div> | |
| </div> | |
| <!-- Daily Quote --> | |
| <div class="bg-indigo-700 rounded-xl shadow-md p-6 text-white relative quote-container"> | |
| <p class="italic mb-2">"The secret of getting ahead is getting started."</p> | |
| <p class="text-right text-indigo-200">— Mark Twain</p> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Daily Habits Tracker --> | |
| <section class="mb-12"> | |
| <div class="flex justify-between items-center mb-6"> | |
| <h2 class="text-2xl font-bold text-gray-800">Daily Habits</h2> | |
| <button id="add-habit-btn" class="bg-indigo-600 text-white px-4 py-2 rounded-full hover:bg-indigo-700 transition flex items-center"> | |
| <i class="fas fa-plus mr-2"></i> Add Habit | |
| </button> | |
| </div> | |
| <div class="bg-white rounded-xl shadow-md overflow-hidden"> | |
| <div class="grid grid-cols-12 bg-gray-50 p-4 font-medium text-gray-500"> | |
| <div class="col-span-6">Habit</div> | |
| <div class="col-span-2 text-center">Frequency</div> | |
| <div class="col-span-2 text-center">Status</div> | |
| <div class="col-span-2 text-center">Actions</div> | |
| </div> | |
| <div id="habits-list"> | |
| <!-- Habit items will be added here dynamically --> | |
| <div class="grid grid-cols-12 p-4 border-b border-gray-100 habit-tracker"> | |
| <div class="col-span-6 flex items-center"> | |
| <div class="w-10 h-10 bg-blue-100 rounded-full flex items-center justify-center mr-3"> | |
| <i class="fas fa-book text-blue-600"></i> | |
| </div> | |
| <span class="font-medium">Read 30 minutes</span> | |
| </div> | |
| <div class="col-span-2 flex items-center justify-center"> | |
| <span class="bg-gray-100 px-3 py-1 rounded-full text-sm">Daily</span> | |
| </div> | |
| <div class="col-span-2 flex items-center justify-center"> | |
| <span class="bg-green-100 text-green-800 px-3 py-1 rounded-full text-sm">Completed</span> | |
| </div> | |
| <div class="col-span-2 flex items-center justify-center space-x-2"> | |
| <button class="p-2 text-gray-400 hover:text-indigo-600"> | |
| <i class="fas fa-edit"></i> | |
| </button> | |
| <button class="p-2 text-gray-400 hover:text-red-600"> | |
| <i class="fas fa-trash"></i> | |
| </button> | |
| </div> | |
| </div> | |
| <div class="grid grid-cols-12 p-4 border-b border-gray-100 habit-tracker"> | |
| <div class="col-span-6 flex items-center"> | |
| <div class="w-10 h-10 bg-purple-100 rounded-full flex items-center justify-center mr-3"> | |
| <i class="fas fa-running text-purple-600"></i> | |
| </div> | |
| <span class="font-medium">Morning Exercise</span> | |
| </div> | |
| <div class="col-span-2 flex items-center justify-center"> | |
| <span class="bg-gray-100 px-3 py-1 rounded-full text-sm">Daily</span> | |
| </div> | |
| <div class="col-span-2 flex items-center justify-center"> | |
| <span class="bg-yellow-100 text-yellow-800 px-3 py-1 rounded-full text-sm">Pending</span> | |
| </div> | |
| <div class="col-span-2 flex items-center justify-center space-x-2"> | |
| <button class="p-2 text-gray-400 hover:text-indigo-600"> | |
| <i class="fas fa-edit"></i> | |
| </button> | |
| <button class="p-2 text-gray-400 hover:text-red-600"> | |
| <i class="fas fa-trash"></i> | |
| </button> | |
| </div> | |
| </div> | |
| <div class="grid grid-cols-12 p-4 border-b border-gray-100 habit-tracker"> | |
| <div class="col-span-6 flex items-center"> | |
| <div class="w-10 h-10 bg-green-100 rounded-full flex items-center justify-center mr-3"> | |
| <i class="fas fa-pencil-alt text-green-600"></i> | |
| </div> | |
| <span class="font-medium">Journaling</span> | |
| </div> | |
| <div class="col-span-2 flex items-center justify-center"> | |
| <span class="bg-gray-100 px-3 py-1 rounded-full text-sm">Daily</span> | |
| </div> | |
| <div class="col-span-2 flex items-center justify-center"> | |
| <span class="bg-red-100 text-red-800 px-3 py-1 rounded-full text-sm">Missed</span> | |
| </div> | |
| <div class="col-span-2 flex items-center justify-center space-x-2"> | |
| <button class="p-2 text-gray-400 hover:text-indigo-600"> | |
| <i class="fas fa-edit"></i> | |
| </button> | |
| <button class="p-2 text-gray-400 hover:text-red-600"> | |
| <i class="fas fa-trash"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Commandments Section --> | |
| <section class="mb-12"> | |
| <div class="flex justify-between items-center mb-6"> | |
| <h2 class="text-2xl font-bold text-gray-800">Personal Commandments</h2> | |
| <button id="add-commandment-btn" class="bg-indigo-600 text-white px-4 py-2 rounded-full hover:bg-indigo-700 transition flex items-center"> | |
| <i class="fas fa-plus mr-2"></i> Add Commandment | |
| </button> | |
| </div> | |
| <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6"> | |
| <div class="bg-white rounded-xl shadow-md p-6 commandment-card transition duration-300"> | |
| <div class="flex items-start mb-4"> | |
| <div class="bg-indigo-100 text-indigo-800 rounded-full w-10 h-10 flex items-center justify-center mr-3"> | |
| <i class="fas fa-hand-holding-heart"></i> | |
| </div> | |
| <h3 class="text-lg font-bold text-gray-800">Be Kind</h3> | |
| </div> | |
| <p class="text-gray-600">Always treat others with kindness and compassion, even when it's difficult.</p> | |
| <div class="mt-4 flex justify-between items-center"> | |
| <span class="text-sm text-indigo-600"><i class="fas fa-calendar-alt mr-1"></i> Added 2 weeks ago</span> | |
| <div class="flex space-x-2"> | |
| <button class="text-gray-400 hover:text-indigo-600"> | |
| <i class="fas fa-edit"></i> | |
| </button> | |
| <button class="text-gray-400 hover:text-red-600"> | |
| <i class="fas fa-trash"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="bg-white rounded-xl shadow-md p-6 commandment-card transition duration-300"> | |
| <div class="flex items-start mb-4"> | |
| <div class="bg-green-100 text-green-800 rounded-full w-10 h-10 flex items-center justify-center mr-3"> | |
| <i class="fas fa-leaf"></i> | |
| </div> | |
| <h3 class="text-lg font-bold text-gray-800">Stay Present</h3> | |
| </div> | |
| <p class="text-gray-600">Focus on the current moment rather than dwelling on the past or worrying about the future.</p> | |
| <div class="mt-4 flex justify-between items-center"> | |
| <span class="text-sm text-indigo-600"><i class="fas fa-calendar-alt mr-1"></i> Added 1 month ago</span> | |
| <div class="flex space-x-2"> | |
| <button class="text-gray-400 hover:text-indigo-600"> | |
| <i class="fas fa-edit"></i> | |
| </button> | |
| <button class="text-gray-400 hover:text-red-600"> | |
| <i class="fas fa-trash"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="bg-white rounded-xl shadow-md p-6 commandment-card transition duration-300"> | |
| <div class="flex items-start mb-4"> | |
| <div class="bg-yellow-100 text-yellow-800 rounded-full w-10 h-10 flex items-center justify-center mr-3"> | |
| <i class="fas fa-brain"></i> | |
| </div> | |
| <h3 class="text-lg font-bold text-gray-800">Continuous Learning</h3> | |
| </div> | |
| <p class="text-gray-600">Dedicate time each day to learn something new and expand your knowledge.</p> | |
| <div class="mt-4 flex justify-between items-center"> | |
| <span class="text-sm text-indigo-600"><i class="fas fa-calendar-alt mr-1"></i> Added 3 days ago</span> | |
| <div class="flex space-x-2"> | |
| <button class="text-gray-400 hover:text-indigo-600"> | |
| <i class="fas fa-edit"></i> | |
| </button> | |
| <button class="text-gray-400 hover:text-red-600"> | |
| <i class="fas fa-trash"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Abilities Section --> | |
| <section> | |
| <div class="flex justify-between items-center mb-6"> | |
| <h2 class="text-2xl font-bold text-gray-800">Developing Abilities</h2> | |
| <button id="add-ability-btn" class="bg-indigo-600 text-white px-4 py-2 rounded-full hover:bg-indigo-700 transition flex items-center"> | |
| <i class="fas fa-plus mr-2"></i> Add Ability | |
| </button> | |
| </div> | |
| <div class="bg-white rounded-xl shadow-md overflow-hidden"> | |
| <div class="grid grid-cols-12 bg-gray-50 p-4 font-medium text-gray-500"> | |
| <div class="col-span-4">Ability</div> | |
| <div class="col-span-3">Current Level</div> | |
| <div class="col-span-3">Progress</div> | |
| <div class="col-span-2">Actions</div> | |
| </div> | |
| <div class="divide-y divide-gray-100"> | |
| <div class="grid grid-cols-12 p-4"> | |
| <div class="col-span-4 flex items-center"> | |
| <div class="w-10 h-10 bg-blue-100 rounded-full flex items-center justify-center mr-3"> | |
| <i class="fas fa-language text-blue-600"></i> | |
| </div> | |
| <span class="font-medium">Spanish</span> | |
| </div> | |
| <div class="col-span-3 flex items-center"> | |
| <span class="bg-blue-100 text-blue-800 px-3 py-1 rounded-full text-sm">Intermediate</span> | |
| </div> | |
| <div class="col-span-3 flex items-center"> | |
| <div class="w-full bg-gray-200 rounded-full h-2.5"> | |
| <div class="bg-blue-600 h-2.5 rounded-full" style="width: 45%"></div> | |
| </div> | |
| <span class="ml-2 text-sm text-gray-500">45%</span> | |
| </div> | |
| <div class="col-span-2 flex items-center justify-center space-x-2"> | |
| <button class="p-2 text-gray-400 hover:text-indigo-600"> | |
| <i class="fas fa-edit"></i> | |
| </button> | |
| <button class="p-2 text-gray-400 hover:text-red-600"> | |
| <i class="fas fa-trash"></i> | |
| </button> | |
| </div> | |
| </div> | |
| <div class="grid grid-cols-12 p-4"> | |
| <div class="col-span-4 flex items-center"> | |
| <div class="w-10 h-10 bg-purple-100 rounded-full flex items-center justify-center mr-3"> | |
| <i class="fas fa-guitar text-purple-600"></i> | |
| </div> | |
| <span class="font-medium">Guitar</span> | |
| </div> | |
| <div class="col-span-3 flex items-center"> | |
| <span class="bg-purple-100 text-purple-800 px-3 py-1 rounded-full text-sm">Beginner</span> | |
| </div> | |
| <div class="col-span-3 flex items-center"> | |
| <div class="w-full bg-gray-200 rounded-full h-2.5"> | |
| <div class="bg-purple-600 h-2.5 rounded-full" style="width: 20%"></div> | |
| </div> | |
| <span class="ml-2 text-sm text-gray-500">20%</span> | |
| </div> | |
| <div class="col-span-2 flex items-center justify-center space-x-2"> | |
| <button class="p-2 text-gray-400 hover:text-indigo-600"> | |
| <i class="fas fa-edit"></i> | |
| </button> | |
| <button class="p-2 text-gray-400 hover:text-red-600"> | |
| <i class="fas fa-trash"></i> | |
| </button> | |
| </div> | |
| </div> | |
| <div class="grid grid-cols-12 p-4"> | |
| <div class="col-span-4 flex items-center"> | |
| <div class="w-10 h-10 bg-green-100 rounded-full flex items-center justify-center mr-3"> | |
| <i class="fas fa-code text-green-600"></i> | |
| </div> | |
| <span class="font-medium">JavaScript</span> | |
| </div> | |
| <div class="col-span-3 flex items-center"> | |
| <span class="bg-green-100 text-green-800 px-3 py-1 rounded-full text-sm">Advanced</span> | |
| </div> | |
| <div class="col-span-3 flex items-center"> | |
| <div class="w-full bg-gray-200 rounded-full h-2.5"> | |
| <div class="bg-green-600 h-2.5 rounded-full" style="width: 75%"></div> | |
| </div> | |
| <span class="ml-2 text-sm text-gray-500">75%</span> | |
| </div> | |
| <div class="col-span-2 flex items-center justify-center space-x-2"> | |
| <button class="p-2 text-gray-400 hover:text-indigo-600"> | |
| <i class="fas fa-edit"></i> | |
| </button> | |
| <button class="p-2 text-gray-400 hover:text-red-600"> | |
| <i class="fas fa-trash"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| </main> | |
| <!-- Add Habit Modal --> | |
| <div id="habit-modal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden"> | |
| <div class="bg-white rounded-xl shadow-xl w-full max-w-md p-6 fade-in"> | |
| <div class="flex justify-between items-center mb-4"> | |
| <h3 class="text-xl font-bold text-gray-800">Add New Habit</h3> | |
| <button id="close-habit-modal" class="text-gray-400 hover:text-gray-600"> | |
| <i class="fas fa-times"></i> | |
| </button> | |
| </div> | |
| <form id="habit-form"> | |
| <div class="mb-4"> | |
| <label for="habit-name" class="block text-gray-700 font-medium mb-2">Habit Name</label> | |
| <input type="text" id="habit-name" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500" placeholder="e.g. Morning Meditation"> | |
| </div> | |
| <div class="mb-4"> | |
| <label for="habit-frequency" class="block text-gray-700 font-medium mb-2">Frequency</label> | |
| <select id="habit-frequency" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500"> | |
| <option value="daily">Daily</option> | |
| <option value="weekly">Weekly</option> | |
| <option value="monthly">Monthly</option> | |
| </select> | |
| </div> | |
| <div class="mb-4"> | |
| <label for="habit-icon" class="block text-gray-700 font-medium mb-2">Icon</label> | |
| <div class="grid grid-cols-5 gap-2"> | |
| <div class="flex items-center justify-center p-2 border rounded-lg cursor-pointer hover:bg-indigo-50"> | |
| <i class="fas fa-book text-gray-600"></i> | |
| </div> | |
| <div class="flex items-center justify-center p-2 border rounded-lg cursor-pointer hover:bg-indigo-50"> | |
| <i class="fas fa-running text-gray-600"></i> | |
| </div> | |
| <div class="flex items-center justify-center p-2 border rounded-lg cursor-pointer hover:bg-indigo-50"> | |
| <i class="fas fa-pencil-alt text-gray-600"></i> | |
| </div> | |
| <div class="flex items-center justify-center p-2 border rounded-lg cursor-pointer hover:bg-indigo-50"> | |
| <i class="fas fa-water text-gray-600"></i> | |
| </div> | |
| <div class="flex items-center justify-center p-2 border rounded-lg cursor-pointer hover:bg-indigo-50"> | |
| <i class="fas fa-bed text-gray-600"></i> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="flex justify-end space-x-3"> | |
| <button type="button" id="cancel-habit" class="px-4 py-2 border border-gray-300 rounded-lg text-gray-700 hover:bg-gray-50">Cancel</button> | |
| <button type="submit" class="px-4 py-2 bg-indigo-600 text-white rounded-lg hover:bg-indigo-700">Add Habit</button> | |
| </div> | |
| </form> | |
| </div> | |
| </div> | |
| <!-- Add Commandment Modal --> | |
| <div id="commandment-modal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden"> | |
| <div class="bg-white rounded-xl shadow-xl w-full max-w-md p-6 fade-in"> | |
| <div class="flex justify-between items-center mb-4"> | |
| <h3 class="text-xl font-bold text-gray-800">Add New Commandment</h3> | |
| <button id="close-commandment-modal" class="text-gray-400 hover:text-gray-600"> | |
| <i class="fas fa-times"></i> | |
| </button> | |
| </div> | |
| <form id="commandment-form"> | |
| <div class="mb-4"> | |
| <label for="commandment-title" class="block text-gray-700 font-medium mb-2">Title</label> | |
| <input type="text" id="commandment-title" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500" placeholder="e.g. Be Patient"> | |
| </div> | |
| <div class="mb-4"> | |
| <label for="commandment-description" class="block text-gray-700 font-medium mb-2">Description</label> | |
| <textarea id="commandment-description" rows="3" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500" placeholder="Describe your commandment..."></textarea> | |
| </div> | |
| <div class="mb-4"> | |
| <label for="commandment-icon" class="block text-gray-700 font-medium mb-2">Icon</label> | |
| <select id="commandment-icon" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500"> | |
| <option value="heart">Heart</option> | |
| <option value="brain">Mind</option> | |
| <option value="handshake">Kindness</option> | |
| <option value="balance-scale">Balance</option> | |
| <option value="clock">Patience</option> | |
| </select> | |
| </div> | |
| <div class="flex justify-end space-x-3"> | |
| <button type="button" id="cancel-commandment" class="px-4 py-2 border border-gray-300 rounded-lg text-gray-700 hover:bg-gray-50">Cancel</button> | |
| <button type="submit" class="px-4 py-2 bg-indigo-600 text-white rounded-lg hover:bg-indigo-700">Add Commandment</button> | |
| </div> | |
| </form> | |
| </div> | |
| </div> | |
| <!-- Add Ability Modal --> | |
| <div id="ability-modal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden"> | |
| <div class="bg-white rounded-xl shadow-xl w-full max-w-md p-6 fade-in"> | |
| <div class="flex justify-between items-center mb-4"> | |
| <h3 class="text-xl font-bold text-gray-800">Add New Ability</h3> | |
| <button id="close-ability-modal" class="text-gray-400 hover:text-gray-600"> | |
| <i class="fas fa-times"></i> | |
| </button> | |
| </div> | |
| <form id="ability-form"> | |
| <div class="mb-4"> | |
| <label for="ability-name" class="block text-gray-700 font-medium mb-2">Ability Name</label> | |
| <input type="text" id="ability-name" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500" placeholder="e.g. Playing Piano"> | |
| </div> | |
| <div class="mb-4"> | |
| <label for="ability-level" class="block text-gray-700 font-medium mb-2">Current Level</label> | |
| <select id="ability-level" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500"> | |
| <option value="beginner">Beginner</option> | |
| <option value="intermediate">Intermediate</option> | |
| <option value="advanced">Advanced</option> | |
| <option value="expert">Expert</option> | |
| </select> | |
| </div> | |
| <div class="mb-4"> | |
| <label for="ability-icon" class="block text-gray-700 font-medium mb-2">Icon</label> | |
| <div class="grid grid-cols-5 gap-2"> | |
| <div class="flex items-center justify-center p-2 border rounded-lg cursor-pointer hover:bg-indigo-50"> | |
| <i class="fas fa-language text-gray-600"></i> | |
| </div> | |
| <div class="flex items-center justify-center p-2 border rounded-lg cursor-pointer hover:bg-indigo-50"> | |
| <i class="fas fa-guitar text-gray-600"></i> | |
| </div> | |
| <div class="flex items-center justify-center p-2 border rounded-lg cursor-pointer hover:bg-indigo-50"> | |
| <i class="fas fa-code text-gray-600"></i> | |
| </div> | |
| <div class="flex items-center justify-center p-2 border rounded-lg cursor-pointer hover:bg-indigo-50"> | |
| <i class="fas fa-paint-brush text-gray-600"></i> | |
| </div> | |
| <div class="flex items-center justify-center p-2 border rounded-lg cursor-pointer hover:bg-indigo-50"> | |
| <i class="fas fa-chess text-gray-600"></i> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="flex justify-end space-x-3"> | |
| <button type="button" id="cancel-ability" class="px-4 py-2 border border-gray-300 rounded-lg text-gray-700 hover:bg-gray-50">Cancel</button> | |
| <button type="submit" class="px-4 py-2 bg-indigo-600 text-white rounded-lg hover:bg-indigo-700">Add Ability</button> | |
| </div> | |
| </form> | |
| </div> | |
| </div> | |
| <!-- Footer --> | |
| <footer class="bg-gray-50 border-t border-gray-200 mt-12"> | |
| <div class="container mx-auto px-4 py-8"> | |
| <div class="flex flex-col md:flex-row justify-between items-center"> | |
| <div class="flex items-center space-x-2 mb-4 md:mb-0"> | |
| <i class="fas fa-brain text-2xl text-indigo-600"></i> | |
| <span class="text-xl font-bold">Mindful</span> | |
| </div> | |
| <div class="flex space-x-6"> | |
| <a href="#" class="text-gray-600 hover:text-indigo-600">About</a> | |
| <a href="#" class="text-gray-600 hover:text-indigo-600">Features</a> | |
| <a href="#" class="text-gray-600 hover:text-indigo-600">Contact</a> | |
| <a href="#" class="text-gray-600 hover:text-indigo-600">Privacy</a> | |
| </div> | |
| </div> | |
| <div class="mt-8 text-center text-gray-500 text-sm"> | |
| <p>© 2023 Mindful. All rights reserved.</p> | |
| </div> | |
| </div> | |
| </footer> | |
| <script> | |
| // DOM Elements | |
| const themeToggle = document.getElementById('theme-toggle'); | |
| const addHabitBtn = document.getElementById('add-habit-btn'); | |
| const habitModal = document.getElementById('habit-modal'); | |
| const closeHabitModal = document.getElementById('close-habit-modal'); | |
| const cancelHabit = document.getElementById('cancel-habit'); | |
| const habitForm = document.getElementById('habit-form'); | |
| const addCommandmentBtn = document.getElementById('add-commandment-btn'); | |
| const commandmentModal = document.getElementById('commandment-modal'); | |
| const closeCommandmentModal = document.getElementById('close-commandment-modal'); | |
| const cancelCommandment = document.getElementById('cancel-commandment'); | |
| const commandmentForm = document.getElementById('commandment-form'); | |
| const addAbilityBtn = document.getElementById('add-ability-btn'); | |
| const abilityModal = document.getElementById('ability-modal'); | |
| const closeAbilityModal = document.getElementById('close-ability-modal'); | |
| const cancelAbility = document.getElementById('cancel-ability'); | |
| const abilityForm = document.getElementById('ability-form'); | |
| // Theme Toggle | |
| themeToggle.addEventListener('click', () => { | |
| document.documentElement.classList.toggle('dark'); | |
| const isDark = document.documentElement.classList.contains('dark'); | |
| if (isDark) { | |
| themeToggle.innerHTML = '<i class="fas fa-sun"></i>'; | |
| localStorage.setItem('theme', 'dark'); | |
| } else { | |
| themeToggle.innerHTML = '<i class="fas fa-moon"></i>'; | |
| localStorage.setItem('theme', 'light'); | |
| } | |
| }); | |
| // Check for saved theme preference | |
| if (localStorage.getItem('theme') === 'dark') { | |
| document.documentElement.classList.add('dark'); | |
| themeToggle.innerHTML = '<i class="fas fa-sun"></i>'; | |
| } | |
| // Habit Modal | |
| addHabitBtn.addEventListener('click', () => { | |
| habitModal.classList.remove('hidden'); | |
| }); | |
| closeHabitModal.addEventListener('click', () => { | |
| habitModal.classList.add('hidden'); | |
| }); | |
| cancelHabit.addEventListener('click', () => { | |
| habitModal.classList.add('hidden'); | |
| }); | |
| habitForm.addEventListener('submit', (e) => { | |
| e.preventDefault(); | |
| // Here you would handle form submission (e.g., add to habits list) | |
| habitModal.classList.add('hidden'); | |
| habitForm.reset(); | |
| // Show success message | |
| alert('Habit added successfully!'); | |
| }); | |
| // Commandment Modal | |
| addCommandmentBtn.addEventListener('click', () => { | |
| commandmentModal.classList.remove('hidden'); | |
| }); | |
| closeCommandmentModal.addEventListener('click', () => { | |
| commandmentModal.classList.add('hidden'); | |
| }); | |
| cancelCommandment.addEventListener('click', () => { | |
| commandmentModal.classList.add('hidden'); | |
| }); | |
| commandmentForm.addEventListener('submit', (e) => { | |
| e.preventDefault(); | |
| // Here you would handle form submission (e.g., add to commandments list) | |
| commandmentModal.classList.add('hidden'); | |
| commandmentForm.reset(); | |
| // Show success message | |
| alert('Commandment added successfully!'); | |
| }); | |
| // Ability Modal | |
| addAbilityBtn.addEventListener('click', () => { | |
| abilityModal.classList.remove('hidden'); | |
| }); | |
| closeAbilityModal.addEventListener('click', () => { | |
| abilityModal.classList.add('hidden'); | |
| }); | |
| cancelAbility.addEventListener('click', () => { | |
| abilityModal.classList.add('hidden'); | |
| }); | |
| abilityForm.addEventListener('submit', (e) => { | |
| e.preventDefault(); | |
| // Here you would handle form submission (e.g., add to abilities list) | |
| abilityModal.classList.add('hidden'); | |
| abilityForm.reset(); | |
| // Show success message | |
| alert('Ability added successfully!'); | |
| }); | |
| // Close modals when clicking outside | |
| window.addEventListener('click', (e) => { | |
| if (e.target === habitModal) { | |
| habitModal.classList.add('hidden'); | |
| } | |
| if (e.target === commandmentModal) { | |
| commandmentModal.classList.add('hidden'); | |
| } | |
| if (e.target === abilityModal) { | |
| abilityModal.classList.add('hidden'); | |
| } | |
| }); | |
| // Update progress ring animation | |
| document.addEventListener('DOMContentLoaded', () => { | |
| const circle = document.querySelector('.progress-ring__circle'); | |
| const radius = circle.r.baseVal.value; | |
| const circumference = radius * 2 * Math.PI; | |
| circle.style.strokeDasharray = circumference; | |
| circle.style.strokeDashoffset = circumference - (70 / 100) * circumference; | |
| }); | |
| </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=Bbkbless1/blessbbk" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> | |
| </html> |