forked from PinSpace-Org/GistPin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHeader.tsx
More file actions
27 lines (25 loc) 路 872 Bytes
/
Copy pathHeader.tsx
File metadata and controls
27 lines (25 loc) 路 872 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import Image from 'next/image';
interface HeaderLogoProps {
expanded?: boolean;
}
export default function HeaderLogo({ expanded = true }: HeaderLogoProps) {
return (
<div className={`flex items-center gap-3 px-4 py-5 ${!expanded ? 'justify-center px-0' : ''}`}>
<Image
src="/logo.svg"
alt="GistPin logo"
width={28}
height={28}
sizes="28px"
placeholder="blur"
blurDataURL="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMiIgaGVpZ2h0PSIzMiIgdmlld0JveD0iMCAwIDMyIDMyIiBmaWxsPSJub25lIj48Y2lyY2xlIGN4PSIxNiIgY3k9IjE2IiByPSIxNiIgZmlsbD0iIzYzNjZmMSIvPjwvc3ZnPg=="
priority
/>
{expanded && (
<span className="text-base font-bold tracking-tight text-gray-900 dark:text-white">
GistPin
</span>
)}
</div>
);
}