chore: add basic layout
This commit is contained in:
committed by
Mathias Schopmans
parent
f3979f2a2f
commit
57cdb91ec7
21
src/components/Logo/Logo.tsx
Normal file
21
src/components/Logo/Logo.tsx
Normal file
@@ -0,0 +1,21 @@
|
||||
"use client";
|
||||
|
||||
import Link from "next/link";
|
||||
import { usePathname } from "next/navigation";
|
||||
|
||||
import logo from "../../../public/logo.svg";
|
||||
import styles from "./Logo.module.css";
|
||||
|
||||
import { getAppName } from "@/lib/config";
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
export function Logo() {
|
||||
const pathname = usePathname();
|
||||
const appName = getAppName();
|
||||
return (
|
||||
<Link href="/" className={cn(styles.logo, pathname != "/" && styles.small)}>
|
||||
<img src={logo.src} className={cn(styles.src)} alt={appName} />
|
||||
<span className={styles.subline}>{appName}</span>
|
||||
</Link>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user