Skip to content

Commit

Permalink
Merge pull request #342 from 1chooo/feature/#327
Browse files Browse the repository at this point in the history
Feature/#327
  • Loading branch information
1chooo authored Sep 29, 2024
2 parents 4cfb775 + f6eb5e1 commit fc15018
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 9 deletions.
12 changes: 9 additions & 3 deletions apps/web/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,27 @@ 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();

return (
<PageContent
documentTitle=''
title={header}
title={title}
page="about"
pathName={pathname}
>
Expand Down
11 changes: 10 additions & 1 deletion apps/web/src/components/side-bar/avatar-box.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand All @@ -17,7 +26,7 @@ const AvatarBox: React.FC<AvatarBoxProps> = ({ avatar }) => {
<Image
id="profile-img"
src={avatar}
alt="Hugo ChunHo Lin"
alt={`${firstName} (${middleName}) ${lastName}`}
width={imageSize.width}
height={imageSize.height}
loading="lazy"
Expand Down
17 changes: 15 additions & 2 deletions apps/web/src/components/side-bar/info-content.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,23 @@
import React from 'react';
import config from '@/config';

const { status } = config;
const { about } = config;
const {
firstName,
lastName,
middleName,
} = about;

const InfoContent: React.FC = () => (
<div className="info-content">
<h1 className="name" title="Hugo ChunHo Lin">Hugo ChunHo Lin</h1>
<h1
className="name"
title={`${firstName} (${middleName}) ${lastName}`}
>{firstName} ({middleName}) {lastName}
</h1>
<p className="title">
<strong>Day ONE ⚑️</strong>
<strong>{status}</strong>
</p>
</div>
);
Expand Down
9 changes: 7 additions & 2 deletions apps/web/src/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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' },
Expand All @@ -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 ***<a href="https://en.wikipedia.org/wiki/Lisp_(programming_language)">Lisp</a>*** interpreter using **<a href="https://en.wikipedia.org/wiki/C_(programming_language)">C</a>** <sup>[[Code](https://github.com/1chooo/compiler-101)]</sup> and implemented [***Monkey Programming***](https://monkeylang.org/) Compiler with [**GO**](https://go.dev/) <sup>[[Code](https://github.com/1chooo/monkey-prog-lang)]</sup>.`,
"In my spare time, I do workouts πŸ’ͺ🏻, street photography πŸ“Έ, and tech content writing ✍🏻.",
Expand Down
5 changes: 4 additions & 1 deletion apps/web/src/types/about.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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[];
Expand Down
1 change: 1 addition & 0 deletions apps/web/src/types/config.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import type { NavItem } from "@/types/nav-bar";

export type Config = {
avatar: string;
status: string;
navItems: NavItem[];
socialMedia: SocialMedia;
about: About;
Expand Down

0 comments on commit fc15018

Please sign in to comment.