feat: prettier init with formatted code files

This commit is contained in:
theoleuthardt 2025-02-07 14:02:04 +01:00
parent 5fcfb7ac40
commit 99ffeeafef
12 changed files with 87 additions and 55 deletions

View file

@ -1,4 +1,4 @@
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif:ital,wght@0,100..900;1,100..900&display=swap');
@import url("https://fonts.googleapis.com/css2?family=Noto+Serif:ital,wght@0,100..900;1,100..900&display=swap");
@tailwind base;
@tailwind components;
@ -20,4 +20,4 @@ body {
color: var(--foreground);
background: var(--background);
font-family: Arial, Helvetica, sans-serif;
}
}

View file

@ -13,11 +13,7 @@ export default function RootLayout({
}>) {
return (
<html lang="en">
<body
className={`antialiased`}
>
{children}
</body>
<body className={`antialiased`}>{children}</body>
</html>
);
}

View file

@ -1,9 +1,9 @@
import Navbar from '../components/Navbar';
import Navbar from "../components/Navbar";
export default function Home() {
return (
<div className="bg-black text-white font-noto">
<Navbar renderHomeLink={false} />
</div>
return (
<div className="bg-black text-white font-noto">
<Navbar renderHomeLink={false} />
</div>
);
}
}

View file

@ -3,34 +3,41 @@ import Image from "next/image";
import LOGO from "../assets/logo/icons8-toolbox-64.svg";
interface NavProps {
renderHomeLink: boolean,
renderHomeLink: boolean;
}
const navbar = (props:NavProps) => {
return (
<div className="h-18 w-full p-3 border-2 border-white">
<nav className="bg-black text-white font-bold flex flex-row items-center justify-between">
<div className="justify-items-start flex flex-1 flex-row items-center">
<Image
src={LOGO}
alt={""}
width={64}
height={64}
className="invert"
/>
<div className="text-white ml-5">werkzeugkiste.</div>
</div>
<div className="flex flex-auto justify-center">
{props.renderHomeLink ?
<a href="#" className="justify-center">home</a>
: null}
</div>
<div className="flex flex-auto">
<a href="https://github.com/theoleuthardt/werkzeugkiste" className="items-end mr-3">github</a>
</div>
</nav>
const navbar = (props: NavProps) => {
return (
<div className="h-18 w-full p-3 border-2 border-white">
<nav className="bg-black text-white font-bold flex flex-row items-center justify-between">
<div className="justify-items-start flex flex-1 flex-row items-center">
<Image
src={LOGO}
alt={""}
width={64}
height={64}
className="invert"
/>
<div className="text-white ml-5">werkzeugkiste.</div>
</div>
);
<div className="flex flex-auto justify-center">
{props.renderHomeLink ? (
<a href="#" className="justify-center">
home
</a>
) : null}
</div>
<div className="flex flex-auto">
<a
href="https://github.com/theoleuthardt/werkzeugkiste"
className="items-end mr-3"
>
github
</a>
</div>
</nav>
</div>
);
};
export default navbar;
export default navbar;