Spaces:
Running
Running
Le header et le footer n'est pas designer.
Browse filesFiles changed (5)
- components/footer.js+348-18
- components/navbar.js+388-58
- focus.html+2-3
- index.html+2-3
- tasks.html+2-3
12345678910111213141516171819202122232425262728293031323334353637382 unmodified lines41424344class FlowFooter extends HTMLElement {connectedCallback() {this.attachShadow({ mode: 'open' });this.shadowRoot.innerHTML = `<style>:host {display: block;}a {text-decoration: none;transition: color 0.2s;}a:hover {color: #10b981;}</style><footer class="bg-white dark:bg-gray-800 border-t border-gray-200 dark:border-gray-700 mt-12"><div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8"><div class="flex flex-col md:flex-row justify-between items-center gap-4"><div class="flex items-center gap-2"><span class="text-xl font-bold text-gray-800 dark:text-white"><span class="text-primary-500">Flow</span>State</span><span class="text-sm text-gray-500">© 2024</span></div><div class="flex items-center gap-6 text-sm text-gray-600 dark:text-gray-400"><a href="index.html">Dashboard</a><a href="tasks.html">Tasks</a><a href="focus.html">Focus</a></div><div class="text-sm text-gray-500 dark:text-gray-500">Stay productive, stay focused</div></div></div>2 unmodified lines}}customElements.define('flow-footer', FlowFooter);1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673682 unmodified lines371372373374class FlowFooter extends HTMLElement {connectedCallback() {this.attachShadow({ mode: 'open' });this.shadowRoot.innerHTML = `<style>@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');:host {display: block;font-family: 'Inter', sans-serif;}* {margin: 0;padding: 0;box-sizing: border-box;}.footer {background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(249,250,251,1) 100%);border-top: 1px solid rgba(229, 231, 235, 0.5);margin-top: 4rem;position: relative;overflow: hidden;}.dark .footer {background: linear-gradient(180deg, rgba(17,24,39,0) 0%, rgba(17,24,39,1) 100%);border-top: 1px solid rgba(55, 65, 81, 0.5);}.footer::before {content: '';position: absolute;top: 0;left: 0;right: 0;height: 1px;background: linear-gradient(90deg, transparent 0%, #10b981 50%, transparent 100%);opacity: 0.5;}.container {max-width: 1280px;margin: 0 auto;padding: 4rem 1.5rem 2rem;position: relative;z-index: 1;}.footer-grid {display: grid;grid-template-columns: 2fr 1fr 1fr 1fr;gap: 3rem;margin-bottom: 3rem;}@media (max-width: 968px) {.footer-grid {grid-template-columns: 1fr 1fr;gap: 2rem;}}@media (max-width: 640px) {.footer-grid {grid-template-columns: 1fr;gap: 2rem;}}.brand-section {max-width: 300px;}.logo {display: flex;align-items: center;gap: 0.75rem;text-decoration: none;font-size: 1.5rem;font-weight: 700;color: #111827;margin-bottom: 1rem;}.dark .logo {color: #f9fafb;}.logo-icon {width: 36px;height: 36px;background: linear-gradient(135deg, #10b981 0%, #059669 100%);border-radius: 10px;display: flex;align-items: center;justify-content: center;}.logo-text-primary {background: linear-gradient(135deg, #10b981 0%, #059669 100%);-webkit-background-clip: text;-webkit-text-fill-color: transparent;background-clip: text;}.tagline {color: #6b7280;font-size: 0.875rem;line-height: 1.6;margin-bottom: 1.5rem;}.dark .tagline {color: #9ca3af;}.social-links {display: flex;gap: 0.75rem;}.social-link {width: 36px;height: 36px;border-radius: 10px;background: rgba(243, 244, 246, 0.8);border: 1px solid rgba(229, 231, 235, 0.5);display: flex;align-items: center;justify-content: center;color: #6b7280;transition: all 0.3s ease;cursor: pointer;}.dark .social-link {background: rgba(31, 41, 55, 0.8);border-color: rgba(75, 85, 99, 0.5);color: #9ca3af;}.social-link:hover {background: #10b981;border-color: #10b981;color: white;transform: translateY(-2px);box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);}.social-link svg {width: 18px;height: 18px;}.links-column h4 {font-size: 0.875rem;font-weight: 600;color: #111827;text-transform: uppercase;letter-spacing: 0.05em;margin-bottom: 1rem;}.dark .links-column h4 {color: #f9fafb;}.links-list {list-style: none;}.links-list li {margin-bottom: 0.75rem;}.links-list a {color: #6b7280;text-decoration: none;font-size: 0.875rem;display: flex;align-items: center;gap: 0.5rem;transition: all 0.2s ease;width: fit-content;}.dark .links-list a {color: #9ca3af;}.links-list a:hover {color: #10b981;transform: translateX(4px);}.links-list a::before {content: '';width: 0;height: 2px;background: #10b981;transition: width 0.2s ease;border-radius: 2px;}.links-list a:hover::before {width: 12px;}.footer-bottom {border-top: 1px solid rgba(229, 231, 235, 0.5);padding-top: 2rem;display: flex;justify-content: space-between;align-items: center;flex-wrap: wrap;gap: 1rem;}.dark .footer-bottom {border-top-color: rgba(75, 85, 99, 0.5);}.copyright {color: #9ca3af;font-size: 0.875rem;}.made-with {display: flex;align-items: center;gap: 0.5rem;color: #6b7280;font-size: 0.875rem;}.dark .made-with {color: #9ca3af;}.heart {color: #ef4444;animation: pulse 1.5s ease-in-out infinite;display: inline-block;}@keyframes pulse {0%, 100% { transform: scale(1); }50% { transform: scale(1.1); }}.status-badge {display: inline-flex;align-items: center;gap: 0.5rem;padding: 0.375rem 0.875rem;background: rgba(16, 185, 129, 0.1);border: 1px solid rgba(16, 185, 129, 0.2);border-radius: 20px;font-size: 0.75rem;font-weight: 500;color: #059669;}.dark .status-badge {background: rgba(16, 185, 129, 0.2);border-color: rgba(16, 185, 129, 0.3);color: #34d399;}.status-dot {width: 6px;height: 6px;background: #10b981;border-radius: 50%;animation: pulse-dot 2s ease-in-out infinite;}@keyframes pulse-dot {0%, 100% { opacity: 1; }50% { opacity: 0.5; }}</style><footer class="footer"><div class="container"><div class="footer-grid"><div class="brand-section"><a href="index.html" class="logo"><div class="logo-icon"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5"/></svg></div><span><span class="logo-text-primary">Flow</span>State</span></a><p class="tagline">Stay productive, stay focused. Your personal productivity companion for managing tasks and achieving deep work.</p><div class="social-links"><a href="#" class="social-link" aria-label="Twitter"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M23 3a10.9 10.9 0 0 1-3.14 1.53 4.48 4.48 0 0 0-7.86 3v1A10.66 10.66 0 0 1 3 4s-4 9 5 13a11.64 11.64 0 0 1-7 2c9 5 20 0 20-11.5a4.5 4.5 0 0 0-.08-.83A7.72 7.72 0 0 0 23 3z"/></svg></a><a href="#" class="social-link" aria-label="GitHub"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22"/></svg></a><a href="#" class="social-link" aria-label="LinkedIn"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z"/><rect x="2" y="9" width="4" height="12"/><circle cx="4" cy="4" r="2"/></svg></a></div></div><div class="links-column"><h4>Product</h4><ul class="links-list"><li><a href="index.html">Dashboard</a></li><li><a href="tasks.html">Tasks</a></li><li><a href="focus.html">Focus Mode</a></li><li><a href="#">Analytics</a></li></ul></div><div class="links-column"><h4>Resources</h4><ul class="links-list"><li><a href="#">Documentation</a></li><li><a href="#">Help Center</a></li><li><a href="#">Keyboard Shortcuts</a></li><li><a href="#">What's New</a></li></ul></div><div class="links-column"><h4>Company</h4><ul class="links-list"><li><a href="#">About</a></li><li><a href="#">Contact</a></li><li><a href="#">Privacy</a></li><li><a href="#">Terms</a></li></ul></div></div><div class="footer-bottom"><div class="copyright">© 2024 FlowState. All rights reserved.</div><div class="status-badge"><span class="status-dot"></span>All systems operational</div><div class="made-with">Made with <span class="heart">❤️</span> for productivity</div></div></div>2 unmodified lines}}customElements.define('flow-footer', FlowFooter);
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138class FlowNavbar extends HTMLElement {connectedCallback() {this.attachShadow({ mode: 'open' });this.shadowRoot.innerHTML = `<style>:host {display: block;}.navbar {position: fixed;top: 0;left: 0;right: 0;z-index: 50;background: rgba(255, 255, 255, 0.8);backdrop-filter: blur(12px);border-bottom: 1px solid rgba(0, 0, 0, 0.1);}.dark .navbar {background: rgba(17, 24, 39, 0.8);border-bottom: 1px solid rgba(255, 255, 255, 0.1);}.nav-link {position: relative;padding: 0.5rem 1rem;border-radius: 0.5rem;transition: all 0.3s;color: #4b5563;text-decoration: none;}.dark .nav-link {color: #9ca3af;}.nav-link:hover {background-color: rgba(16, 185, 129, 0.1);color: #059669;}.nav-link.active {color: #059669;font-weight: 600;}.dark .nav-link.active {color: #34d399;}.nav-link.active::after {content: '';position: absolute;bottom: -2px;left: 50%;transform: translateX(-50%);width: 20px;height: 3px;background: #10b981;border-radius: 2px;}.mobile-menu {display: none;}.menu-open .mobile-menu {display: block;}@media (max-width: 768px) {.desktop-menu {display: none;}}</style><nav class="navbar"><div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"><div class="flex justify-between h-16 items-center"><a href="index.html" class="flex items-center gap-2 text-2xl font-bold text-gray-800 dark:text-white hover:scale-105 transition-transform"><span class="text-primary-500">Flow</span>State<span class="text-2xl">🧠</span></a><div class="desktop-menu flex items-center gap-1"><a href="index.html" class="nav-link" data-page="index">Dashboard</a><a href="tasks.html" class="nav-link" data-page="tasks">Tasks</a><a href="focus.html" class="nav-link" data-page="focus">Focus</a><button id="theme-toggle" class="ml-4 p-2 rounded-lg hover:bg-gray-100 dark:hover:bg-gray-800 transition-colors" title="Toggle theme"><svg class="w-5 h-5 hidden dark:block text-yellow-400" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z"></path></svg><svg class="w-5 h-5 block dark:hidden text-gray-600" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z"></path></svg></button></div><button id="mobile-menu-btn" class="md:hidden p-2 rounded-lg hover:bg-gray-100 dark:hover:bg-gray-800"><svg class="w-6 h-6 dark:text-white" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16"></path></svg></button></div><div class="mobile-menu pb-4 md:hidden"><a href="index.html" class="block px-4 py-2 rounded-lg hover:bg-gray-100 dark:hover:bg-gray-800 dark:text-gray-300">Dashboard</a><a href="tasks.html" class="block px-4 py-2 rounded-lg hover:bg-gray-100 dark:hover:bg-gray-800 dark:text-gray-300">Tasks</a><a href="focus.html" class="block px-4 py-2 rounded-lg hover:bg-gray-100 dark:hover:bg-gray-800 dark:text-gray-300">Focus</a><button id="mobile-theme-toggle" class="w-full text-left px-4 py-2 rounded-lg hover:bg-gray-100 dark:hover:bg-gray-800 dark:text-gray-300 flex items-center gap-2"><span>Toggle Theme</span></button></div></div></nav>`;// Theme toggleconst themeBtn = this.shadowRoot.getElementById('theme-toggle');const mobileThemeBtn = this.shadowRoot.getElementById('mobile-theme-toggle');const toggleTheme = () => {const isDark = document.documentElement.classList.toggle('dark');localStorage.setItem('theme', isDark ? 'dark' : 'light');};themeBtn?.addEventListener('click', toggleTheme);mobileThemeBtn?.addEventListener('click', toggleTheme);// Mobile menu toggleconst menuBtn = this.shadowRoot.getElementById('mobile-menu-btn');menuBtn?.addEventListener('click', () => {this.shadowRoot.querySelector('.navbar').classList.toggle('menu-open');});// Set active nav linkconst currentPage = window.location.pathname.split('/').pop().replace('.html', '') || 'index';const activeLink = this.shadowRoot.querySelector(`[data-page="${currentPage}"]`);if (activeLink) {activeLink.classList.add('active');}}}customElements.define('flow-navbar', FlowNavbar);123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468class FlowNavbar extends HTMLElement {connectedCallback() {this.attachShadow({ mode: 'open' });this.shadowRoot.innerHTML = `<style>@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');:host {display: block;font-family: 'Inter', sans-serif;}* {margin: 0;padding: 0;box-sizing: border-box;}.navbar {position: fixed;top: 0;left: 0;right: 0;z-index: 50;background: rgba(255, 255, 255, 0.85);backdrop-filter: blur(20px) saturate(180%);-webkit-backdrop-filter: blur(20px) saturate(180%);border-bottom: 1px solid rgba(255, 255, 255, 0.3);box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);}.dark .navbar {background: rgba(17, 24, 39, 0.85);border-bottom: 1px solid rgba(255, 255, 255, 0.05);box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);}.nav-container {max-width: 1280px;margin: 0 auto;padding: 0 1.5rem;height: 80px;display: flex;justify-content: space-between;align-items: center;}.logo {display: flex;align-items: center;gap: 0.75rem;text-decoration: none;font-size: 1.5rem;font-weight: 700;color: #111827;transition: transform 0.3s ease;}.dark .logo {color: #f9fafb;}.logo:hover {transform: scale(1.02);}.logo-icon {width: 40px;height: 40px;background: linear-gradient(135deg, #10b981 0%, #059669 100%);border-radius: 12px;display: flex;align-items: center;justify-content: center;box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);}.logo-text-primary {background: linear-gradient(135deg, #10b981 0%, #059669 100%);-webkit-background-clip: text;-webkit-text-fill-color: transparent;background-clip: text;}.desktop-menu {display: flex;align-items: center;gap: 2rem;}.nav-links {display: flex;align-items: center;gap: 0.5rem;background: rgba(243, 244, 246, 0.8);padding: 0.5rem;border-radius: 16px;border: 1px solid rgba(229, 231, 235, 0.5);}.dark .nav-links {background: rgba(31, 41, 55, 0.8);border: 1px solid rgba(75, 85, 99, 0.5);}.nav-link {position: relative;padding: 0.625rem 1.25rem;border-radius: 12px;font-size: 0.875rem;font-weight: 500;color: #6b7280;text-decoration: none;transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);display: flex;align-items: center;gap: 0.5rem;}.dark .nav-link {color: #9ca3af;}.nav-link:hover {color: #059669;background: rgba(16, 185, 129, 0.1);transform: translateY(-1px);}.nav-link.active {color: #fff;background: linear-gradient(135deg, #10b981 0%, #059669 100%);box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);}.dark .nav-link.active {color: #fff;}.nav-link svg {width: 16px;height: 16px;}.actions {display: flex;align-items: center;gap: 1rem;}.theme-toggle {width: 44px;height: 44px;border-radius: 12px;border: 1px solid rgba(229, 231, 235, 0.8);background: rgba(255, 255, 255, 0.8);cursor: pointer;display: flex;align-items: center;justify-content: center;transition: all 0.3s ease;color: #6b7280;}.dark .theme-toggle {border-color: rgba(75, 85, 99, 0.8);background: rgba(31, 41, 55, 0.8);color: #d1d5db;}.theme-toggle:hover {transform: rotate(15deg) scale(1.1);border-color: #10b981;color: #10b981;box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);}.mobile-menu-btn {display: none;width: 44px;height: 44px;border-radius: 12px;border: 1px solid rgba(229, 231, 235, 0.8);background: rgba(255, 255, 255, 0.8);cursor: pointer;align-items: center;justify-content: center;color: #374151;transition: all 0.3s ease;}.dark .mobile-menu-btn {border-color: rgba(75, 85, 99, 0.8);background: rgba(31, 41, 55, 0.8);color: #e5e7eb;}.mobile-menu {display: none;position: absolute;top: 100%;left: 0;right: 0;background: rgba(255, 255, 255, 0.98);backdrop-filter: blur(20px);border-bottom: 1px solid rgba(229, 231, 235, 0.5);padding: 1.5rem;transform: translateY(-100%);opacity: 0;transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);pointer-events: none;box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);}.dark .mobile-menu {background: rgba(17, 24, 39, 0.98);border-bottom: 1px solid rgba(75, 85, 99, 0.5);}.menu-open .mobile-menu {transform: translateY(0);opacity: 1;pointer-events: auto;}.mobile-nav-link {display: flex;align-items: center;gap: 0.75rem;padding: 1rem;border-radius: 12px;color: #4b5563;text-decoration: none;font-weight: 500;margin-bottom: 0.5rem;transition: all 0.2s ease;}.dark .mobile-nav-link {color: #d1d5db;}.mobile-nav-link:hover {background: rgba(16, 185, 129, 0.1);color: #059669;}.mobile-nav-link.active {background: linear-gradient(135deg, #10b981 0%, #059669 100%);color: white;}.mobile-theme-toggle {width: 100%;padding: 1rem;border-radius: 12px;border: 1px dashed rgba(209, 213, 219, 0.8);background: transparent;color: #4b5563;font-weight: 500;cursor: pointer;display: flex;align-items: center;justify-content: center;gap: 0.75rem;margin-top: 0.5rem;transition: all 0.2s ease;}.dark .mobile-theme-toggle {border-color: rgba(75, 85, 99, 0.8);color: #d1d5db;}.mobile-theme-toggle:hover {border-color: #10b981;color: #10b981;background: rgba(16, 185, 129, 0.05);}@media (max-width: 768px) {.desktop-menu {display: none;}.mobile-menu-btn {display: flex;}.mobile-menu {display: block;}.nav-container {height: 72px;}}.mobile-menu-btn.active {background: #10b981;color: white;border-color: #10b981;}</style><nav class="navbar"><div class="nav-container"><a href="index.html" class="logo"><div class="logo-icon"><svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5"/></svg></div><span><span class="logo-text-primary">Flow</span>State</span></a><div class="desktop-menu"><div class="nav-links"><a href="index.html" class="nav-link" data-page="index"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="7" height="7"/><rect x="14" y="3" width="7" height="7"/><rect x="14" y="14" width="7" height="7"/><rect x="3" y="14" width="7" height="7"/></svg>Dashboard</a><a href="tasks.html" class="nav-link" data-page="tasks"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M9 11l3 3L22 4"/><path d="M21 12v7a2 2 0 01-2 2H5a2 2 0 01-2-2V5a2 2 0 012-2h11"/></svg>Tasks</a><a href="focus.html" class="nav-link" data-page="focus"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><polygon points="12 6 12 12 16 14"/></svg>Focus</a></div><div class="actions"><button class="theme-toggle" id="theme-toggle" title="Toggle theme"><svg class="sun-icon" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="5"/><line x1="12" y1="1" x2="12" y2="3"/><line x1="12" y1="21" x2="12" y2="23"/><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"/><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"/><line x1="1" y1="12" x2="3" y2="12"/><line x1="21" y1="12" x2="23" y2="12"/><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"/><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"/></svg></button></div></div><button class="mobile-menu-btn" id="mobile-menu-btn"><svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="3" y1="12" x2="21" y2="12"/><line x1="3" y1="6" x2="21" y2="6"/><line x1="3" y1="18" x2="21" y2="18"/></svg></button></div><div class="mobile-menu"><a href="index.html" class="mobile-nav-link" data-page-mobile="index"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="7" height="7"/><rect x="14" y="3" width="7" height="7"/><rect x="14" y="14" width="7" height="7"/><rect x="3" y="14" width="7" height="7"/></svg>Dashboard</a><a href="tasks.html" class="mobile-nav-link" data-page-mobile="tasks"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M9 11l3 3L22 4"/><path d="M21 12v7a2 2 0 01-2 2H5a2 2 0 01-2-2V5a2 2 0 012-2h11"/></svg>Tasks</a><a href="focus.html" class="mobile-nav-link" data-page-mobile="focus"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><polygon points="12 6 12 12 16 14"/></svg>Focus</a><button class="mobile-theme-toggle" id="mobile-theme-toggle"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="5"/><line x1="12" y1="1" x2="12" y2="3"/><line x1="12" y1="21" x2="12" y2="23"/><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"/><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"/><line x1="1" y1="12" x2="3" y2="12"/><line x1="21" y1="12" x2="23" y2="12"/><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"/><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"/></svg>Toggle Theme</button></div></nav>`;// Theme toggle logicconst themeBtn = this.shadowRoot.getElementById('theme-toggle');const mobileThemeBtn = this.shadowRoot.getElementById('mobile-theme-toggle');const toggleTheme = () => {const isDark = document.documentElement.classList.toggle('dark');localStorage.setItem('theme', isDark ? 'dark' : 'light');updateThemeIcon(isDark);};const updateThemeIcon = (isDark) => {const svg = isDark ?'<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"/></svg>' :'<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="5"/><line x1="12" y1="1" x2="12" y2="3"/><line x1="12" y1="21" x2="12" y2="23"/><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"/><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"/><line x1="1" y1="12" x2="3" y2="12"/><line x1="21" y1="12" x2="23" y2="12"/><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"/><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"/></svg>';themeBtn.innerHTML = svg;};themeBtn?.addEventListener('click', toggleTheme);mobileThemeBtn?.addEventListener('click', toggleTheme);// Set initial iconconst isDark = document.documentElement.classList.contains('dark');updateThemeIcon(isDark);// Mobile menu toggleconst menuBtn = this.shadowRoot.getElementById('mobile-menu-btn');const navbar = this.shadowRoot.querySelector('.navbar');menuBtn?.addEventListener('click', () => {navbar.classList.toggle('menu-open');menuBtn.classList.toggle('active');});// Close mobile menu on link clickthis.shadowRoot.querySelectorAll('.mobile-nav-link').forEach(link => {link.addEventListener('click', () => {navbar.classList.remove('menu-open');menuBtn.classList.remove('active');});});// Set active nav linkconst currentPage = window.location.pathname.split('/').pop().replace('.html', '') || 'index';const activeLink = this.shadowRoot.querySelector(`[data-page="${currentPage}"]`);const activeMobileLink = this.shadowRoot.querySelector(`[data-page-mobile="${currentPage}"]`);if (activeLink) {activeLink.classList.add('active');}if (activeMobileLink) {activeMobileLink.classList.add('active');}}}customElements.define('flow-navbar', FlowNavbar);
38 unmodified lines39404142434445464738 unmodified lines</head><body class="bg-gray-50 dark:bg-gray-900 text-gray-800 dark:text-gray-100 transition-colors duration-300"><flow-navbar></flow-navbar><main class="pt-24 pb-12 px-4 sm:px-6 lg:px-8 max-w-5xl mx-auto"><div class="text-center mb-12"><h1 class="text-4xl font-bold mb-4">Focus Mode</h1><p class="text-gray-600 dark:text-gray-400 text-lg">Stay in the zone with the Pomodoro technique</p></div>38 unmodified lines394041424344454638 unmodified lines</head><body class="bg-gray-50 dark:bg-gray-900 text-gray-800 dark:text-gray-100 transition-colors duration-300"><flow-navbar></flow-navbar><main class="pt-28 pb-12 px-4 sm:px-6 lg:px-8 max-w-5xl mx-auto"><div class="text-center mb-12"><h1 class="text-4xl font-bold mb-4">Focus Mode</h1><p class="text-gray-600 dark:text-gray-400 text-lg">Stay in the zone with the Pomodoro technique</p></div>
45 unmodified lines46474849505152535445 unmodified lines</head><body class="bg-gray-50 dark:bg-gray-900 text-gray-800 dark:text-gray-100 transition-colors duration-300"><flow-navbar></flow-navbar><main class="pt-24 pb-12 px-4 sm:px-6 lg:px-8 max-w-7xl mx-auto"><!-- Hero Section --><div class="mb-12 relative overflow-hidden rounded-3xl bg-gradient-to-br from-primary-500 to-secondary-600 p-8 sm:p-12 text-white shadow-2xl"><div class="absolute top-0 right-0 -mt-16 -mr-16 w-64 h-64 bg-white opacity-10 rounded-full blur-3xl"></div><div class="absolute bottom-0 left-0 -mb-16 -ml-16 w-48 h-48 bg-white opacity-10 rounded-full blur-2xl"></div>45 unmodified lines464748495051525345 unmodified lines</head><body class="bg-gray-50 dark:bg-gray-900 text-gray-800 dark:text-gray-100 transition-colors duration-300"><flow-navbar></flow-navbar><main class="pt-28 pb-12 px-4 sm:px-6 lg:px-8 max-w-7xl mx-auto"><!-- Hero Section --><div class="mb-12 relative overflow-hidden rounded-3xl bg-gradient-to-br from-primary-500 to-secondary-600 p-8 sm:p-12 text-white shadow-2xl"><div class="absolute top-0 right-0 -mt-16 -mr-16 w-64 h-64 bg-white opacity-10 rounded-full blur-3xl"></div><div class="absolute bottom-0 left-0 -mb-16 -ml-16 w-48 h-48 bg-white opacity-10 rounded-full blur-2xl"></div>
34 unmodified lines35363738394041424334 unmodified lines</head><body class="bg-gray-50 dark:bg-gray-900 text-gray-800 dark:text-gray-100 transition-colors duration-300"><flow-navbar></flow-navbar><main class="pt-24 pb-12 px-4 sm:px-6 lg:px-8 max-w-7xl mx-auto"><!-- Header Controls --><div class="flex flex-col sm:flex-row justify-between items-start sm:items-center mb-8 gap-4"><div><h1 class="text-3xl font-bold mb-2">My Tasks</h1>34 unmodified lines353637383940414234 unmodified lines</head><body class="bg-gray-50 dark:bg-gray-900 text-gray-800 dark:text-gray-100 transition-colors duration-300"><flow-navbar></flow-navbar><main class="pt-28 pb-12 px-4 sm:px-6 lg:px-8 max-w-7xl mx-auto"><!-- Header Controls --><div class="flex flex-col sm:flex-row justify-between items-start sm:items-center mb-8 gap-4"><div><h1 class="text-3xl font-bold mb-2">My Tasks</h1>
components/footer.js+348-18
components/navbar.js+388-58
focus.html+2-3
index.html+2-3
tasks.html+2-3