diff --git a/front/public/models/img/Bottom/bottom.webp b/front/public/models/img/Bottom/bottom.webp
new file mode 100644
index 0000000..f508850
Binary files /dev/null and b/front/public/models/img/Bottom/bottom.webp differ
diff --git a/front/public/models/img/Bottom/bottom1.png b/front/public/models/img/Bottom/bottom1.png
deleted file mode 100644
index 3641a84..0000000
Binary files a/front/public/models/img/Bottom/bottom1.png and /dev/null differ
diff --git a/front/public/models/img/Bottom/bottom2.webp b/front/public/models/img/Bottom/bottom2.webp
new file mode 100644
index 0000000..ac39e18
Binary files /dev/null and b/front/public/models/img/Bottom/bottom2.webp differ
diff --git a/front/public/models/img/Bottom/bottom3.webp b/front/public/models/img/Bottom/bottom3.webp
new file mode 100644
index 0000000..f43fdcd
Binary files /dev/null and b/front/public/models/img/Bottom/bottom3.webp differ
diff --git a/front/public/models/img/Deco/chest.webp b/front/public/models/img/Deco/chest.webp
new file mode 100644
index 0000000..0a186f3
Binary files /dev/null and b/front/public/models/img/Deco/chest.webp differ
diff --git a/front/public/models/img/Deco/ddong.webp b/front/public/models/img/Deco/ddong.webp
new file mode 100644
index 0000000..a43a679
Binary files /dev/null and b/front/public/models/img/Deco/ddong.webp differ
diff --git a/front/public/models/img/Deco/fishBread.webp b/front/public/models/img/Deco/fishBread.webp
new file mode 100644
index 0000000..5fe177f
Binary files /dev/null and b/front/public/models/img/Deco/fishBread.webp differ
diff --git a/front/public/models/img/Deco/gingerBread.webp b/front/public/models/img/Deco/gingerBread.webp
new file mode 100644
index 0000000..4f788b2
Binary files /dev/null and b/front/public/models/img/Deco/gingerBread.webp differ
diff --git a/front/public/models/img/Deco/miniSnowMan.webp b/front/public/models/img/Deco/miniSnowMan.webp
new file mode 100644
index 0000000..f88ace3
Binary files /dev/null and b/front/public/models/img/Deco/miniSnowMan.webp differ
diff --git a/front/public/models/img/Deco/ribbonBox.webp b/front/public/models/img/Deco/ribbonBox.webp
new file mode 100644
index 0000000..4d023d1
Binary files /dev/null and b/front/public/models/img/Deco/ribbonBox.webp differ
diff --git a/front/public/models/img/Deco/socks.webp b/front/public/models/img/Deco/socks.webp
new file mode 100644
index 0000000..f0b2879
Binary files /dev/null and b/front/public/models/img/Deco/socks.webp differ
diff --git a/front/public/models/img/Main/bcduck.webp b/front/public/models/img/Main/bcduck.webp
new file mode 100644
index 0000000..43b82b8
Binary files /dev/null and b/front/public/models/img/Main/bcduck.webp differ
diff --git a/front/public/models/img/Main/bcduck_glasses.webp b/front/public/models/img/Main/bcduck_glasses.webp
new file mode 100644
index 0000000..2e38f2a
Binary files /dev/null and b/front/public/models/img/Main/bcduck_glasses.webp differ
diff --git a/front/public/models/img/Main/lamp.webp b/front/public/models/img/Main/lamp.webp
new file mode 100644
index 0000000..6343a3f
Binary files /dev/null and b/front/public/models/img/Main/lamp.webp differ
diff --git a/front/public/models/img/Main/santa.webp b/front/public/models/img/Main/santa.webp
new file mode 100644
index 0000000..f18cbdc
Binary files /dev/null and b/front/public/models/img/Main/santa.webp differ
diff --git a/front/public/models/img/Main/snowman.webp b/front/public/models/img/Main/snowman.webp
new file mode 100644
index 0000000..9e1918c
Binary files /dev/null and b/front/public/models/img/Main/snowman.webp differ
diff --git a/front/public/models/img/Main/tree.webp b/front/public/models/img/Main/tree.webp
new file mode 100644
index 0000000..9cd6997
Binary files /dev/null and b/front/public/models/img/Main/tree.webp differ
diff --git a/front/public/models/img/Main/tux.webp b/front/public/models/img/Main/tux.webp
new file mode 100644
index 0000000..12089b7
Binary files /dev/null and b/front/public/models/img/Main/tux.webp differ
diff --git a/front/src/constants/deco.tsx b/front/src/constants/deco.tsx
index fd52782..b818b73 100644
--- a/front/src/constants/deco.tsx
+++ b/front/src/constants/deco.tsx
@@ -19,37 +19,44 @@ export const DECO = [
{
name: '선물상자',
fileName: '/models/ribbonBox.glb',
- img: '/models/img/Deco/ribbonBox.gif'
+ img: '/models/img/Deco/ribbonBox.gif',
+ webp: '/models/img/Deco/ribbonBox.webp'
},
{
name: '붕어빵',
fileName: '/models/fishBread.glb',
- img: '/models/img/Deco/fishBread.gif'
+ img: '/models/img/Deco/fishBread.gif',
+ webp: '/models/img/Deco/fishBread.webp'
},
{
name: '진저브레드',
fileName: '/models/gingerBread.glb',
- img: '/models/img/Deco/gingerBread.gif'
+ img: '/models/img/Deco/gingerBread.gif',
+ webp: '/models/img/Deco/gingerBread.webp'
},
{
name: '마크상자',
fileName: '/models/chest.glb',
- img: '/models/img/Deco/chest.gif'
+ img: '/models/img/Deco/chest.gif',
+ webp: '/models/img/Deco/chest.webp'
},
{
name: '똥',
fileName: '/models/ddong.glb',
- img: '/models/img/Deco/ddong.gif'
+ img: '/models/img/Deco/ddong.gif',
+ webp: '/models/img/Deco/ddong.webp'
},
{
name: '미니눈사람',
fileName: '/models/miniSnowMan.glb',
- img: '/models/img/Deco/miniSnowMan.gif'
+ img: '/models/img/Deco/miniSnowMan.gif',
+ webp: '/models/img/Deco/miniSnowMan.webp'
},
{
name: '양말',
fileName: '/models/socks.glb',
- img: '/models/img/Deco/socks.gif'
+ img: '/models/img/Deco/socks.gif',
+ webp: '/models/img/Deco/socks.webp'
}
];
@@ -58,27 +65,32 @@ export const MAIN = [
{
name: '턱스',
fileName: '/models/tux.glb',
- img: '/models/img/Main/tux.gif'
+ img: '/models/img/Main/tux.gif',
+ webp: '/models/img/Main/tux.webp'
},
{
name: '산타',
fileName: '/models/santa.glb',
- img: '/models/img/Main/santa.gif'
+ img: '/models/img/Main/santa.gif',
+ webp: '/models/img/Main/santa.webp'
},
{
name: '부캠덕',
fileName: '/models/bcduck.glb',
- img: '/models/img/Main/bcduck.gif'
+ img: '/models/img/Main/bcduck.gif',
+ webp: '/models/img/Main/bcduck.webp'
},
{
name: '안경부캠덕',
fileName: '/models/bcduck_glasses.glb',
- img: '/models/img/Main/bcduck_glasses.gif'
+ img: '/models/img/Main/bcduck_glasses.gif',
+ webp: '/models/img/Main/bcduck_glasses.webp'
},
{
name: '눈사람',
fileName: '/models/snowman.glb',
- img: '/models/img/Main/snowman.gif'
+ img: '/models/img/Main/snowman.gif',
+ webp: '/models/img/Main/snowman.webp'
}
];
@@ -137,21 +149,25 @@ export const BOTTOM = [
{
name: '받침대',
fileName: '/models/bottom.glb',
- img: '/models/img/Bottom/bottom.png'
+ img: '/models/img/Bottom/bottom.png',
+ webp: '/models/img/Bottom/bottom.webp'
},
{
name: '받침대1',
fileName: '/models/bottom1.glb',
- img: '/models/img/Bottom/bottom1.png'
+ img: '/models/img/Bottom/bottom.png',
+ webp: '/models/img/Bottom/bottom.webp'
},
{
name: '받침대2',
fileName: '/models/bottom2.glb',
- img: '/models/img/Bottom/bottom2.png'
+ img: '/models/img/Bottom/bottom2.png',
+ webp: '/models/img/Bottom/bottom2.webp'
},
{
name: '받침대3',
fileName: '/models/bottom3.glb',
- img: '/models/img/Bottom/bottom3.png'
+ img: '/models/img/Bottom/bottom3.png',
+ webp: '/models/img/Bottom/bottom3.webp'
}
];
diff --git a/front/src/pages/Make/Snowball/MainDeco/DecoBox.tsx b/front/src/pages/Make/Snowball/MainDeco/DecoBox.tsx
index 298a663..0f37834 100644
--- a/front/src/pages/Make/Snowball/MainDeco/DecoBox.tsx
+++ b/front/src/pages/Make/Snowball/MainDeco/DecoBox.tsx
@@ -25,35 +25,57 @@ const StyledImg = styled.img`
width: 100%;
`;
+const StyledPicture = styled.picture`
+ width: 100%;
+`;
+
const DecoImgs = (folder: string) => {
const setMakeDecoBox = useSetRecoilState(MakeDecoRecoil);
return folder === 'Main'
- ? MAIN.map(({ img }, index) => {
+ ? MAIN.map(({ img, webp }, index) => {
if (index > 0)
return (
-
- setMakeDecoBox(prev => ({ ...prev, mainDecoID: index }))
- }
- />
+
+
);
})
- : BOTTOM.map(({ img }, index) => {
+ : BOTTOM.map(({ img, webp }, index) => {
if (index > 0)
return (
-
- setMakeDecoBox(prev => ({ ...prev, bottomID: index }))
- }
- />
+
+
);
});
diff --git a/front/src/pages/Visit/Deco/DecoBox.tsx b/front/src/pages/Visit/Deco/DecoBox.tsx
index d886e11..a9974ee 100644
--- a/front/src/pages/Visit/Deco/DecoBox.tsx
+++ b/front/src/pages/Visit/Deco/DecoBox.tsx
@@ -25,6 +25,10 @@ const StyledImg = styled.img`
width: 100%;
`;
+const StyledPicture = styled.picture`
+ width: 100%;
+`;
+
const StyledColorBox = styled(StyledBox)`
background-color: ${props => props.color};
`;
@@ -33,17 +37,26 @@ const DecoImgs = (folder: string) => {
const setVisitDecoBox = useSetRecoilState(VisitDecoRecoil);
return folder === 'Deco'
- ? DECO.map(({ img }, index) => {
+ ? DECO.map(({ img, webp }, index) => {
if (index > 0)
return (
-
- setVisitDecoBox(prev => ({ ...prev, decoID: index }))
- }
- />
+
+
);
})