feat: start page footer, general styling

This commit is contained in:
theoleuthardt 2025-02-08 14:13:04 +01:00
parent f7b0538ac7
commit 39be7de9c0
3 changed files with 43 additions and 6 deletions

View file

@ -1,4 +1,5 @@
import Navbar from "../components/Navbar"; import Navbar from "../components/Navbar";
import Footer from "../components/Footer";
import { toolLinks } from "@/constants"; import { toolLinks } from "@/constants";
export default function Home() { export default function Home() {
@ -6,17 +7,20 @@ export default function Home() {
<div className="h-screen w-screen bg-black text-white font-noto flex flex-col items-center"> <div className="h-screen w-screen bg-black text-white font-noto flex flex-col items-center">
<Navbar renderHomeLink={false} /> <Navbar renderHomeLink={false} />
<div className="w-screen h-screen flex flex-col items-center justify-center"> <div className="w-screen h-screen flex flex-col items-center justify-center">
<div className="grid grid-cols-3 gap-4"> <div className="grid grid-cols-3 gap-6">
{toolLinks.map((tool) => ( {toolLinks.map((tool) => (
<div <div
key={tool.title} key={tool.title}
className="border-2 border-white p-3 flex justify-center rounded-2xl" className="text-2xl border-2 border-white p-5 flex justify-center rounded-2xl shadow-md
shadow-white hover:scale-110 hover:transition-scale hover:duration-200
hover:text-blue-400 hover:border-blue-400 hover:shadow-blue-400"
> >
<a href={tool.link}>{tool.title}</a> <a href={tool.link}>{tool.title}</a>
</div> </div>
))} ))}
</div> </div>
</div> </div>
<Footer />
</div> </div>
); );
} }

30
src/components/Footer.tsx Normal file
View file

@ -0,0 +1,30 @@
import React from "react";
interface NavProps {
className?: string;
}
const navbar = (props: NavProps) => {
return (
<div className={`h-18 w-full p-3 ` + props.className}>
<div className="text-md text-white font-bold flex flex-row items-center justify-center">
<text>made by</text>
<a
className="mx-2 hover:underline hover:text-blue-400"
href="https://github.com/AuriomTex"
>
Domi
</a>
<text>and</text>
<a
className="mx-2 hover:underline hover:text-blue-400"
href="https://github.com/theoleuthardt"
>
Theo.
</a>
</div>
</div>
);
};
export default navbar;

View file

@ -9,7 +9,7 @@ interface NavProps {
const navbar = (props: NavProps) => { const navbar = (props: NavProps) => {
return ( return (
<div className={`h-18 w-full p-3` + props.className}> <div className={`h-18 w-full p-3 ` + props.className}>
<nav className="bg-black text-white font-bold flex flex-row items-center justify-between"> <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"> <div className="justify-items-start flex flex-1 flex-row items-center">
<Image <Image
@ -19,11 +19,14 @@ const navbar = (props: NavProps) => {
height={64} height={64}
className="invert" className="invert"
/> />
<div className="text-white ml-5">werkzeugkiste.</div> <div className="text-white text-2xl ml-5">werkzeugkiste.</div>
</div> </div>
<div className="flex flex-auto justify-center"> <div className="flex flex-auto justify-center">
{props.renderHomeLink ? ( {props.renderHomeLink ? (
<a href="#" className="justify-center"> <a
href="#"
className="justify-center text-2xl hover:underline hover:transition-underline hover:duration-300 hover:text-blue-400"
>
home home
</a> </a>
) : null} ) : null}
@ -31,7 +34,7 @@ const navbar = (props: NavProps) => {
<div className="flex flex-auto justify-end"> <div className="flex flex-auto justify-end">
<a <a
href="https://github.com/theoleuthardt/werkzeugkiste" href="https://github.com/theoleuthardt/werkzeugkiste"
className="items-end mr-3" className="items-end mr-3 text-2xl hover:underline hover:transition-underline hover:duration-300 hover:text-blue-400"
> >
github github
</a> </a>