- 테스트시작
-
+
diff --git a/components/matchingtest/UserStyle.tsx b/components/matchingtest/UserStyle.tsx
index 21ef5c7..8a54e53 100644
--- a/components/matchingtest/UserStyle.tsx
+++ b/components/matchingtest/UserStyle.tsx
@@ -1,4 +1,17 @@
-import { SceneIcon, Testing } from '@/public/images';
+import {
+ SpicyGray,
+ WoodyGray,
+ CitrusGray,
+ ChypreGray,
+ AldehydeGray,
+ AromaticGray,
+ FloralGray,
+ LeatherGray,
+ GreenGray,
+ EarthyGray,
+ FruityGray,
+} from '@/public/images';
+import Image from 'next/image';
interface Family {
familyKorName: string;
@@ -13,17 +26,75 @@ interface UserStyleProps {
}
const UserStyle = ({ families }: UserStyleProps) => {
+ const getImageComponent = (familyEngName: string) => {
+ let imageSrc: any;
+ switch (familyEngName) {
+ case 'WOODY':
+ imageSrc = WoodyGray;
+ break;
+ case 'SPICY':
+ imageSrc = SpicyGray;
+ break;
+ case 'CITRUS':
+ imageSrc = CitrusGray;
+ break;
+ case 'CHYPRE':
+ imageSrc = ChypreGray;
+ break;
+ case 'ALDEHYDE':
+ imageSrc = AldehydeGray;
+ break;
+ case 'AROMATIC':
+ imageSrc = AromaticGray;
+ break;
+ case 'FLORAL':
+ imageSrc = FloralGray;
+ break;
+ case 'LEATHER':
+ imageSrc = LeatherGray;
+ break;
+ case 'GREEN':
+ imageSrc = GreenGray;
+ break;
+ case 'EARTHY':
+ imageSrc = EarthyGray;
+ break;
+ case 'FRUITY':
+ imageSrc = FruityGray;
+ break;
+ default:
+ }
+
+ return (
+
+ );
+ };
return (
-
+
- 당신에게 어울리는 계절코드
+ 당신에게 어울리는 계열코드
{families.map((family) => (
-
+
))}
@@ -32,8 +103,8 @@ const UserStyle = ({ families }: UserStyleProps) => {
{families.map((family) => (
-
-
+
+ {getImageComponent(family.familyEngName)}
@@ -43,7 +114,7 @@ const UserStyle = ({ families }: UserStyleProps) => {
-
{family.summary}
+
{family.summary}
{family.keyword.map((keywords) => (
diff --git a/components/matchingtest/Vibe.tsx b/components/matchingtest/Vibe.tsx
index 3a01358..73a9780 100644
--- a/components/matchingtest/Vibe.tsx
+++ b/components/matchingtest/Vibe.tsx
@@ -53,14 +53,15 @@ const Vibe = ({ updateSelection, handleSubmit }: VibeProps) => {
{ id: '가벼운', label: '가벼운' },
];
return (
-
+
-
향수로 어떤 분위기를
-
내고 싶으신가요?
+ 향수로 어떤 분위기를
+
+ 내고 싶으신가요?
-
*2개 선택 필수
-
+
*2개 선택 필수
+
{vibeOptions.map((option) => (