Refactor site header, heroes, and design system

This commit is contained in:
MOH
2026-03-08 00:29:51 +01:00
parent a18370d003
commit 0c2b67e378
56 changed files with 2714 additions and 1318 deletions
+4 -2
View File
@@ -12,6 +12,7 @@ type ThemeToggleProps = {
label?: string;
variant?: ButtonProps["variant"];
className?: string;
iconClassName?: string;
};
export function ThemeToggle({
@@ -19,6 +20,7 @@ export function ThemeToggle({
label,
variant = "outline",
className,
iconClassName,
}: ThemeToggleProps) {
const { setTheme, theme, resolvedTheme } = useTheme();
const [mounted, setMounted] = useState(false);
@@ -36,7 +38,7 @@ export function ThemeToggle({
aria-label={ariaLabel}
className={cn(label ? "justify-start" : undefined, className)}
>
<Moon className="h-4 w-4" />
<Moon className={cn("h-4 w-4", iconClassName)} />
{label ? <span>{label}</span> : null}
</Button>
);
@@ -54,7 +56,7 @@ export function ThemeToggle({
aria-label={ariaLabel}
className={cn(label ? "justify-start" : undefined, className)}
>
{isDark ? <Sun className="h-4 w-4" /> : <Moon className="h-4 w-4" />}
{isDark ? <Sun className={cn("h-4 w-4", iconClassName)} /> : <Moon className={cn("h-4 w-4", iconClassName)} />}
{label ? <span>{label}</span> : null}
</Button>
);