Samad14's picture
feat(landing): trust & craft pass — sample result preview with confidence bands, honest service/status copy, unified CTA verbs, grouped database taxonomy, 44px nav touch targets, calmer motion (no chevron loop, glow under nav)
0d05012
Raw History Blame Contribute Delete
820 Bytes
'use client';
import { Moon, Sun } from '@phosphor-icons/react';
import { useTheme } from '@/contexts/theme';
export function ThemeToggle({ className = '' }: { className?: string }) {
const { theme, toggleTheme } = useTheme();
const isDark = theme === 'dark';
return (
<button
onClick={toggleTheme}
aria-label={isDark ? 'Switch to light theme' : 'Switch to dark theme'}
title={isDark ? 'Switch to light theme' : 'Switch to dark theme'}
className={`flex items-center justify-center w-11 h-11 rounded-full border border-glass-border bg-surface-1/70 text-text-secondary hover:text-accent-cyan hover:border-accent-cyan/40 transition-colors cursor-pointer ${className}`}
>
{isDark ? <Sun size={17} weight="regular" /> : <Moon size={17} weight="regular" />}
</button>
);
}