{children}
; +} diff --git a/src/components/auth/login/LoginPageTitle.tsx b/src/components/auth/login/LoginPageTitle.tsx deleted file mode 100644 index 67c3393..0000000 --- a/src/components/auth/login/LoginPageTitle.tsx +++ /dev/null @@ -1,7 +0,0 @@ -export function LoginPageTitle() { - return ( -오늘도 만나서 반가워요!
; -} diff --git a/src/components/auth/signup/SignupForm.tsx b/src/components/auth/signup/SignupForm.tsx new file mode 100644 index 0000000..6585e50 --- /dev/null +++ b/src/components/auth/signup/SignupForm.tsx @@ -0,0 +1,76 @@ +"use client"; + +import { cn } from "@/lib/utils"; +import { Button } from "@/shared/button"; +import { Input } from "@/shared/input"; +import { SignupFormProps } from "@/types/auth"; +import Link from "next/link"; +import { SignupStepIndicator } from "./SignupStepIndicator"; + +export function SignupForm({ + className, + fieldId, + fieldName, + label, + type = "text", + placeholder, + autoComplete, + nextHref, + prevHref, +}: SignupFormProps) { + return ( + + ); +} diff --git a/src/components/auth/signup/SignupGroupButton.tsx b/src/components/auth/signup/SignupGroupButton.tsx index bdb4b1b..02fffd5 100644 --- a/src/components/auth/signup/SignupGroupButton.tsx +++ b/src/components/auth/signup/SignupGroupButton.tsx @@ -1,45 +1,84 @@ "use client"; -import { SIGNUP_BTNS } from "@/lib/constants"; +import { useFadeSlideInOnMount } from "@/hooks/useMotionPresets"; import { cn } from "@/lib/utils"; import { Button } from "@/shared/button"; import { Icon } from "@/shared/Icon"; import Image from "next/image"; +import Link from "next/link"; import * as React from "react"; -interface Props { +interface SignupGroupButtonProps { className?: string; } -export const SignupGroupButton = React.forwardRef원하시는 가입 방식을 선택해주세요.
; -} diff --git a/src/lib/constants.ts b/src/lib/constants.ts index bb6689d..15e7bba 100644 --- a/src/lib/constants.ts +++ b/src/lib/constants.ts @@ -27,35 +27,6 @@ export const OG_DEFAULT_IMAGE = "/og/og-default.png"; /** 언어 / 지역 설정 */ export const LOCALE = "ko_KR"; -/* ------------------------------------------------- - 🪪 회원가입 버튼 목록 (Signup Buttons) - - SignupGroupButton에서 사용 - - bg: cva variant key와 1:1 매핑 - ------------------------------------------------- */ - -export const SIGNUP_BTNS = [ - { - key: "email", - bg: "basic" as const, - label: "일반 회원가입", - icon: { kind: "lucide" as const, name: "user-plus2" as const, size: 28 }, // 28px ≒ w-7 h-7 - }, - { - key: "google", - bg: "google" as const, - label: "Google로 가입", - icon: { kind: "image" as const, src: "/icons/google.svg", width: 36, height: 36 }, - }, - { - key: "kakao", - bg: "kakao" as const, - label: "카카오로 가입", - icon: { kind: "image" as const, src: "/icons/kakaotalk.svg", width: 36, height: 36 }, - }, -] as const; - -export type SignupButtonKey = (typeof SIGNUP_BTNS)[number]["key"]; - /* ------------------------------------------------- 🧩 Layout - Footer - LandingFooter에서 사용 diff --git a/src/lib/variants/button.auth.ts b/src/lib/variants/button.auth.ts index 03a3450..8a2f734 100644 --- a/src/lib/variants/button.auth.ts +++ b/src/lib/variants/button.auth.ts @@ -36,6 +36,7 @@ export const loginButtonVariants = cva( "border-0", "hover:bg-[var(--color-yellow-200)]", ].join(" "), + white: ["bg-withe", "text-black", "hover:bg-[var(--color-gray-100)]"], }, }, defaultVariants: { diff --git a/src/stores/authForm.store.ts b/src/stores/authForm.store.ts index b0783c6..008d989 100644 --- a/src/stores/authForm.store.ts +++ b/src/stores/authForm.store.ts @@ -1,4 +1,4 @@ -import type { AuthFormState } from "@/types/authForm"; +import type { AuthFormState } from "@/types/auth"; import { create } from "zustand"; export const useAuthFormStore = create