Skip to content

Commit ab2f7c4

Browse files
committed
design: 반응형 조정
1 parent 33fb928 commit ab2f7c4

File tree

5 files changed

+12
-8
lines changed

5 files changed

+12
-8
lines changed

src/pages/Home/components/FloatingLetters.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const FloatingLetters = () => {
1616
lettersRef.current.forEach((letter, index) => {
1717
gsap.to(letter, {
1818
// x: Math.random() * 50 - 40,
19-
y: Math.random() * 20 - 40 + 'vh', // 위아래 이동
19+
y: Math.random() * 20 - 30 + 'vh', // 위아래 이동
2020
rotation: Math.random() * 50 - 25, // 회전
2121
duration: Math.random() * 3 + 2, // 지속 시간
2222
repeat: -1, // 무한 반복
@@ -35,7 +35,7 @@ const FloatingLetters = () => {
3535
ref={(el) => {
3636
if (el) lettersRef.current[index] = el;
3737
}}
38-
className="absolute w-20 opacity-90"
38+
className="absolute w-20 opacity-90 md:w-24"
3939
style={{
4040
left: `${index * 30 + 30}px`, // 편지지 간격
4141
top: '60vh',

src/pages/Home/components/GoToLetterBoard.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,15 @@ import goToLetterBoard from '@/assets/images/go-to-letter-board.png';
44

55
const GoToLetterBoard = () => {
66
return (
7-
<div className="absolute bottom-48 left-[calc(var(--vh)*33)] z-9 flex w-full">
7+
<div className="absolute right-[-56%] bottom-[28%] z-9 flex w-full md:right-[-42%]">
88
<div className="text-left">
99
<p className="text-gray-60 body-r mb-1 ml-2">게시판</p>
1010
<Link to="/board/letter">
11-
<img src={goToLetterBoard} alt="go to letter board" className="w-[177px]" />
11+
<img
12+
src={goToLetterBoard}
13+
alt="go to letter board"
14+
className="w-[160px] sm:w-[200px] md:w-[240px]"
15+
/>
1216
</Link>
1317
</div>
1418
</div>

src/pages/Home/components/GoToLetterBox.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ const GoToLetterBox = () => {
2828
}, []);
2929

3030
return (
31-
<div className="absolute bottom-15 left-5 z-9 flex">
31+
<div className="absolute bottom-[11%] left-5 z-9 flex">
3232
<div className="text-left">
3333
<p className="text-gray-60 body-r mb-1 ml-2">내 편지함</p>
3434
<Link to="/letter/box">
3535
<img
3636
src={arrivedCount ? goToLetterBoxNewLetters : goToLetterBox}
3737
alt="go to letter box"
38-
className="w-[206.5px]"
38+
className="w-[190px] sm:w-[210px] md:w-[240px]"
3939
/>
4040
</Link>
4141
</div>

src/pages/Home/components/HomeBackgroundRightBottom.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const HomeBackgroundRightBottom = () => {
55
return (
66
<BackgroundImageWrapper
77
as="div"
8-
className="absolute bottom-0 z-[10] h-[calc(var(--vh)*20)] w-full min-w-[600px] -translate-x-1/4 overflow-hidden"
8+
className="absolute bottom-0 z-10 h-[20%] w-full min-w-[600px] -translate-x-1/4 overflow-hidden md:w-[920px]"
99
imageUrl={homeRightMountainBottom}
1010
/>
1111
);

src/pages/Home/components/HomeBackgroundRightTop.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const HomeBackgroundRightTop = () => {
44
return (
55
<BackgroundImageWrapper
66
as="div"
7-
className="absolute bottom-0 z-8 h-[calc(var(--vh)*32)] w-full min-w-[760px] -translate-x-1/4 overflow-hidden"
7+
className="absolute bottom-0 z-8 h-[35%] w-full min-w-[760px] -translate-x-1/4 overflow-hidden md:w-[1200px]"
88
imageUrl={homeRightMountainTop}
99
/>
1010
);

0 commit comments

Comments
 (0)