Skip to content

Commit

Permalink
style: responsive
Browse files Browse the repository at this point in the history
  • Loading branch information
minSsan committed Jun 4, 2024
1 parent 51b4748 commit 568ba35
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 8 deletions.
26 changes: 22 additions & 4 deletions src/app/(default)/main.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@
height: 24rem;
}

@media screen and (max-width: 768px) {
.main > img {
display: none;
}
}

.info_heading {
font-family: "NotoSansMedium";

Expand Down Expand Up @@ -60,16 +66,28 @@
grid-template-columns: repeat(9, 1fr);
gap: 3px;

margin-bottom: 150px;
margin-bottom: 9.375rem;
}

@media screen and (max-width: 768px) {
.menuGrid {
grid-template-columns: repeat(6, 1fr);
}
}

@media screen and (max-width: 480px) {
.menuGrid {
grid-template-columns: repeat(3, 1fr);
}
}

.databoardGrid {
display: grid;
gap: 140px;
gap: 8.75rem;

max-width: 1200px;
padding: 0 20px;
padding-bottom: 100px;
padding: 0 1.25rem;
padding-bottom: 6.25rem;
margin: 0 auto;
overflow-x: hidden;
}
4 changes: 1 addition & 3 deletions src/app/(default)/search-result/search-result.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,7 @@ export default function SearchResult({
{/* //* 검색창 */}
{/* //TODO */}
<SearchBox
boxstyle={{
margin: "3.75rem 8rem 6rem 8rem",
}}
className={styles.searchBox}
handleSubmit={handleSearchSubmit}
initKeyword={searchParams.get(SERVER_PARAMS_KEY.KEYWORD)}
/>
Expand Down
12 changes: 12 additions & 0 deletions src/app/(default)/search-result/searchResult.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,18 @@
font-size: 0.875rem;
}

.searchBox {
margin: 3.75rem 8rem 6rem 8rem;
}

@media screen and (max-width: 768px) {
.searchBox {
margin-left: 0;
margin-right: 0;
width: 100%;
}
}

.keywordTitle {
font-size: 1.5rem;
font-family: "NotoSansBold";
Expand Down
16 changes: 15 additions & 1 deletion src/components/data-board/data-board.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,24 @@

.dataBoard {
display: grid;
gap: 32px;
gap: 2rem;
grid-template-columns: repeat(3, 1fr);
}

@media screen and (max-width: 1024px) {
.dataBoard {
gap: 4rem;
grid-template-columns: repeat(2, 1fr);
}
}

@media screen and (max-width: 767px) {
.dataBoard {
gap: 4rem;
grid-template-columns: repeat(1, 1fr);
}
}

.dataCard {
display: flex;
overflow: hidden;
Expand Down
1 change: 1 addition & 0 deletions src/components/dataset-viewer/dataset-viewer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ export function DatasetViewer({
display: "flex",
justifyContent: "space-between",
marginBottom: "2.5rem",
flexWrap: "wrap",
}}
>
{/* //? 제목 */}
Expand Down

0 comments on commit 568ba35

Please sign in to comment.