new-personal-site/components/general/Logo.tsx

23 lines
501 B
TypeScript
Raw Normal View History

2024-12-09 15:36:17 +00:00
type Props = {
size?: number;
};
export default function Logo({ size }: Props) {
const sizeRatio = 50 / 100;
const width = size || 50;
const height = width * sizeRatio;
return (
<a href="/">
<img
src="/images/logo-white.svg"
alt="Main Logo"
width={width}
height={height}
style={{
minWidth: width + "px",
}}
/>
</a>
);
}