Skip to content

Commit

Permalink
SKRF-111 design: Login Page 디자인 (#10)
Browse files Browse the repository at this point in the history
* design: Login Page 디자인

* refactor: 코드리뷰 반영

* refactor: 코드리뷰 반영
  • Loading branch information
colorkite10 authored Oct 24, 2023
1 parent 3015238 commit 838b2e9
Show file tree
Hide file tree
Showing 5 changed files with 113 additions and 2 deletions.
9 changes: 9 additions & 0 deletions src/constants/LoginPage.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
const LogoText = {
SPACE_CLUB: 'Space Club',
};

const Message = {
WELCOME: '스페이스 클럽에 오신 걸 환영합니다!',
};

export { LogoText, Message };
71 changes: 71 additions & 0 deletions src/pages/LoginPage/LoginPage.style.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
import styled from '@emotion/styled';

import Theme from '@styles/Theme';

const PageContainerStyled = styled.div`
display: flex;
height: 100vh;
`;

const LogoAreaStyled = styled.div`
display: flex;
justify-content: center;
align-items: center;
width: 50%;
min-width: 30rem;
height: 100vh;
min-height: 30rem;
`;

const LogoCircleStyled = styled.div`
width: 28rem;
height: 28rem;
border-radius: 50%;
background: linear-gradient(
139deg,
#012a36 10.1%,
rgba(50, 51, 96, 0.78) 46.84%,
rgba(113, 42, 124, 0.51) 69.53%,
rgba(0, 221, 49, 0.15) 88.79%
);
overflow: hidden;
`;

const LogoTextStyled = styled.h1`
display: flex;
flex-direction: column;
position: relative;
top: 1rem;
right: 3rem;
color: ${Theme.color.logoTextColor};
text-align: end;
font-size: 6.25rem;
font-family: 'LogoFont';
`;

const LoginAreaStyled = styled.div`
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
width: 50%;
min-width: 30rem;
height: 100vh;
min-height: 30rem;
font-family: 'MainBold';
`;

const TitleStyled = styled.h1`
padding: 0 10% 3rem 10%;
font-weight: bold;
font-size: large;
`;

export {
PageContainerStyled,
LogoAreaStyled,
LogoCircleStyled,
LogoTextStyled,
LoginAreaStyled,
TitleStyled,
};
28 changes: 28 additions & 0 deletions src/pages/LoginPage/LoginPage.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import { LogoText, Message } from '@/constants/LoginPage';

import {
LoginAreaStyled,
LogoAreaStyled,
LogoCircleStyled,
LogoTextStyled,
PageContainerStyled,
TitleStyled,
} from './LoginPage.style';

const LoginPage = () => {
return (
<PageContainerStyled>
<LogoAreaStyled>
<LogoCircleStyled>
<LogoTextStyled>{LogoText.SPACE_CLUB}</LogoTextStyled>
</LogoCircleStyled>
</LogoAreaStyled>
<LoginAreaStyled>
<TitleStyled>{Message.WELCOME}</TitleStyled>
<button>Login with Kakao</button>
</LoginAreaStyled>
</PageContainerStyled>
);
};

export default LoginPage;
2 changes: 0 additions & 2 deletions src/pages/MainPage.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from 'react';

const MainPage = () => {
return <div>main</div>;
};
Expand Down
5 changes: 5 additions & 0 deletions src/routes/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import App from '@/App';
import Layout from '@/pages/Layout';
import LoginPage from '@/pages/LoginPage/LoginPage';
import MainPage from '@/pages/MainPage';
import NotFoundPage from '@/pages/NotFoundPage';
import ProfilePage from '@/pages/ProfilePage';
Expand All @@ -26,6 +27,10 @@ const router = createBrowserRouter([
path: 'register',
element: <RegisterPage />,
},
{
path: 'login',
element: <LoginPage />,
},
{
path: '',
element: <Layout />,
Expand Down

0 comments on commit 838b2e9

Please sign in to comment.