refactor: migrate theme from dark-mode obsidian to light-mode indigo palette
This commit is contained in:
@@ -15,39 +15,38 @@ export const Header = () => {
|
||||
}
|
||||
|
||||
return (
|
||||
<header className="sticky top-0 z-40 bg-zinc-950/80 backdrop-blur-xl border-b border-white/5 shadow-2xl shadow-black/20">
|
||||
<div className="mx-auto flex h-16 sm:h-20 max-w-6xl items-center justify-between px-4 sm:px-6">
|
||||
<header className="sticky top-0 z-30 bg-white/70 backdrop-blur-lg border-b border-slate-200/50 shadow-sm shadow-slate-200/20">
|
||||
<div className="mx-auto flex h-16 sm:h-20 max-w-6xl items-center justify-between px-3 sm:px-6">
|
||||
<Link
|
||||
to="/"
|
||||
className="text-xl sm:text-2xl font-black tracking-tighter text-white group flex items-center gap-3"
|
||||
className="text-2xl font-black tracking-tighter text-slate-900 group flex items-center gap-2"
|
||||
onClick={() => setMobileMenuOpen(false)}
|
||||
>
|
||||
<div className="w-9 h-9 rounded-xl bg-cyan-500 flex items-center justify-center text-white shadow-xl shadow-cyan-500/20 transition-transform duration-500 group-hover:rotate-6">
|
||||
<User size={20} fill="currentColor" />
|
||||
<div className="w-8 h-8 rounded-lg bg-indigo-600 flex items-center justify-center text-white shadow-lg shadow-indigo-200">
|
||||
<User size={18} fill="currentColor" />
|
||||
</div>
|
||||
<span className="uppercase italic font-black tracking-widest hidden sm:block">Smart Agenda</span>
|
||||
<span className="uppercase italic font-black tracking-widest sm:hidden">Smart</span>
|
||||
<span className="group-hover:text-indigo-600 transition-colors uppercase italic font-black">Smart Agenda</span>
|
||||
</Link>
|
||||
|
||||
{/* Desktop Navigation */}
|
||||
<nav className="hidden md:flex items-center gap-10">
|
||||
<nav className="hidden md:flex items-center gap-8">
|
||||
{user?.role !== 'barbearia' && (
|
||||
<>
|
||||
<Link
|
||||
to="/explorar"
|
||||
className="text-xs font-black uppercase tracking-[0.2em] text-zinc-400 hover:text-white transition-all flex items-center gap-2"
|
||||
className="text-sm font-bold text-slate-600 hover:text-slate-900 transition-all flex items-center gap-2"
|
||||
>
|
||||
<MapPin size={14} className="text-cyan-500" />
|
||||
<span>Explorar</span>
|
||||
<MapPin size={16} className="text-indigo-500" />
|
||||
<span>Descobrir Barbearias</span>
|
||||
</Link>
|
||||
|
||||
<Link
|
||||
to="/carrinho"
|
||||
className="relative text-zinc-400 hover:text-white transition-all p-2 rounded-xl hover:bg-white/5"
|
||||
className="relative text-slate-700 hover:text-slate-900 transition-all p-2 rounded-xl hover:bg-slate-50"
|
||||
>
|
||||
<ShoppingCart size={20} />
|
||||
<ShoppingCart size={20} className="text-slate-700" />
|
||||
{cart.length > 0 && (
|
||||
<span className="absolute -right-1 -top-1 rounded-full bg-cyan-500 px-1.5 py-0.5 text-[9px] font-black text-white shadow-lg">
|
||||
<span className="absolute -right-1 -top-1 rounded-full bg-slate-900 px-1.5 py-0.5 text-[10px] font-black text-indigo-400 shadow-md min-w-[18px] text-center">
|
||||
{cart.length}
|
||||
</span>
|
||||
)}
|
||||
@@ -55,24 +54,24 @@ export const Header = () => {
|
||||
</>
|
||||
)}
|
||||
|
||||
<div className="h-6 w-px bg-white/5 mx-2" />
|
||||
<div className="h-6 w-px bg-slate-200 mx-1" />
|
||||
|
||||
{user ? (
|
||||
<div className="flex items-center gap-5">
|
||||
<div className="flex items-center gap-4">
|
||||
<button
|
||||
onClick={() => navigate(user.role === 'barbearia' ? '/painel' : '/perfil')}
|
||||
className="flex items-center gap-3 bg-white/5 hover:bg-white/10 border border-white/10 pl-3 pr-5 py-2 rounded-2xl transition-all group"
|
||||
className="flex items-center gap-3 bg-slate-50 hover:bg-slate-100 border border-slate-200/60 pl-3 pr-4 py-1.5 rounded-full transition-all group"
|
||||
type="button"
|
||||
>
|
||||
<div className="w-7 h-7 rounded-lg bg-cyan-500 flex items-center justify-center text-white shadow-lg shadow-cyan-500/10">
|
||||
<div className="w-7 h-7 rounded-full bg-indigo-600 flex items-center justify-center text-white shadow-sm">
|
||||
<User size={14} fill="currentColor" />
|
||||
</div>
|
||||
<span className="text-xs font-black uppercase tracking-widest text-zinc-300 group-hover:text-white max-w-[120px] truncate">{user.name}</span>
|
||||
<span className="text-sm font-bold text-slate-700 group-hover:text-slate-900 max-w-[120px] truncate">{user.name}</span>
|
||||
</button>
|
||||
|
||||
<button
|
||||
onClick={handleLogout}
|
||||
className="p-2 text-zinc-500 hover:text-rose-500 hover:bg-rose-500/10 rounded-xl transition-all"
|
||||
className="p-2 text-slate-400 hover:text-rose-600 hover:bg-rose-50 rounded-xl transition-all"
|
||||
title="Sair"
|
||||
type="button"
|
||||
>
|
||||
@@ -80,18 +79,18 @@ export const Header = () => {
|
||||
</button>
|
||||
</div>
|
||||
) : (
|
||||
<div className="flex items-center gap-4">
|
||||
<div className="flex items-center gap-3">
|
||||
<Link
|
||||
to="/login"
|
||||
className="text-xs font-black uppercase tracking-[0.2em] text-zinc-400 hover:text-white px-4 py-2 transition-colors"
|
||||
className="text-sm font-bold text-slate-600 hover:text-slate-900 px-4 py-2 transition-colors"
|
||||
>
|
||||
Entrar
|
||||
Login
|
||||
</Link>
|
||||
<Link
|
||||
to="/registo"
|
||||
className="inline-flex items-center justify-center rounded-2xl bg-white text-zinc-950 px-6 py-2.5 text-xs font-black uppercase italic tracking-widest shadow-xl hover:bg-cyan-500 hover:text-white transition-all"
|
||||
className="inline-flex items-center justify-center rounded-xl bg-indigo-600 px-5 py-2 text-sm font-bold text-white shadow-lg shadow-indigo-100 hover:bg-indigo-700 transition-all font-black uppercase italic tracking-widest"
|
||||
>
|
||||
Começar Agora
|
||||
Criar Conta
|
||||
</Link>
|
||||
</div>
|
||||
)}
|
||||
@@ -100,7 +99,7 @@ export const Header = () => {
|
||||
{/* Mobile Menu Button */}
|
||||
<button
|
||||
onClick={() => setMobileMenuOpen(!mobileMenuOpen)}
|
||||
className="md:hidden p-3 bg-white/5 border border-white/10 rounded-xl text-white transition-all active:scale-95"
|
||||
className="md:hidden p-2.5 bg-slate-50 border border-slate-200 rounded-xl text-slate-900 transition-all"
|
||||
type="button"
|
||||
>
|
||||
{mobileMenuOpen ? <X size={20} /> : <Menu size={20} />}
|
||||
@@ -109,28 +108,28 @@ export const Header = () => {
|
||||
|
||||
{/* Mobile Menu */}
|
||||
{mobileMenuOpen && (
|
||||
<div className="md:hidden border-t border-white/5 bg-zinc-950 shadow-[0_20px_50px_rgba(0,0,0,0.5)] animate-in slide-in-from-top-4 duration-300">
|
||||
<nav className="px-6 py-8 space-y-6">
|
||||
<div className="md:hidden border-t border-slate-100 bg-white shadow-2xl animate-in slide-in-from-top-4 duration-300">
|
||||
<nav className="px-6 py-6 space-y-4">
|
||||
{user?.role !== 'barbearia' && (
|
||||
<>
|
||||
<Link
|
||||
to="/explorar"
|
||||
onClick={() => setMobileMenuOpen(false)}
|
||||
className="flex items-center gap-4 text-xs font-black uppercase tracking-[0.2em] text-zinc-300 hover:text-cyan-500 p-4 rounded-2xl bg-white/5 transition-all"
|
||||
className="flex items-center gap-3 text-base font-black text-slate-700 hover:text-indigo-600 p-3 rounded-2xl bg-slate-50 transition-all uppercase italic"
|
||||
>
|
||||
<MapPin size={18} className="text-cyan-500" />
|
||||
Descobrir Espaços
|
||||
<MapPin size={18} className="text-indigo-600" />
|
||||
Descobrir Barbearias
|
||||
</Link>
|
||||
|
||||
<Link
|
||||
to="/carrinho"
|
||||
onClick={() => setMobileMenuOpen(false)}
|
||||
className="flex items-center gap-4 text-xs font-black uppercase tracking-[0.2em] text-zinc-300 hover:text-cyan-500 p-4 rounded-2xl bg-white/5 transition-all"
|
||||
className="flex items-center gap-3 text-base font-black text-slate-700 hover:text-indigo-600 p-3 rounded-2xl bg-slate-50 transition-all uppercase italic"
|
||||
>
|
||||
<ShoppingCart size={18} className="text-cyan-500" />
|
||||
Carrinho
|
||||
<ShoppingCart size={18} className="text-indigo-600" />
|
||||
Meu Carrinho
|
||||
{cart.length > 0 && (
|
||||
<span className="ml-auto rounded-full bg-cyan-500 px-2 py-0.5 text-[9px] font-black text-white">
|
||||
<span className="ml-auto rounded-full bg-slate-900 px-2 py-0.5 text-[10px] font-black text-indigo-400">
|
||||
{cart.length}
|
||||
</span>
|
||||
)}
|
||||
@@ -138,46 +137,46 @@ export const Header = () => {
|
||||
</>
|
||||
)}
|
||||
|
||||
<div className="h-px bg-white/5 w-full" />
|
||||
<div className="h-px bg-slate-100 w-full" />
|
||||
|
||||
{user ? (
|
||||
<div className="space-y-3">
|
||||
<>
|
||||
<button
|
||||
onClick={() => {
|
||||
navigate(user.role === 'barbearia' ? '/painel' : '/perfil')
|
||||
setMobileMenuOpen(false)
|
||||
}}
|
||||
className="w-full flex items-center gap-4 text-xs font-black uppercase tracking-[0.2em] text-zinc-300 p-4 rounded-2xl hover:bg-white/5 transition-all text-left"
|
||||
className="w-full flex items-center gap-3 text-base font-bold text-slate-700 p-3 rounded-2xl hover:bg-slate-50 transition-all text-left"
|
||||
type="button"
|
||||
>
|
||||
<User size={18} className="text-cyan-500" />
|
||||
<User size={18} className="text-slate-400" />
|
||||
{user.name}
|
||||
</button>
|
||||
|
||||
<button
|
||||
onClick={handleLogout}
|
||||
className="w-full flex items-center gap-4 text-xs font-black uppercase tracking-[0.2em] text-rose-500 p-4 rounded-2xl hover:bg-rose-500/10 transition-all text-left"
|
||||
className="w-full flex items-center gap-3 text-base font-bold text-rose-600 p-3 rounded-2xl hover:bg-rose-50 transition-all text-left"
|
||||
type="button"
|
||||
>
|
||||
<LogOut size={18} />
|
||||
Sair da Conta
|
||||
</button>
|
||||
</div>
|
||||
</>
|
||||
) : (
|
||||
<div className="flex flex-col gap-4">
|
||||
<div className="grid grid-cols-2 gap-3">
|
||||
<Link
|
||||
to="/login"
|
||||
onClick={() => setMobileMenuOpen(false)}
|
||||
className="flex items-center justify-center rounded-2xl border border-white/10 bg-white/5 py-4 text-xs font-black uppercase tracking-widest text-white"
|
||||
className="flex items-center justify-center rounded-2xl border border-slate-200 bg-white py-3 text-sm font-bold text-slate-700"
|
||||
>
|
||||
Login
|
||||
Entrar
|
||||
</Link>
|
||||
<Link
|
||||
to="/registo"
|
||||
onClick={() => setMobileMenuOpen(false)}
|
||||
className="flex items-center justify-center rounded-2xl bg-white py-4 text-xs font-black text-zinc-950 uppercase italic tracking-widest shadow-xl"
|
||||
className="flex items-center justify-center rounded-2xl bg-slate-900 py-3 text-sm font-bold text-indigo-400 shadow-lg shadow-slate-200 font-black uppercase italic tracking-widest"
|
||||
>
|
||||
Criar Conta Gratis
|
||||
Criar Conta
|
||||
</Link>
|
||||
</div>
|
||||
)}
|
||||
|
||||
@@ -1,22 +1,20 @@
|
||||
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');
|
||||
|
||||
@tailwind base;
|
||||
@tailwind components;
|
||||
@tailwind utilities;
|
||||
|
||||
@layer base {
|
||||
:root {
|
||||
--brand-primary: #0ea5e9; /* Cyan 500 */
|
||||
--brand-primary-light: #7dd3fc;
|
||||
--brand-primary-dark: #0369a1;
|
||||
--obsidian: #09090b; /* Zinc 950 */
|
||||
--obsidian-light: #18181b; /* Zinc 900 */
|
||||
--brand-primary: #6366f1; /* Indigo 500 */
|
||||
--brand-primary-light: #a5b4fc;
|
||||
--brand-primary-dark: #4338ca;
|
||||
--obsidian: #0f172a;
|
||||
--obsidian-light: #1e293b;
|
||||
--slate-950: #020617;
|
||||
color-scheme: dark;
|
||||
color-scheme: light;
|
||||
}
|
||||
|
||||
* {
|
||||
@apply border-white/5;
|
||||
@apply border-slate-200;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
@@ -25,38 +23,33 @@
|
||||
width: 100%;
|
||||
max-width: 100vw;
|
||||
position: relative;
|
||||
background-color: var(--obsidian);
|
||||
}
|
||||
|
||||
body {
|
||||
@apply text-zinc-400 font-sans antialiased;
|
||||
@apply bg-slate-50 text-slate-900 font-sans antialiased;
|
||||
touch-action: pan-y;
|
||||
background-image:
|
||||
radial-gradient(at 0% 0%, rgba(14, 165, 233, 0.05) 0px, transparent 50%),
|
||||
radial-gradient(at 100% 0%, rgba(24, 24, 27, 0.05) 0px, transparent 50%);
|
||||
radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.03) 0px, transparent 50%),
|
||||
radial-gradient(at 100% 0%, rgba(15, 23, 42, 0.03) 0px, transparent 50%);
|
||||
font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
a {
|
||||
@apply text-inherit no-underline transition-all;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
@apply text-white tracking-tight;
|
||||
@apply text-inherit no-underline transition-colors;
|
||||
}
|
||||
|
||||
/* Scrollbar styling */
|
||||
::-webkit-scrollbar {
|
||||
@apply w-1.5 h-1.5;
|
||||
@apply w-2 h-2;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-track {
|
||||
@apply bg-transparent;
|
||||
@apply bg-slate-100;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb {
|
||||
@apply bg-zinc-800 rounded-full hover:bg-zinc-700;
|
||||
@apply bg-indigo-200 rounded-full hover:bg-indigo-300;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -66,11 +59,7 @@
|
||||
}
|
||||
|
||||
.glass-card {
|
||||
@apply bg-zinc-900/50 backdrop-blur-xl border border-white/10 shadow-2xl shadow-black/50;
|
||||
}
|
||||
|
||||
.bento-card {
|
||||
@apply bg-zinc-900 border border-white/5 shadow-inner hover:border-white/20 transition-all duration-300;
|
||||
@apply bg-white/80 backdrop-blur-md border border-white/20 shadow-xl shadow-slate-200/50;
|
||||
}
|
||||
|
||||
/* Hide scrollbar but keep scroll functionality */
|
||||
@@ -83,10 +72,10 @@
|
||||
}
|
||||
|
||||
.indigo-gradient {
|
||||
@apply bg-gradient-to-br from-cyan-400 via-cyan-500 to-cyan-600;
|
||||
@apply bg-gradient-to-br from-indigo-400 via-indigo-500 to-indigo-600;
|
||||
}
|
||||
|
||||
.obsidian-gradient {
|
||||
@apply bg-gradient-to-br from-zinc-900 via-zinc-950 to-black;
|
||||
@apply bg-gradient-to-br from-slate-800 via-slate-900 to-slate-950;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,26 +7,13 @@ module.exports = {
|
||||
extend: {
|
||||
colors: {
|
||||
amber: colors.amber,
|
||||
slate: colors.zinc,
|
||||
indigo: {
|
||||
50: '#f0f9ff',
|
||||
100: '#e0f2fe',
|
||||
200: '#bae6fd',
|
||||
300: '#7dd3fc',
|
||||
400: '#38bdf8',
|
||||
500: '#0ea5e9',
|
||||
600: '#0284c7',
|
||||
700: '#0369a1',
|
||||
800: '#075985',
|
||||
900: '#0c4a6e',
|
||||
950: '#082f49',
|
||||
}, // Overriding indigo with a sharp Cyan/Sky Blue palette
|
||||
slate: colors.slate,
|
||||
indigo: colors.indigo,
|
||||
violet: colors.violet,
|
||||
emerald: colors.emerald,
|
||||
zinc: colors.zinc,
|
||||
},
|
||||
fontFamily: {
|
||||
sans: ['Outfit', 'Inter', 'system-ui', 'sans-serif'],
|
||||
sans: ['Inter', 'system-ui', 'sans-serif'],
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user