From 34779d2d66946509e611eb635de6ce7055d501fd Mon Sep 17 00:00:00 2001 From: Seoyoung Date: Sun, 17 Nov 2024 21:23:54 +0900 Subject: [PATCH] =?UTF-8?q?Design:=20=ED=94=84=EB=A1=9C=ED=95=84=20?= =?UTF-8?q?=EC=84=A4=EC=A0=95=20ver3.0=20=EB=94=94=EC=9E=90=EC=9D=B8=20?= =?UTF-8?q?=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../profile/_components/ProfileForm.css.ts | 53 +++++--- .../profile/_components/ProfileForm.tsx | 117 +++++++++--------- src/app/account/profile/page.tsx | 1 - src/lib/constants/formInputValidationRules.ts | 7 ++ 4 files changed, 106 insertions(+), 72 deletions(-) diff --git a/src/app/account/profile/_components/ProfileForm.css.ts b/src/app/account/profile/_components/ProfileForm.css.ts index b7488212..49261ca9 100644 --- a/src/app/account/profile/_components/ProfileForm.css.ts +++ b/src/app/account/profile/_components/ProfileForm.css.ts @@ -1,6 +1,6 @@ import { style, createVar } from '@vanilla-extract/css'; -import { vars } from '@/styles/__theme.css'; -import { labelSmall, bodyMedium, caption } from '@/styles/__font.css'; +import { vars } from '@/styles/theme.css'; +import * as fonts from '@/styles/font.css'; export const form = style({ maxWidth: 400, @@ -8,37 +8,60 @@ export const form = style({ display: 'flex', flexDirection: 'column', - gap: '12px', + gap: '3.2rem', +}); + +export const field = style({ + display: 'flex', + flexDirection: 'column', }); export const inputContainer = style({ width: '100%', - padding: '10px 12px', + padding: '1.2rem 1.4rem', display: 'flex', flexDirection: 'column', gap: '8px', - border: `1px solid ${vars.color.gray5}`, - borderRadius: 10, + borderRadius: '1.2rem', + backgroundColor: vars.color.white, }); -export const label = style([labelSmall, { color: vars.color.gray7 }]); +export const label = style([ + fonts.BodyBold, + { + marginBottom: '1.2rem', + }, +]); -export const inputText = style([bodyMedium]); +export const inputText = style([ + fonts.BodyRegular, + { + color: vars.color.bluegray10, + '::placeholder': { + color: vars.color.bluegray6, + }, + }, +]); export const textarea = style([ - bodyMedium, + fonts.BodyRegular, { border: 'none', resize: 'none', + + color: vars.color.bluegray10, + '::placeholder': { + color: vars.color.bluegray6, + }, }, ]); export const textLength = style([ - bodyMedium, + fonts.BodyRegular, { - color: vars.color.gray7, + color: vars.color.bluegray6, textAlign: 'end', }, ]); @@ -54,7 +77,7 @@ const option = style({ justifyContent: 'center', alignItems: 'center', - backgroundColor: vars.color.gray5 /**TODO: white로 대체예정*/, + backgroundColor: vars.color.bggray, backgroundImage: imageUrl, backgroundSize: 'cover', @@ -124,7 +147,7 @@ export const profileOption = style([ export const validationMessage = style({ marginTop: '0.6rem', - marginLeft: '0.9rem', + marginLeft: '0.6rem', display: 'flex', alignItems: 'center', @@ -132,14 +155,14 @@ export const validationMessage = style({ }); export const errorText = style([ - caption, + fonts.Label, { color: vars.color.red, }, ]); export const successText = style([ - caption, + fonts.Label, { color: vars.color.blue, }, diff --git a/src/app/account/profile/_components/ProfileForm.tsx b/src/app/account/profile/_components/ProfileForm.tsx index 2e6a849f..98a53b12 100644 --- a/src/app/account/profile/_components/ProfileForm.tsx +++ b/src/app/account/profile/_components/ProfileForm.tsx @@ -151,9 +151,9 @@ export default function ProfileForm({ ) : (
{/* 닉네임 */} -
+
+
- -
+
+
-