From 49e4dd78e0c062e82fa45dd762fbf8f7e01f1bd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EC=98=81=ED=9B=88?= Date: Wed, 28 Aug 2024 12:07:14 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20[70]=20=ED=8F=BC=20=EC=97=90?= =?UTF-8?q?=EB=9F=AC=20=EB=A9=94=EC=8B=9C=EC=A7=80=20=EB=94=94=EC=9E=90?= =?UTF-8?q?=EC=9D=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Survey/create-survey-page1.styles.ts | 18 ++++++++ .../components/Survey/create-survey-page1.tsx | 43 ++++++++++++++----- web/src/components/auth/sign-up1.tsx | 9 ++-- web/src/components/common/form/form.styles.ts | 6 +-- 4 files changed, 58 insertions(+), 18 deletions(-) diff --git a/web/src/components/Survey/create-survey-page1.styles.ts b/web/src/components/Survey/create-survey-page1.styles.ts index 37382fd..17a9f12 100644 --- a/web/src/components/Survey/create-survey-page1.styles.ts +++ b/web/src/components/Survey/create-survey-page1.styles.ts @@ -56,6 +56,9 @@ export const CreateSurveyPageContent = styled.section` color: ${COLORS.Gray3}; } } + .error { + border-color: #ff4848; + } .textarea { border: none; @@ -71,10 +74,22 @@ export const CreateSurveyPageContent = styled.section` color: ${COLORS.Gray2}; font-size: 0.875rem; font-size: 400; + } + + .date-label { + display: flex; + align-items: center; margin-bottom: 0.625rem; + .error-text { + margin-left: 0.5rem; + font-size: 0.75rem; + font-weight: 400; + color: #ff4848; + } } .date-container { + position: relative; height: 2.875rem; display: flex; align-items: center; @@ -84,6 +99,9 @@ export const CreateSurveyPageContent = styled.section` border-radius: 10px; padding: 0.5rem 0.75rem; } + .date-error { + border-color: #ff4848; + } } .button { diff --git a/web/src/components/Survey/create-survey-page1.tsx b/web/src/components/Survey/create-survey-page1.tsx index a76037f..126d95b 100644 --- a/web/src/components/Survey/create-survey-page1.tsx +++ b/web/src/components/Survey/create-survey-page1.tsx @@ -86,16 +86,21 @@ export const CreateSurveyPageStep1 = () => { ( + render={({ field, fieldState }) => ( - + )} /> @@ -111,14 +116,26 @@ export const CreateSurveyPageStep1 = () => { className="textarea" /> - + )} /> - -
+
+ + {(form.getFieldState('eventPeriod.startDate').error || + form.getFieldState('eventPeriod.endDate').error) && ( +

이벤트 진행 기간을 입력해주세요

+ )} +
+
{ minDate={startDate} /> - ); }} @@ -156,14 +172,20 @@ export const CreateSurveyPageStep1 = () => { minDate={startDate} /> - ); }} />
- -
+
+ + {form.getFieldState('announcementDate').error && ( +

당첨자 발표일시를 입력해주세요

+ )} +
+
{ minDate={endDate} /> - ); }} diff --git a/web/src/components/auth/sign-up1.tsx b/web/src/components/auth/sign-up1.tsx index fd11ade..ded7b68 100644 --- a/web/src/components/auth/sign-up1.tsx +++ b/web/src/components/auth/sign-up1.tsx @@ -8,6 +8,8 @@ import styled from 'styled-components'; import { Subtitle } from '../common/Subtitle'; import { useNavigate } from 'react-router-dom'; + +import rightArrow from '@/assets/rightarrow.png'; import checkRound from '../../assets/checkRound.png'; import uncheckRound from '../../assets/uncheckRound.png'; @@ -60,7 +62,6 @@ export const SignUp1: React.FC = () => { /> - {/* */} handleCheck('terms')}> @@ -75,7 +76,7 @@ export const SignUp1: React.FC = () => { href="https://phase-comic-d2b.notion.site/c77adc8b28934f1194b9787150a16364?pvs=4" target="blank" > - {/* */} + @@ -91,7 +92,7 @@ export const SignUp1: React.FC = () => { href="https://phase-comic-d2b.notion.site/7ab3169dc4564272b42c0074d86e5806?pvs=4" target="blank" > - {/* */} + @@ -107,7 +108,7 @@ export const SignUp1: React.FC = () => { href="https://phase-comic-d2b.notion.site/7b8c9c80568f4599acd1046c619425ee?pvs=4" target="blank" > - {/* */} + diff --git a/web/src/components/common/form/form.styles.ts b/web/src/components/common/form/form.styles.ts index 0cee412..e28ca96 100644 --- a/web/src/components/common/form/form.styles.ts +++ b/web/src/components/common/form/form.styles.ts @@ -19,7 +19,7 @@ export const StyledFormDescription = styled.p` `; export const StyledFormMessage = styled.p` - font-size: 0.875rem; - font-weight: 500; - color: red; + font-size: 0.75rem; + font-weight: 400; + color: #ff4848; `;