mirror of
https://github.com/R0m1k3/podcastic.git
synced 2026-10-23 06:58:03 +02:00
feat: light/dark theme (cream+gold+grey), reduced radii, stagger animations, search fallback
- globals.css: full dual-theme system via .light-theme/.dark-theme classes
→ Dark: deep navy with indigo/cyan glow gradients
→ Light: warm cream #f7f3eb with gold top-left & grey bottom-right gradients
→ Radius tokens: --radius-card 1rem, --radius-panel 1.25rem (sharper cards)
→ New animations: float, scale-in, shimmer skeleton, ping-slow, spin-slow,
glow-beat, gold-shimmer + stagger-grid cascade (up to 20 items)
- tailwind.config.js: reduce 2xl/3xl/4xl radii to match CSS vars; add accent-gold
- Navigation.tsx: add Sun/Moon toggle button using useTheme()
- Dashboard.tsx: shimmer skeletons, stagger-grid on episode grid
- Trending.tsx: stagger-grid on podcast grid
- podcastController.ts: iTunes search fallback → local DB regex search
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e649a16620
commit
a3225cb4c4
6 files changed
+265
-104
No files matched your search
@@ -1,8 +1,10 @@
|
||||
import { Link, useLocation } from 'react-router-dom';
|
||||
import { Home, Flame, PlusCircle, Library } from 'lucide-react';
|
||||
import { Home, Flame, PlusCircle, Library, Sun, Moon } from 'lucide-react';
|
||||
import { useTheme } from '../context/ThemeContext';
|
||||
|
||||
export default function Navigation() {
|
||||
const location = useLocation();
|
||||
const { theme, toggleTheme } = useTheme();
|
||||
|
||||
const isActive = (path: string) => location.pathname === path;
|
||||
|
||||
@@ -53,9 +55,23 @@ export default function Navigation() {
|
||||
})}
|
||||
</div>
|
||||
|
||||
{/* Footer */}
|
||||
<div className="mt-auto pt-6 border-t border-[var(--border-color)]">
|
||||
<p className="px-2 text-[10px] text-[var(--text-secondary)] font-bold uppercase tracking-widest opacity-50">Podcastic Premium v1.0</p>
|
||||
{/* Footer — theme toggle + version */}
|
||||
<div className="mt-auto pt-6 border-t border-[var(--border-color)] flex items-center justify-between">
|
||||
<p className="px-2 text-[10px] text-[var(--text-secondary)] font-bold uppercase tracking-widest opacity-50">
|
||||
Podcastic v1.0
|
||||
</p>
|
||||
<button
|
||||
onClick={toggleTheme}
|
||||
aria-label="Changer de thème"
|
||||
className="w-9 h-9 rounded-xl flex items-center justify-center transition-all duration-300
|
||||
hover:bg-[var(--bg-secondary)] text-[var(--text-secondary)] hover:text-[var(--text-primary)]
|
||||
border border-transparent hover:border-[var(--border-color)]"
|
||||
>
|
||||
{theme === 'dark'
|
||||
? <Sun className="w-4 h-4" />
|
||||
: <Moon className="w-4 h-4" />
|
||||
}
|
||||
</button>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
|
||||
Reference in new issue
Block a user