Skip to content

Commit 369d2bc

Browse files
committed
feat: add appConfig for centralized application configuration
1 parent 163bff0 commit 369d2bc

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

app/page.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import Image from "next/image";
44
import { useEffect, useState } from 'react';
55
import { useRouter } from 'next/navigation';
66
import { LoaderIcon } from "lucide-react";
7+
import { appConfig } from "@/configs/app";
78

89
const menuItems = [
910
{
@@ -105,7 +106,7 @@ export default function HomePage() {
105106
<Image src="/cambodia-flag-icon-128.png" alt="Avatar" width={120} height={120} className="absolute ring-2 bottom-1 -right-2 ring-amber-200 rounded w-9 hover:scale-110 transition-all duration-300 h-6 object-cover" />
106107
</div>
107108
<div className="max-sm:flex-col max-sm:mt-5 mt-9 items-center flex-col flex mx-auto justify-center gap-0">
108-
<h1 className="font-bold font-sans text-xl">Sophat LEAT</h1>
109+
<h1 className="font-bold font-sans text-xl">{appConfig.name}</h1>
109110
</div>
110111

111112
<div className="flex w-full max-w-60 mx-auto justify-center max-sm:gap-2 gap-2 shadow-2xl">

configs/app.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
export const appConfig = {
2+
name: "Sophat LEAT",
3+
description: "Personal portfolio and blog of Sophat LEAT",
4+
url: "https://pphat.stackdev.cloud",
5+
links: {
6+
twitter: "https://twitter.com/stackdevcloud",
7+
github: "https://github.com/stackdevcloud",
8+
},
9+
}

0 commit comments

Comments
 (0)