Skip to content

Commit 060f24b

Browse files
authored
feat:개인정보처리방침 & 이용약관 320적용 (#287)
1 parent 93c1f45 commit 060f24b

File tree

2 files changed

+17
-7
lines changed

2 files changed

+17
-7
lines changed

src/pages/footer/PolicyBar.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,14 @@
99
width: clamp(688px, 55.417vw, 66.5rem);
1010
}
1111
@include r.media-tablet {
12-
width: clamp(440px, 35.833vw, 688px);
12+
width: 688px;
1313
}
1414
@include r.media-mobile {
1515
width: 440px;
1616
}
17+
@include r.media-small-mobile {
18+
width: 280px;
19+
}
1720
& {
1821
border: 1px solid var(--grey-grey7, #3c3c3c);
1922
}

src/pages/footer/PolicyContent.jsx

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,15 @@ const PolicyContent = ({ page = 0 }) => {
2121
const [numPages, setNumPages] = useState(null);
2222
const { width: windowWidth } = useWindowDimensions();
2323

24-
// 창 크기가 768px 이상일 때 값
24+
// 기본: 768px 이상
2525
let calculatedWidth = 686;
2626

27-
if (windowWidth <= 767) {
28-
const vwWidth = windowWidth * 0.35833;
29-
calculatedWidth = Math.min(Math.max(vwWidth, 440), 688);
30-
} else if (windowWidth <= 480) {
27+
// 480 미만 먼저 체크 → 280px
28+
if (windowWidth < 480) {
29+
calculatedWidth = 280;
30+
}
31+
// 480 이상 768 미만 → 440px
32+
else if (windowWidth < 768) {
3133
calculatedWidth = 440;
3234
}
3335

@@ -46,7 +48,12 @@ const PolicyContent = ({ page = 0 }) => {
4648
loading={<PartialLoading />}
4749
>
4850
{Array.from(new Array(numPages), (el, index) => (
49-
<Page key={index} renderMode="canvas" pageNumber={index + 1} width={calculatedWidth} />
51+
<Page
52+
key={index}
53+
renderMode="canvas"
54+
pageNumber={index + 1}
55+
width={calculatedWidth}
56+
/>
5057
))}
5158
</Document>
5259
</div>

0 commit comments

Comments
 (0)