Skip to content

Commit

Permalink
Modify design
Browse files Browse the repository at this point in the history
  • Loading branch information
marshallku committed Nov 11, 2024
1 parent f8b722d commit 23bfbfc
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 16 deletions.
21 changes: 15 additions & 6 deletions apps/blog/src/app/tags/page.module.scss
Original file line number Diff line number Diff line change
@@ -1,13 +1,22 @@
@use "sass:map";

.tag-cloud {
display: flex;
width: clamp(0px, map.get($container-width, "large"), 100%);
margin: 0 auto;
// padding-right = padding-left + half of tag width
padding: $global-navigation-height + 20px 12px 10px 12px + 15px;
flex-wrap: wrap;
gap: 0.75em;
margin: $global-navigation-height auto 0;

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

&__tags {
display: flex;
width: clamp(0px, map.get($container-width, "large"), 100%);
// padding-right = padding-left + half of tag width
padding: $global-navigation-height + 20px 12px 10px 12px + 15px;
flex-wrap: wrap;
gap: 0.75em;
}

a {
position: relative;
Expand Down
25 changes: 15 additions & 10 deletions apps/blog/src/app/tags/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,21 @@ export default function TagCloudPage() {

return (
<div className={cx()}>
{tags.map(({ name, count }) => (
<Link key={name} href={`/tag/${name}`}>
<Typography component="span" variant="b2">
{name}
</Typography>
<Typography component="span" variant="c1">
({count})
</Typography>
</Link>
))}
<Typography variant="h1" component="h1" fontWeight={700} className={cx("__title")}>
태그 목록
</Typography>
<div className={cx("__tags")}>
{tags.map(({ name, count }) => (
<Link key={name} href={`/tag/${name}`}>
<Typography component="span" variant="b2">
{name}
</Typography>
<Typography component="span" variant="c1">
({count})
</Typography>
</Link>
))}
</div>
</div>
);
}

1 comment on commit 23bfbfc

@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.09%
input-input default phone 0.00%
input-input default tablet 0.00%
input-input line phone 0.00%
input-input line tablet 0.00%
input-input box phone 0.00%
input-input box tablet 0.00%
input-textarea line phone 0.00%
input-textarea line tablet 0.00%
input-textarea box phone 0.00%
input-textarea box tablet 0.00%
typography-typography default phone 0.00%
typography-typography default tablet 0.00%

Please sign in to comment.