Add ability to use custom logo

pull/664/head
Snekussaurier 2 years ago
parent 146326f427
commit 645cf211dd

@ -1,5 +1,12 @@
export default function Logo() {
import Image from "next/future/image";
export default function Logo({ options }) {
return (
<div className="w-12 h-12 flex flex-row items-center align-middle mr-3 self-center">
{options.source ?
<Image src={`${options.source}`} width={48} height={48} alt="logo" /> :
// if source parameter is not set, use fallback homepage logo
<div className="w-12 h-12 flex flex-row items-center align-middle mr-3 self-center">
<svg
xmlns="http://www.w3.org/2000/svg"
@ -52,5 +59,7 @@ export default function Logo() {
</g>
</svg>
</div>
);
}
</div>
)
}

Loading…
Cancel
Save