Skip to content

Commit

Permalink
Add about page temporarily
Browse files Browse the repository at this point in the history
  • Loading branch information
marshallku committed Mar 13, 2024
1 parent a216f46 commit 542875b
Show file tree
Hide file tree
Showing 3 changed files with 113 additions and 0 deletions.
48 changes: 48 additions & 0 deletions apps/blog/app/about/page.module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
.about {
width: clamp(0px, map-get($container-width, small), 100%);
margin: $global-navigation-height auto 0;

&__container {
padding: 0 12px;
}

&__profile {
margin: 24px 0;

> img {
display: block;
margin: 0 auto;
border-radius: 50%;
}
}

&__title {
margin: 0 0 24px;
text-align: center;
}

&__contact {
display: flex;
flex-direction: column;
gap: 8px;

@include respond-to(medium) {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 8px;
}

> li > a {
display: flex;
padding: 8px;
align-items: center;
border: 1px solid color(sub);
border-radius: 8px;

> i {
margin-right: 8px;
font-size: 2em;
}
}
}
}
64 changes: 64 additions & 0 deletions apps/blog/app/about/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
import { Icon } from "@marshallku/icon";
import { classNames } from "@marshallku/utils";
import Typography from "#components/Typography";
import styles from "./page.module.scss";
import Button from "#components/Button";

export const dynamic = "error";

const cx = classNames(styles, "about");

export function generateMetadata() {
return {
title: "About Me",
};
}

export default function AboutPage() {
return (
<div className={cx()}>
<section className={cx("__container")}>
<figure className={cx("__profile")}>
<img src="https://github.com/marshallku.png" alt="Marshall Ku" width="150" height="150" />
</figure>
<Typography variant="h1" component="h1" className={cx("__title")} fontWeight={700}>
Marshall Ku / 구영표
</Typography>
<ul className={cx("__contact")}>
<li>
<a href="https://github.com/marshallku" target="_blank" rel="noopener noreferrer nofollow">
<Icon name="github" />
<Typography>GitHub</Typography>
</a>
</li>
<li>
<a
href="https://www.linkedin.com/in/marshallku/"
target="_blank"
rel="noopener noreferrer nofollow"
>
<Icon name="linkedin" />
<Typography>LinkedIn</Typography>
</a>
</li>
<li>
<a href="mailto:[email protected]">
<Icon name="mail" />
<Typography>[email protected]</Typography>
</a>
</li>
<li>
<a
href="https://marshallku.notion.site/a8461811a3044446a2048fc054001b9d?pvs=4"
target="_blank"
rel="noopener noreferrer nofollow"
>
<Icon name="notion" />
<Typography>Resume</Typography>
</a>
</li>
</ul>
</section>
</div>
);
}
1 change: 1 addition & 0 deletions apps/blog/src/components/DrawerContent/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ function DrawerContent({ opened, closeDrawer, willClose, setWillClose }: DrawerC
<ul className={cx("__item")}>
<List icon="home" text="Home" href="/" />
<List icon="notifications" text="Notice" href="/notice" />
<List icon="edit" text="About" href="/about" />
<List icon="tag" text="Tags" href="/tags" />
<List icon="mail" text="Guestbook" href="/guestbook" />
</ul>
Expand Down

0 comments on commit 542875b

Please sign in to comment.