diff --git a/apps/web/src/app/page.tsx b/apps/web/src/app/page.tsx index ce24b0a8..7e99066c 100644 --- a/apps/web/src/app/page.tsx +++ b/apps/web/src/app/page.tsx @@ -5,13 +5,19 @@ import AboutText from '@/components/about/about-text'; import GitHubStats from '@/components/about/github-stats'; import TechStack from '@/components/about/tech-stack'; import LifeStyles from '@/components/about/life-styles'; -import config from '@/config'; import PageContent from '@/components/page-content'; import H4 from '@/components/markdown/h4'; +import config from '@/config'; const { about } = config; const { subHeader, pronouns } = about; -const { header } = about; +const { firstName, lastName } = about; +const { preferredName } = about; + +const title = + preferredName === '' + ? `About ${firstName} ${lastName} 👨🏻‍💻` + : `About ${preferredName} 👨🏻‍💻`; const About = () => { const pathname = usePathname(); @@ -19,7 +25,7 @@ const About = () => { return ( diff --git a/apps/web/src/components/side-bar/avatar-box.tsx b/apps/web/src/components/side-bar/avatar-box.tsx index fce1e2c7..90b8f06f 100644 --- a/apps/web/src/components/side-bar/avatar-box.tsx +++ b/apps/web/src/components/side-bar/avatar-box.tsx @@ -5,6 +5,15 @@ import { breakpoints } from '@/lib/constants'; import "@/styles/side-bar/avatar-box.css"; +import config from '@/config'; + +const { about } = config; +const { + firstName, + lastName, + middleName, +} = about; + type AvatarBoxProps = { avatar: string; }; @@ -17,7 +26,7 @@ const AvatarBox: React.FC = ({ avatar }) => { Hugo ChunHo Lin (
-

Hugo ChunHo Lin

+

{firstName} ({middleName}) {lastName} +

- Day ONE ⚡️ + {status}

); diff --git a/apps/web/src/config/index.ts b/apps/web/src/config/index.ts index 0d5e8621..a1b5434d 100644 --- a/apps/web/src/config/index.ts +++ b/apps/web/src/config/index.ts @@ -8,6 +8,7 @@ import { PiBooks } from "react-icons/pi"; const config: Config = { avatar: '/images/profile.jpg', + status: "Day ONE ⚡️", navItems: [ { path: '/', label: 'About' }, { path: '/resume', label: 'Resume' }, @@ -22,10 +23,14 @@ const config: Config = { "linkedinUsername": "1chooo" }, about: { - "header": "About Hugo 👨🏻‍💻", "subHeader": "$ ls -al Hugo 👨🏻‍💻", - "pronouns": "He/Him", + "firstName": 'Chun-Ho', + "lastName": 'Lin', + "middleName": 'Hugo' || '', + "preferredName": 'Hugo' || '', + "pronouns": 'He/Him', "introductions": [ + // "#### $ ls -al Hugo 👨🏻‍💻 (He/Him)", "I obtained my Bachelor's degree from [National Central University 🐿️](https://www.ncu.edu.tw/), driven by a *sincere passion* for **Software Engineering 💻.**", `My current research interests include ***Programming Language Theory, Operating Systems, and Compilers.*** To gain practical experience, I developed my own ***Lisp*** interpreter using **C** [[Code](https://github.com/1chooo/compiler-101)] and implemented [***Monkey Programming***](https://monkeylang.org/) Compiler with [**GO**](https://go.dev/) [[Code](https://github.com/1chooo/monkey-prog-lang)].`, "In my spare time, I do workouts 💪🏻, street photography 📸, and tech content writing ✍🏻.", diff --git a/apps/web/src/types/about.d.ts b/apps/web/src/types/about.d.ts index cc2d9f79..5756f5e1 100644 --- a/apps/web/src/types/about.d.ts +++ b/apps/web/src/types/about.d.ts @@ -21,8 +21,11 @@ export type TechStack = { * React element. */ export type About = { - header: string; subHeader: string; + firstName: string; + lastName: string; + middleName: string; + preferredName: string; pronouns: string; introductions: string[]; lifestyles: LifeStyle[]; diff --git a/apps/web/src/types/config.d.ts b/apps/web/src/types/config.d.ts index 2ebeea0c..a34bc476 100644 --- a/apps/web/src/types/config.d.ts +++ b/apps/web/src/types/config.d.ts @@ -13,6 +13,7 @@ import type { NavItem } from "@/types/nav-bar"; export type Config = { avatar: string; + status: string; navItems: NavItem[]; socialMedia: SocialMedia; about: About;