Skip to content

Commit 02d4a00

Browse files
committed
모바일 이미지
1 parent f7cd698 commit 02d4a00

File tree

8 files changed

+125
-2600
lines changed

8 files changed

+125
-2600
lines changed

package-lock.json

Lines changed: 108 additions & 2597 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
"dependencies": {
2121
"@react-three/drei": "^10.7.6",
2222
"@react-three/fiber": "^9.3.0",
23-
"@react-three/gltfjsx": "^4.3.4",
2423
"@react-three/postprocessing": "^3.0.4",
2524
"@tanstack/react-query": "^5.90.2",
2625
"@tanstack/react-virtual": "^3.13.12",

public/mobileCocktail.webp

514 KB
Loading
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/domains/main/cocktailDrop/CocktailDrop.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function CocktailDrop() {
4444
logoRef.current,
4545
{ y: -300, opacity: 0 },
4646
{
47-
y: isMobile ? -140 : -40, // 모바일에서는 더 위로
47+
y: isMobile ? -140 : -18, // 모바일에서는 더 위로
4848
opacity: 1,
4949
duration: 3,
5050
ease: 'power3.out',

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

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import { useEffect } from 'react';
2+
import MobileCocktailDrop from '../../../../../public/mobileCocktail.webp';
3+
import Image from 'next/image';
24

35
interface Props {
46
onLoaded: () => void;
@@ -8,7 +10,20 @@ function ModelImage({ onLoaded }: Props) {
810
useEffect(() => {
911
onLoaded();
1012
});
11-
return <div className="w-full"></div>;
13+
return (
14+
<div className="w-full flex justify-center items-center absolute bottom-20 left-1/2 -translate-x-1/2">
15+
<div className="rounded-tr-4xl rounded-tl-4xl overflow-hidden">
16+
<Image
17+
src={MobileCocktailDrop}
18+
alt="모바일 칵테일 드랍"
19+
width={280}
20+
height={360}
21+
style={{ width: 'auto', height: 'auto' }}
22+
className="object-cover"
23+
/>
24+
</div>
25+
</div>
26+
);
1227
}
1328

1429
export default ModelImage;

0 commit comments

Comments
 (0)