mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-12 07:24:51 +00:00
branding assets
This commit is contained in:
33
apps/login/ui/Logo.tsx
Normal file
33
apps/login/ui/Logo.tsx
Normal file
@@ -0,0 +1,33 @@
|
||||
import Image from "next/image";
|
||||
|
||||
type Props = {
|
||||
darkSrc: string;
|
||||
lightSrc: string;
|
||||
height?: number;
|
||||
width?: number;
|
||||
};
|
||||
|
||||
export function Logo({ lightSrc, darkSrc, height = 40, width = 147.5 }: Props) {
|
||||
return (
|
||||
<>
|
||||
<div className="hidden dark:flex">
|
||||
<Image
|
||||
height={height}
|
||||
width={width}
|
||||
src={darkSrc}
|
||||
alt="logo"
|
||||
priority={true}
|
||||
/>
|
||||
</div>
|
||||
<div className="flex dark:hidden">
|
||||
<Image
|
||||
height={height}
|
||||
width={width}
|
||||
priority={true}
|
||||
src={lightSrc}
|
||||
alt="logo"
|
||||
/>
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user