Skip to content

Commit ff1a17a

Browse files
committed
[fix] 다시 수정
1 parent 1353b45 commit ff1a17a

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

src/domains/main/cocktailDrop/CocktailDrop.tsx

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -45,22 +45,17 @@ function CocktailDrop({ isDesktop = false }: CocktailDropProps) {
4545

4646
// 로고 위에서 아래로 자연스럽게 등장
4747
const screenWidth = window.innerWidth;
48+
4849
const viewportHeight = window.innerHeight;
49-
const isMobile = screenWidth < 640;
5050
const isTablet = screenWidth >= 640 && screenWidth < 1024;
51-
const isDesktop = screenWidth >= 1024 && screenWidth < 1440;
52-
const isLargeDesktop = screenWidth >= 1440;
51+
const isMobile = screenWidth < 640;
5352

5453
// 뷰포트 높이 기반으로 로고 위치 계산
5554
const logoFinalY = isMobile
5655
? `-${viewportHeight * 0.3}px`
5756
: isTablet
58-
? `${viewportHeight * 0.1}px`
59-
: isDesktop
60-
? -`${viewportHeight * 0.03}px`
61-
: isLargeDesktop
62-
? `${viewportHeight * 0.9}px`
63-
: '0px';
57+
? `-${viewportHeight * -0.8}px`
58+
: '0px';
6459

6560
gsap.fromTo(
6661
logoRef.current,

src/domains/main/components/3d/HomeText.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ function HomeText({ isDesktop }: { isDesktop: boolean }) {
77
SSoul이 쉽게 골라드릴게요.
88
</p>
99
) : (
10-
<p className="absolute bottom-45 right-12 font-serif text-2xl text-right font-normal z-20">
10+
<p className="absolute bottom-45 right-32 font-serif text-2xl text-right font-normal z-20">
1111
어떤 칵테일이 끌리시나요? <br /> SSoul이 쉽게 골라드릴게요.
1212
</p>
1313
)}

0 commit comments

Comments
 (0)