chore: add basic layout

This commit is contained in:
Mathias Schopmans
2024-02-12 14:41:29 +01:00
committed by Mathias Schopmans
parent f3979f2a2f
commit 57cdb91ec7
25 changed files with 2176 additions and 430 deletions

View 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>
);
}