diff --git a/src/app/sign-up/email/page.tsx b/src/app/sign-up/email/page.tsx index 88f810b..586cde1 100644 --- a/src/app/sign-up/email/page.tsx +++ b/src/app/sign-up/email/page.tsx @@ -1 +1 @@ -export { default } from "../../../components/pages/sign-up/email"; +export { default } from "../../../components/pages/sign-up/email-certification"; diff --git a/src/app/sign-up/id-card/page.tsx b/src/app/sign-up/id-card/page.tsx index 9fe5087..dc93a77 100644 --- a/src/app/sign-up/id-card/page.tsx +++ b/src/app/sign-up/id-card/page.tsx @@ -1 +1 @@ -export { default } from "../../../components/pages/sign-up/id-card"; +export { default } from "../../../components/pages/sign-up/id-card-certification"; diff --git a/src/app/sign-up/university/page.tsx b/src/app/sign-up/university/page.tsx new file mode 100644 index 0000000..05e0fd3 --- /dev/null +++ b/src/app/sign-up/university/page.tsx @@ -0,0 +1 @@ +export { default } from "../../../components/pages/sign-up/university-certification"; diff --git a/src/components/buttons/button-fill-large.tsx b/src/components/buttons/button-fill-large.tsx index ab13d0c..642c2c4 100644 --- a/src/components/buttons/button-fill-large.tsx +++ b/src/components/buttons/button-fill-large.tsx @@ -10,6 +10,7 @@ interface ButtonProps { state?: ButtonState; text: string; onClick: any; + bottom?: boolean; } const TEXT_COLOR = { @@ -29,10 +30,16 @@ const BUTTON_COLOR = { const ButtonFillLarge = ({ state = "active", text = "", + bottom = true, onClick }: ButtonProps) => { return ( - + {text} ); @@ -41,11 +48,12 @@ const ButtonFillLarge = ({ const ButtonWrapper = styled.button<{ state: ButtonState; text: string; + bottom: boolean; }>` width: 100%; min-height: 52px; padding: 0.88rem 3.75rem; - margin-bottom: 8rem; + margin-bottom: ${({ bottom }) => bottom && "8rem"}; text-align: center; color: ${({ state }) => TEXT_COLOR.default[state]}; diff --git a/src/components/pages/sign-up/email.tsx b/src/components/pages/sign-up/email-certification.tsx similarity index 84% rename from src/components/pages/sign-up/email.tsx rename to src/components/pages/sign-up/email-certification.tsx index 65ce339..d584508 100644 --- a/src/components/pages/sign-up/email.tsx +++ b/src/components/pages/sign-up/email-certification.tsx @@ -1,14 +1,12 @@ "use client"; import { useRouter } from "next/navigation"; import ButtonFillLarge from "src/components/buttons/button-fill-large"; -import ButtonFillSmall from "src/components/buttons/button-fill-small"; import Flex from "src/components/common/Flex"; import InputLine from "src/components/inputs/input-line"; import NavigationTop from "src/components/navigations/navigation-top"; -import ButtonGenderSelect from "src/components/sign-up/button-gender-select"; import { useInput } from "src/hooks/common/useInput"; -const SignIn = () => { +const EmailCertification = () => { const router = useRouter(); const email = useInput(); @@ -33,4 +31,4 @@ const SignIn = () => { ); }; -export default SignIn; +export default EmailCertification; diff --git a/src/components/pages/sign-up/id-card.tsx b/src/components/pages/sign-up/id-card-certification.tsx similarity index 100% rename from src/components/pages/sign-up/id-card.tsx rename to src/components/pages/sign-up/id-card-certification.tsx diff --git a/src/components/pages/sign-up/university-certification.tsx b/src/components/pages/sign-up/university-certification.tsx new file mode 100644 index 0000000..cc2bfeb --- /dev/null +++ b/src/components/pages/sign-up/university-certification.tsx @@ -0,0 +1,34 @@ +"use client"; +import { useRouter } from "next/navigation"; +import ButtonFillLarge from "src/components/buttons/button-fill-large"; +import Flex from "src/components/common/Flex"; +import NavigationTop from "src/components/navigations/navigation-top"; + +const UnivCertification = () => { + const router = useRouter(); + + return ( + + 왼} + title="회원 가입" + /> + + router.push("/sign-up/email")} + bottom={false} + /> + router.push("/sign-up/id-card")} + bottom={false} + /> + + + ); +}; + +export default UnivCertification;