Files
HealthLog/src/components/ui/logo.tsx
T
Marc-André Bombeck 38309932f3 Initial release v1.0.0
HealthLog — personal health-tracking PWA with weight, blood pressure,
pulse, mood tracking, medication compliance, Withings integration,
doctor report PDF export, and Dracula-themed UI.
2026-03-10 20:14:33 +01:00

44 lines
1.3 KiB
TypeScript

import { cn } from "@/lib/utils";
interface LogoProps {
className?: string;
size?: number;
}
export function Logo({ className, size = 24 }: LogoProps) {
return (
<svg
viewBox="0 0 24 24"
width={size}
height={size}
fill="none"
strokeLinecap="round"
strokeLinejoin="round"
className={cn("shrink-0", className)}
aria-hidden="true"
>
<defs>
<clipPath id="heart-clip">
<path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z" />
</clipPath>
</defs>
{/* Heart shape */}
<path
d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"
fill="currentColor"
fillOpacity="0.15"
stroke="currentColor"
strokeWidth={1.2}
/>
{/* EKG heartbeat line — clipped to heart shape */}
<polyline
points="3,12.5 8,12.5 9.5,9 11,16 12.5,7 14,12.5 15.5,12.5 21,12.5"
fill="none"
stroke="currentColor"
strokeWidth={1.5}
clipPath="url(#heart-clip)"
/>
</svg>
);
}