Skip to content

Commit

Permalink
Merge pull request #4 from wafflestudio/feat/signup
Browse files Browse the repository at this point in the history
Feat: signup page publishing
  • Loading branch information
Joeyoojin authored Jan 6, 2025
2 parents e2a1b24 + f1b2ee2 commit fee1faf
Show file tree
Hide file tree
Showing 8 changed files with 153 additions and 5 deletions.
6 changes: 5 additions & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
import { createBrowserRouter, RouterProvider } from 'react-router-dom';

import Landing from '@/pages/landing';
import Signup from '@/pages/signup';
import '@/styles/styles.css';

const routes = [{ path: '/', element: <Landing /> }];
const routes = [
{ path: '/', element: <Landing /> },
{ path: '/signup', element: <Signup /> },
];

const router = createBrowserRouter(routes);
function App() {
Expand Down
5 changes: 5 additions & 0 deletions src/assets/images/backward-button.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions src/assets/images/signup.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions src/assets/images/wemade-logo-gray-small.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions src/components/BigButton.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import React, { useState } from 'react';

const BigButton = ({ text }: { text: string }) => {
const [isHovered, setIsHovered] = useState(false);

return (
<div className="flex h-12 w-full flex-shrink-0 items-center justify-center">
<button
className={`h-10 w-full cursor-pointer rounded-md border border-none transition-colors duration-300 ${
isHovered
? 'bg-[#35C273] text-[#000000]'
: 'bg-[#F6F4F1] text-[#9F9A94]'
}`}
onMouseEnter={() => setIsHovered(true)}
onMouseLeave={() => setIsHovered(false)}
>
<div className="text-center font-['Pretendard'] text-[15px] font-semibold">
{text}
</div>
</button>
</div>
);
};

export default BigButton;
5 changes: 4 additions & 1 deletion src/constants/images.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import BACK_BUTTON from '@/assets/images/backward-button.svg';
import SIGNUP_LOGO from '@/assets/images/signup.svg';
import BLACK_LOGO from '@/assets/images/wemade-logo-black.png';
import GRAY_SMALL_LOGO from '@/assets/images/wemade-logo-gray-small.svg';

export { BLACK_LOGO };
export { BLACK_LOGO, GRAY_SMALL_LOGO, BACK_BUTTON, SIGNUP_LOGO };
7 changes: 4 additions & 3 deletions src/pages/landing.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';
import { Link } from 'react-router-dom';

import { Layout } from '@/components/Layout';
import LoginButton from '@/components/LoginButton';
Expand All @@ -25,12 +26,12 @@ const Landing = () => {
</div>
<div className="text-[15px] text-textGrey2">
처음이시라면?
<a
href="/"
<Link
to="/signup"
className="ml-2.5 font-psemibold text-textGreen underline"
>
회원가입하기
</a>
</Link>
</div>
</div>
</Layout>
Expand Down
83 changes: 83 additions & 0 deletions src/pages/signup.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
import React from 'react';
import { Link } from 'react-router-dom';

import BigButton from '@/components/BigButton';
import { Layout } from '@/components/Layout';
import { GRAY_SMALL_LOGO, BACK_BUTTON, SIGNUP_LOGO } from '@/constants/images';

const Signup = () => {
return (
<Layout>
<div className="mx-auto flex h-full w-full max-w-[330px] flex-col justify-center gap-8">
<div className="mb-8 flex w-full flex-col items-start">
<Link
to="/"
className="mb-4 h-[30px] w-[30px]"
>
<img
src={BACK_BUTTON}
alt="back"
className="cursor-pointer"
/>
</Link>
<img
src={GRAY_SMALL_LOGO}
alt="logo"
className="mb-4 w-[120px]"
/>
<img
src={SIGNUP_LOGO}
alt="signup"
className="w-[120px]"
/>
</div>

<div className="flex flex-col gap-6">
<div className="flex flex-col gap-1.5">
<label className="text-sm font-medium text-textGrey2">이메일</label>
<div className="flex items-center gap-3">
<div className="flex w-full items-center rounded-md border border-borderGrey bg-backgroundWhite px-3 py-2">
<input
type="email"
placeholder="이메일을 입력하세요."
className="flex-grow text-[15px] font-medium text-textGrey1 focus:outline-none"
/>
</div>
<button className="whitespace-nowrap rounded-md border border-borderGrey bg-backgroundGrey px-4 py-2 text-[15px] font-medium">
인증하기
</button>
</div>
</div>

<div className="flex flex-col gap-1.5">
<label className="text-sm font-medium text-textGrey2">
전화번호
</label>
<div className="flex w-full items-center rounded-md border border-borderGrey bg-backgroundWhite px-3 py-2">
<input
type="tel"
placeholder="전화번호를 입력하세요."
className="flex-grow text-[15px] font-medium text-textGrey1 focus:outline-none"
/>
</div>
</div>

<div className="flex flex-col gap-1.5 pb-2">
<label className="text-sm font-medium text-textGrey2">직책</label>
<div className="flex w-full items-center rounded-md border border-borderGrey bg-backgroundWhite px-3 py-2">
<input
type="text"
placeholder="직책을 입력하세요."
className="flex-grow text-[15px] font-medium text-textGrey1 focus:outline-none"
/>
</div>
</div>
</div>

<BigButton text="다음" />
</div>
</Layout>
);
};

export default Signup;

0 comments on commit fee1faf

Please sign in to comment.