mirror of
https://github.com/theoleuthardt/werkzeugkiste.git
synced 2026-06-13 09:37:53 +00:00
feat: start page tool overview with dynamic rendering
This commit is contained in:
parent
41286d4691
commit
f7b0538ac7
3 changed files with 46 additions and 2 deletions
|
|
@ -1,9 +1,22 @@
|
||||||
import Navbar from "../components/Navbar";
|
import Navbar from "../components/Navbar";
|
||||||
|
import { toolLinks } from "@/constants";
|
||||||
|
|
||||||
export default function Home() {
|
export default function Home() {
|
||||||
return (
|
return (
|
||||||
<div className="bg-black text-white font-noto">
|
<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="grid grid-cols-3 gap-4">
|
||||||
|
{toolLinks.map((tool) => (
|
||||||
|
<div
|
||||||
|
key={tool.title}
|
||||||
|
className="border-2 border-white p-3 flex justify-center rounded-2xl"
|
||||||
|
>
|
||||||
|
<a href={tool.link}>{tool.title}</a>
|
||||||
|
</div>
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,12 +3,13 @@ import Image from "next/image";
|
||||||
import LOGO from "../assets/logo/icons8-toolbox-64.svg";
|
import LOGO from "../assets/logo/icons8-toolbox-64.svg";
|
||||||
|
|
||||||
interface NavProps {
|
interface NavProps {
|
||||||
|
className?: string;
|
||||||
renderHomeLink: boolean;
|
renderHomeLink: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
const navbar = (props: NavProps) => {
|
const navbar = (props: NavProps) => {
|
||||||
return (
|
return (
|
||||||
<div className="h-18 w-full p-3">
|
<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
|
||||||
|
|
|
||||||
30
src/constants/index.ts
Normal file
30
src/constants/index.ts
Normal file
|
|
@ -0,0 +1,30 @@
|
||||||
|
export const toolLinks = [
|
||||||
|
{
|
||||||
|
title: "color-converter",
|
||||||
|
link: "/color-converter",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "bg-remover",
|
||||||
|
link: "/bg-remover",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "image-converter",
|
||||||
|
link: "/image-converter",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "file converter",
|
||||||
|
link: "/file-converter",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "password-generator",
|
||||||
|
link: "/password-generator",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "pomodoro-timer",
|
||||||
|
link: "/pomodoro-timer",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "qr-code-generator",
|
||||||
|
link: "/qr-code-generator",
|
||||||
|
},
|
||||||
|
];
|
||||||
Loading…
Add table
Add a link
Reference in a new issue