Skip to content

Commit

Permalink
Merge pull request #213 from oreumi-dreamer/jihun
Browse files Browse the repository at this point in the history
Footer 관련 레이아웃 수정
  • Loading branch information
jihun-io authored Dec 19, 2024
2 parents b5e1b88 + 956df63 commit 5067004
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 9 deletions.
26 changes: 19 additions & 7 deletions src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -199,17 +199,17 @@ body {
font-size: var(--body-font-size);
line-height: 1.44;
letter-spacing: 0.03em;
position: relative;
}

body:has(header):has(main):has(footer) {
width: 100%;
display: grid;
grid-template-columns: 1fr auto;
min-height: 100%;
height: auto;
background-color: var(--background-color);
column-gap: 6.4rem;
padding-left: calc(32rem);
padding-right: 8.4rem;
padding-left: 32rem;
padding-right: 26rem;
}

body {
Expand All @@ -222,14 +222,22 @@ main {
}

body:has(header):has(main):has(footer) main {
padding: 16.6rem 0 16.6rem 6.4rem;
padding: 16.6rem 6.4rem 16.6rem 6.4rem;
}

/* 404 페이지에서는 footer를 숨김 처리 */
/* 404 페이지에서는 header, footer를 숨김 처리 */
body:has(#not-found-wrap) header,
body:has(#not-found-wrap) footer {
display: none;
}

body:has(header):has(main):has(footer) footer {
position: absolute;
top: 0;
right: 0;
width: 20rem;
}

* {
font-family: inherit;
box-sizing: border-box;
Expand Down Expand Up @@ -262,7 +270,6 @@ body:has(#not-found-wrap) footer {
@media (max-width: 1152px) {
body:has(header):has(main):has(footer) {
padding-left: 10.4rem;
padding-right: calc(6.4rem + (100vw - 969px) * 0.26087 / 16);
}
}

Expand All @@ -274,12 +281,17 @@ body:has(#not-found-wrap) footer {
display: grid;
grid-template-columns: 1fr;
grid-template-rows: 1fr auto;
padding-right: 0;
}

body:has(header):has(main):has(footer) main {
padding-top: 16.6rem;
}

body:has(header):has(main):has(footer) footer {
position: inherit;
}

html body:has(header):has(main.no-posts):has(footer) footer {
width: 100%;
height: fit-content;
Expand Down
4 changes: 2 additions & 2 deletions src/components/footer/Footer.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
display: flex;
flex-direction: column;
align-items: flex-start;
margin: 19.1rem 0 0 0;
margin: 19.1rem 6rem 0 0;
max-width: 100%;
}

Expand All @@ -27,7 +27,7 @@
}

.recommend-wrap .recommend-list {
max-width: 26rem;
width: 20rem;
background-color: var(--background-white);
border-radius: 1.5rem;
filter: drop-shadow(6px 6px 9.4px rgba(0, 0, 0, 0.15));
Expand Down

0 comments on commit 5067004

Please sign in to comment.