Skip to content

Commit

Permalink
feat: add university certification page
Browse files Browse the repository at this point in the history
  • Loading branch information
hamo-o committed Aug 2, 2023
1 parent d6956de commit c60690a
Show file tree
Hide file tree
Showing 7 changed files with 49 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/app/sign-up/email/page.tsx
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { default } from "../../../components/pages/sign-up/email";
export { default } from "../../../components/pages/sign-up/email-certification";
2 changes: 1 addition & 1 deletion src/app/sign-up/id-card/page.tsx
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { default } from "../../../components/pages/sign-up/id-card";
export { default } from "../../../components/pages/sign-up/id-card-certification";
1 change: 1 addition & 0 deletions src/app/sign-up/university/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from "../../../components/pages/sign-up/university-certification";
12 changes: 10 additions & 2 deletions src/components/buttons/button-fill-large.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ interface ButtonProps {
state?: ButtonState;
text: string;
onClick: any;
bottom?: boolean;
}

const TEXT_COLOR = {
Expand All @@ -29,10 +30,16 @@ const BUTTON_COLOR = {
const ButtonFillLarge = ({
state = "active",
text = "",
bottom = true,
onClick
}: ButtonProps) => {
return (
<ButtonWrapper state={state} text={text} onClick={onClick}>
<ButtonWrapper
state={state}
text={text}
bottom={bottom}
onClick={onClick}
>
<Text typo="Subtitle2b">{text}</Text>
</ButtonWrapper>
);
Expand All @@ -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]};
Expand Down
Original file line number Diff line number Diff line change
@@ -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();

Expand All @@ -33,4 +31,4 @@ const SignIn = () => {
);
};

export default SignIn;
export default EmailCertification;
File renamed without changes.
34 changes: 34 additions & 0 deletions src/components/pages/sign-up/university-certification.tsx
Original file line number Diff line number Diff line change
@@ -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 (
<Flex direction="column" justify="start" gap={40}>
<NavigationTop
leftIcon={<div onClick={router.back}></div>}
title="회원 가입"
/>
<Flex direction="column" gap={24}>
<ButtonFillLarge
state="active"
text="학교 이메일로 인증하기"
onClick={() => router.push("/sign-up/email")}
bottom={false}
/>
<ButtonFillLarge
state="active"
text="학생증으로 인증하기"
onClick={() => router.push("/sign-up/id-card")}
bottom={false}
/>
</Flex>
</Flex>
);
};

export default UnivCertification;

0 comments on commit c60690a

Please sign in to comment.