fix: use shadowed frame for static logo (#1332)

This commit is contained in:
jnjpng
2026-03-10 13:45:44 -06:00
committed by GitHub
parent 162e654ba8
commit 87312720d5

View File

@@ -137,7 +137,7 @@ function getSnapshot(): number {
interface AnimatedLogoProps {
color?: string;
/** When false, show static frame 0 (flat logo). Defaults to true. */
/** When false, show static frame 1 (logo with shadow). Defaults to true. */
animate?: boolean;
}
@@ -146,7 +146,7 @@ export function AnimatedLogo({
animate = true,
}: AnimatedLogoProps) {
const tick = useSyncExternalStore(subscribe, getSnapshot);
const frame = animate ? tick % normalizedLogoFrames.length : 0;
const frame = animate ? tick % normalizedLogoFrames.length : 1;
const logoLines = normalizedLogoFrames[frame]?.split("\n") ?? [];