diff --git a/config.json b/config.json new file mode 100644 index 0000000..5994d6b --- /dev/null +++ b/config.json @@ -0,0 +1,42 @@ +{ + "name": "Lee", + "description": "I'm a 20-year-old software engineer from the UK, and my true passion lies in creating and exploring the endless possibilities within my homelab.", + "metadata": { + "title": "fascinated.cc", + "description": "I'm a 20-year-old software engineer from the UK" + }, + "links": [ + { + "title": "Git", + "url": "https://git-scm.com/", + "color": { + "normal": "bg-neutral-700", + "hover": "bg-neutral-100" + } + }, + { + "title": "Discord", + "url": "https://discord.gg/yjj2U3ctEG", + "color": { + "normal": "bg-neutral-700", + "hover": "bg-neutral-600" + } + }, + { + "title": "Twitch", + "url": "https://twitch.tv/fascinated_", + "color": { + "normal": "bg-neutral-700", + "hover": "bg-neutral-600" + } + }, + { + "title": "Documentation", + "url": "https://docs.fascinated.cc", + "color": { + "normal": "bg-neutral-700", + "hover": "bg-neutral-600" + } + } + ] +} diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 30aa3ea..74a11ed 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -1,12 +1,11 @@ import { Inter } from "next/font/google"; import "./globals.css"; +import Config from "../../config.json"; + const inter = Inter({ subsets: ["latin"] }); -export const metadata = { - title: "fascinated.cc", - description: "I'm a 20-year-old software engineer from the UK", -}; +export const metadata = Config.metadata; export default function RootLayout({ children, diff --git a/src/app/page.tsx b/src/app/page.tsx index 783957b..0327cb8 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -1,18 +1,30 @@ +import Config from "../../config.json"; + export default function Home() { return ( -
-

Hello, world!

+
+
+
+

{Config.name}

-

- This is a template for Next.js 13 with Tailwind CSS. -

-

- Created by{" "} - - Fascinated - - . -

+

{Config.description}

+ +
+ {Config.links.map((link, index) => { + return ( + <> + + + ); + })} +
+
+
); }