diff --git a/src/components/Card/Card.module.css b/src/components/Card/Card.module.css index 3a61064..179013d 100644 --- a/src/components/Card/Card.module.css +++ b/src/components/Card/Card.module.css @@ -1,42 +1,74 @@ .item { - padding: 25px 35px; + display: flex; + flex-direction: column; + align-items: center; + column-gap: 35px; + padding: 20px; + width: 100%; + + @media screen and (min-width: 550px) { + flex-direction: row; + align-items: center; + column-gap: 35px; + padding: 25px 35px; + } + background-color: var(--bg-300); border-radius: 10px; +} + +.content { display: flex; - column-gap: 35px; - align-items: flex-end; - - > section { - > section { - display: flex; - align-items: center; - column-gap: 8px; - - > div { - display: flex; - align-items: center; - justify-content: center; - width: 24px; - height: 24px; - border-radius: 50%; - background-color: var(--primary); - } - - > span { - font-size: 14px; - font-weight: var(--font-weight-medium); - } - } - - > section:nth-child(2) { - margin-top: 15px; - } + flex-direction: column; + align-items: center; + column-gap: 8px; + + @media screen and (min-width: 550px) { + align-items: flex-start; } } -.link { - margin-top: 20px; +.nameCohortWrapper { + display: flex; + column-gap: 10px; + margin-top: 13px; + + @media screen and (min-width: 550px) { + flex-direction: column; + align-items: flex-start; + row-gap: 15px; + } + + section { + display: flex; + align-items: center; + column-gap: 5px; + } + + span { + font-size: 14px; + font-weight: var(--font-weight-medium); + } +} + +.iconWrapper { + display: flex; + align-items: center; + justify-content: center; + width: 24px; + height: 24px; + border-radius: 50%; + background-color: var(--primary); +} + +.links { + margin-top: 10px; display: flex; gap: 10px; + font-size: 11px; color: var(--bg-100); + + @media screen and (min-width: 550px) { + margin-top: 20px; + } } diff --git a/src/components/Card/Card.tsx b/src/components/Card/Card.tsx index 0172d97..69d2dce 100644 --- a/src/components/Card/Card.tsx +++ b/src/components/Card/Card.tsx @@ -23,20 +23,25 @@ export default function Card({ return (
-
-
-
- 깃허브 아이콘 -
- {name} -
-
-
- 깃발 아이콘 -
- {cohortString}기 -
-
+ +
+
+
+
+ 깃허브 아이콘 +
+ {name} +
+ +
+
+ 깃발 아이콘 +
+ {cohortString}기 +
+
+ +
풀이 현황 diff --git a/src/components/Link/Link.module.css b/src/components/Link/Link.module.css index 8ca0fb7..530ae90 100644 --- a/src/components/Link/Link.module.css +++ b/src/components/Link/Link.module.css @@ -26,7 +26,7 @@ justify-content: center; align-items: center; padding: 10px 40px; - min-width: 132px; + min-width: 125px; max-height: 30px; border-radius: 10px; diff --git a/src/components/SearchBar/SearchBar.module.css b/src/components/SearchBar/SearchBar.module.css index 5f11d9e..50469a6 100644 --- a/src/components/SearchBar/SearchBar.module.css +++ b/src/components/SearchBar/SearchBar.module.css @@ -6,7 +6,7 @@ border: 2px solid #846de9; border-radius: 10px; - width: max-content; + width: 304px; height: 40px; padding: 13px 15px; diff --git a/src/pages/Leaderboard/Leaderboard.module.css b/src/pages/Leaderboard/Leaderboard.module.css index d92c5ab..78c6ecb 100644 --- a/src/pages/Leaderboard/Leaderboard.module.css +++ b/src/pages/Leaderboard/Leaderboard.module.css @@ -9,21 +9,23 @@ .contentWrapper { width: 100%; + min-width: 306px; max-width: 1080px; - margin-top: 100px; + margin-top: 83px; ul { display: grid; grid-template-columns: 1fr; - row-gap: 20px; + row-gap: 15px; + width: 100%; - @media (min-width: 1080px) { + @media (min-width: 1100px) { grid-template-columns: 1fr 1fr; column-gap: 25px; } - margin-top: 30px; - margin-bottom: 60px; + margin-top: 20px; + margin-bottom: 40px; } } @@ -34,16 +36,17 @@ row-gap: 10px; width: 100%; - margin-bottom: 30px; + margin: 20px 0; - @media (min-width: 768px) { + @media (min-width: 500px) { flex-direction: row; justify-content: space-between; align-items: center; } h1 { - font-size: 24px; + font-size: 20px; + font-weight: var(--font-weight-medium); } }