diff --git a/src/entities/projects/ui/project-insert/ProjectCategoryCard.tsx b/src/entities/projects/ui/project-insert/ProjectCategoryCard.tsx index 9ff38a0..16f18c7 100644 --- a/src/entities/projects/ui/project-insert/ProjectCategoryCard.tsx +++ b/src/entities/projects/ui/project-insert/ProjectCategoryCard.tsx @@ -3,6 +3,8 @@ import type { SelectChangeEvent } from "@mui/material"; import { useTheme } from "@mui/material/styles"; import type { CSSProperties, JSX } from "react"; +import SimpleFormCard from "@shared/ui/project-insert/SimpleFormCard"; + interface ProjectCategoryCardProps { value: string; onChange: (event: SelectChangeEvent) => void; @@ -10,9 +12,6 @@ interface ProjectCategoryCardProps { style?: CSSProperties; } -const CARD_SHADOW = - "0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1)"; - const ProjectCategoryCard = ({ value, onChange, @@ -21,49 +20,13 @@ const ProjectCategoryCard = ({ }: ProjectCategoryCardProps): JSX.Element => { const theme = useTheme(); return ( -
-
- - 🏷️ - {" "} - 프로젝트 분야 -
-
- 어떤 분야의 프로젝트인지 선택해주세요 -
-
- 가장 가까운 분야를 선택해주세요 -
-
+ ); }; diff --git a/src/entities/projects/ui/project-insert/ProjectDeadlineCard.tsx b/src/entities/projects/ui/project-insert/ProjectDeadlineCard.tsx index bad68f9..3b7e846 100644 --- a/src/entities/projects/ui/project-insert/ProjectDeadlineCard.tsx +++ b/src/entities/projects/ui/project-insert/ProjectDeadlineCard.tsx @@ -1,6 +1,7 @@ -import { useTheme } from "@mui/material/styles"; import type { ChangeEvent, CSSProperties, JSX } from "react"; +import SimpleFormCard from "@shared/ui/project-insert/SimpleFormCard"; + interface ProjectDeadlineCardProps { value: string; onChange: (e: ChangeEvent) => void; @@ -14,52 +15,14 @@ const ProjectDeadlineCard = ({ large, style, }: ProjectDeadlineCardProps): JSX.Element => { - const theme = useTheme(); return ( -
-
- - 📅 - {" "} - 모집 마감일 -
-
- 언제까지 팀원을 모집할까요? -
-
- 충분한 시간을 두고 설정하세요! -
-
+ ); }; diff --git a/src/entities/projects/ui/project-insert/ProjectOneLineCard.tsx b/src/entities/projects/ui/project-insert/ProjectOneLineCard.tsx index 58d19bc..a98210f 100644 --- a/src/entities/projects/ui/project-insert/ProjectOneLineCard.tsx +++ b/src/entities/projects/ui/project-insert/ProjectOneLineCard.tsx @@ -1,6 +1,9 @@ +import { TextField } from "@mui/material"; import { useTheme } from "@mui/material/styles"; import type { ChangeEvent, CSSProperties, JSX } from "react"; +import SimpleFormCard from "@shared/ui/project-insert/SimpleFormCard"; + interface ProjectOneLineCardProps { value: string; onChange: (e: ChangeEvent) => void; @@ -8,9 +11,6 @@ interface ProjectOneLineCardProps { style?: CSSProperties; } -const CARD_SHADOW = - "0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1)"; - const ProjectOneLineCard = ({ value, onChange, @@ -18,81 +18,51 @@ const ProjectOneLineCard = ({ style, }: ProjectOneLineCardProps): JSX.Element => { const theme = useTheme(); + return ( -
-
- - ✨ - {" "} - 한 줄 소개 -
-
- 프로젝트를 한 줄로 매력적으로 소개해주세요! -
- -
- 이모지를 활용하면 더 눈에 띄어요! -
-
+ ); }; diff --git a/src/entities/projects/ui/project-insert/ProjectSimpleDescCard.tsx b/src/entities/projects/ui/project-insert/ProjectSimpleDescCard.tsx index 2c80eb1..61d2f02 100644 --- a/src/entities/projects/ui/project-insert/ProjectSimpleDescCard.tsx +++ b/src/entities/projects/ui/project-insert/ProjectSimpleDescCard.tsx @@ -1,9 +1,11 @@ -import { useTheme } from "@mui/material/styles"; +import { TextField } from "@mui/material"; import type { ChangeEvent, CSSProperties, JSX } from "react"; +import SimpleFormCard from "@shared/ui/project-insert/SimpleFormCard"; + interface ProjectSimpleDescCardProps { value: string; - onChange: (e: ChangeEvent) => void; + onChange: (e: ChangeEvent) => void; large?: boolean; style?: CSSProperties; } @@ -14,88 +16,49 @@ const ProjectSimpleDescCard = ({ large, style, }: ProjectSimpleDescCardProps): JSX.Element => { - const theme = useTheme(); return ( -
-
- - 📝 - {" "} - 프로젝트 간단 소개 -
-
- 프로젝트에 대해 간단히 설명해주세요! (상세 설명은 다음 단계에서 - 작성합니다) -
-