Skip to content

Commit

Permalink
디자인: 메인 홈 디자인 수정, 모바일 대응
Browse files Browse the repository at this point in the history
  • Loading branch information
D0Dam committed Feb 11, 2024
1 parent 6c4033e commit 78989c9
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
32 changes: 16 additions & 16 deletions src/components/HomepageFeatures/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ h3 {
}
}

a {
color: #2e8555;
}

.container {
margin: 0 auto;
width: 720px;
Expand All @@ -39,33 +43,29 @@ h3 {
list-style-type: none;
margin-left: 0;
padding-left: 0;
& > li {
font-size: 18px;
margin: 8px 0;
}

@media only screen and (max-width: 780px) {
font-size: 16px;
}
.post {
font-size: 18px;
margin: 8px 0;

& > a {
color: #2e8555;
}
@media only screen and (max-width: 780px) {
font-size: 16px;
}
}

.more {
width: 100%;
display: flex;
flex-direction: row-reverse;
margin-bottom: 32px;
}

& > a {
width: fit-content;
padding-right: 12px;
.more > a {
width: fit-content;
padding-right: 12px;

@media only screen and (max-width: 780px) {
font-size: 16px;
}
@media only screen and (max-width: 780px) {
font-size: 16px;
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/components/HomepageFeatures/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default function HomepageFeatures(): JSX.Element {
<div className={styles.line} />
<ul className={styles.posts}>
{recentPosts.map((item) => (
<li key={item.permalink}>
<li key={item.permalink} className={styles.post}>
<a href={`${item.permalink}`}>{item.title}</a>
</li>
))}
Expand Down

0 comments on commit 78989c9

Please sign in to comment.