Skip to content

Commit

Permalink
Add title and profile section in index page
Browse files Browse the repository at this point in the history
  • Loading branch information
marshallku committed Feb 9, 2025
1 parent 9dd7f2d commit e9a8092
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 5 deletions.
12 changes: 12 additions & 0 deletions apps/blog/src/app/page.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,18 @@
&__header {
position: relative;
display: flex;
width: clamp(0px, map.get($container-width, "large"), 100%);
padding: 0 20px;
margin: 36px auto 12px;
align-items: center;
justify-content: center;
flex-direction: column;

@include respond-to(medium) {
flex-direction: row;
justify-content: space-between;
align-items: flex-start;
}
}

&__container {
Expand Down
14 changes: 9 additions & 5 deletions apps/blog/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,15 @@ export default async function Home() {
return (
<section className={cx()}>
<header className={cx("__header")}>
<Typography variant="h1" fontWeight={700}>
{SITE_NAME}
</Typography>
<Typography>{SITE_DESCRIPTION}</Typography>
<Profile size="small" showContact />
<div className={cx("__header-content")}>
<Typography variant="h1" fontWeight={700} marginBottom={8}>
{SITE_NAME}
</Typography>
<Typography marginBottom={24}>{SITE_DESCRIPTION}</Typography>
</div>
<div className={cx("__profile")}>
<Profile size="small" showContact />
</div>
</header>
<section className={cx("__container")}>
<PostList posts={postsInPage} />
Expand Down

1 comment on commit e9a8092

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Visual regression test result - success

Component Story Success Viewport MisMatch Percentage
components-button string-children phone 0.00%
components-button string-children tablet 0.10%
input-input default phone 0.00%
input-input default tablet 0.10%
input-input line phone 0.00%
input-input line tablet 0.04%
input-input box phone 0.00%
input-input box tablet 0.04%
components-profile default phone 0.00%
components-profile default tablet 0.00%
input-textarea line phone 0.00%
input-textarea line tablet 0.04%
input-textarea box phone 0.00%
input-textarea box tablet 0.04%
typography-typography default phone 0.00%
typography-typography default tablet 0.07%

Please sign in to comment.