Skip to content

Commit

Permalink
Merge pull request #67 from Team-Lecue/feature/Login
Browse files Browse the repository at this point in the history
[ Login ] dev 머지 PR입니다!
  • Loading branch information
doyn511 authored Jan 10, 2024
2 parents fd07afc + 985c8b9 commit 2f68e1e
Show file tree
Hide file tree
Showing 23 changed files with 340 additions and 1 deletion.
51 changes: 51 additions & 0 deletions src/Login/components/Comment/Comment.style.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
import styled from '@emotion/styled';

export const CommentWrapper = styled.section`
display: flex;
justify-content: center;
align-items: center;
width: 100%;
height: calc(100dvh - 36.3rem);
border-bottom: 0.1rem solid ${({ theme }) => theme.colors.black};
`;

export const CommentSection = styled.div`
display: flex;
justify-content: center;
flex-direction: column;
width: 33rem;
height: 100%;
`;

export const Comment = styled.i`
&:nth-of-type(1) {
padding: 4.1rem 12.2rem 0 7.7rem;
}
&:nth-of-type(2) {
padding: 1.4rem 18.3rem 0 3.3rem;
}
&:nth-of-type(3) {
padding: 6.6rem 6.5rem 5.3rem 10.3rem;
}
`;

export const Line = styled.div`
display: flex;
justify-content: space-between;
flex-direction: column;
width: 4.2rem;
height: 100%;
padding: 5.3rem 0;
border-left: 0.1rem solid ${({ theme }) => theme.colors.black};
`;

export const Spring = styled.i`
margin-left: -2.1rem;
`;
41 changes: 41 additions & 0 deletions src/Login/components/Comment/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
import {
ImgKakao01,
ImgKakao02,
ImgKakao03,
ImgKakaoSpring,
} from '../../../assets';
import * as S from './Comment.style';

function Comment() {
return (
<S.CommentWrapper>
<S.CommentSection>
<S.Comment>
<ImgKakao01 />
</S.Comment>

<S.Comment>
<ImgKakao02 />
</S.Comment>

<S.Comment>
<ImgKakao03 />
</S.Comment>
</S.CommentSection>

<S.Line>
<S.Spring>
<ImgKakaoSpring />
</S.Spring>
<S.Spring>
<ImgKakaoSpring />
</S.Spring>
<S.Spring>
<ImgKakaoSpring />
</S.Spring>
</S.Line>
</S.CommentWrapper>
);
}

export default Comment;
29 changes: 29 additions & 0 deletions src/Login/components/Header/Header.style.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import styled from '@emotion/styled';

export const HeaderWrapper = styled.section`
display: flex;
flex-direction: column;
width: 100%;
height: 8rem;
`;

export const Logo = styled.header`
display: flex;
align-items: center;
gap: 0.5rem;
width: 100%;
height: 4.4rem;
padding: 0.8rem 1.3rem;
background-color: ${({ theme }) => theme.colors.black};
`;

export const OrangeBlock = styled.div`
width: 100%;
height: 3.6rem;
border-bottom: 0.1rem solid ${({ theme }) => theme.colors.black};
background-color: ${({ theme }) => theme.colors.key};
`;
16 changes: 16 additions & 0 deletions src/Login/components/Header/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { ImgKakaoBook, ImgKakaoStarWhite } from '../../../assets';
import * as S from './Header.style';

function Header() {
return (
<S.HeaderWrapper>
<S.Logo>
<ImgKakaoStarWhite />
<ImgKakaoBook />
</S.Logo>
<S.OrangeBlock />
</S.HeaderWrapper>
);
}

export default Header;
25 changes: 25 additions & 0 deletions src/Login/components/LecueLogo/LecueLogo.style.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import styled from '@emotion/styled';

export const LogoWrapper = styled.section`
display: flex;
justify-content: center;
width: 100vw;
height: 11.2rem;
border-bottom: 0.1rem solid ${({ theme }) => theme.colors.black};
`;

export const Line = styled.div`
width: 11.2rem;
border-right: 0.1rem solid ${({ theme }) => theme.colors.black};
`;

export const Logo = styled.i`
display: flex;
justify-content: end;
width: 26.3rem;
padding: 1.8rem 1.4rem 2.2rem 2.9rem;
`;
15 changes: 15 additions & 0 deletions src/Login/components/LecueLogo/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { ImgKakaoLogo } from '../../../assets';
import * as S from './LecueLogo.style';

function LecueLogo() {
return (
<S.LogoWrapper>
<S.Line />
<S.Logo>
<ImgKakaoLogo />
</S.Logo>
</S.LogoWrapper>
);
}

export default LecueLogo;
24 changes: 24 additions & 0 deletions src/Login/components/LoginBtnContainer/LoginBtnContainer.style.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import styled from '@emotion/styled';

export const LoginBtnWrapper = styled.section`
display: flex;
justify-content: end;
align-items: center;
flex-direction: column;
width: 100%;
margin: 3.4rem 0 5.5rem;
gap: 1.9rem;
`;

export const TextWrapper = styled.div`
display: flex;
justify-content: center;
width: 100%;
gap: 0.3rem;
`;

export const Text = styled.p`
${({ theme }) => theme.fonts.Body2_M_14}
`;
24 changes: 24 additions & 0 deletions src/Login/components/LoginBtnContainer/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import { BtnKakaologin, ImgKakaoStarOrange } from '../../../assets';
import * as S from './LoginBtnContainer.style';

function LoginBtnContainer() {
const handleClickLoginBtn = () => {
//로그인 버튼 클릭 시 이벤트
alert('로그인 버튼 클릭');
};

return (
<S.LoginBtnWrapper>
<S.TextWrapper>
<ImgKakaoStarOrange />
<S.Text>소중한 마음을 전달해보세요!</S.Text>
<ImgKakaoStarOrange />
</S.TextWrapper>
<button onClick={handleClickLoginBtn}>
<BtnKakaologin />
</button>
</S.LoginBtnWrapper>
);
}

export default LoginBtnContainer;
Empty file added src/Login/constants/.gitkeep
Empty file.
Empty file added src/Login/hooks/.gitkeep
Empty file.
16 changes: 16 additions & 0 deletions src/Login/page/Login.style.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import styled from '@emotion/styled';

export const LoginWrapper = styled.section`
display: flex;
align-items: center;
flex-direction: column;
width: 100vw;
height: 100dvh;
background: linear-gradient(
180deg,
${({ theme }) => theme.colors.key} 1%,
${({ theme }) => theme.colors.background} 55%
);
`;
18 changes: 18 additions & 0 deletions src/Login/page/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import Comment from '../components/Comment';
import Header from '../components/Header';
import LecueLogo from '../components/LecueLogo';
import LoginBtnContainer from '../components/LoginBtnContainer';
import * as S from './Login.style';

function Login() {
return (
<S.LoginWrapper>
<Header />
<LecueLogo />
<Comment />
<LoginBtnContainer />
</S.LoginWrapper>
);
}

export default Login;
2 changes: 2 additions & 0 deletions src/Router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@ import { BrowserRouter, Route, Routes } from 'react-router-dom';

import DetailPage from './Detail/page/DetailPage';
import HomePage from './Home/page/HomePage';
import Login from './Login/page';
import StickerPack from './StickerPack/page/StickerPack';

function Router() {
return (
<BrowserRouter>
<Routes>
<Route path="/" element={<HomePage />} />
<Route path="/login" element={<Login />}></Route>
<Route path="/sticker-pack" element={<StickerPack />} />
<Route path="/detail" element={<DetailPage />} />
</Routes>
Expand Down
9 changes: 9 additions & 0 deletions src/assets/button/btn_kakaologin.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions src/assets/img/img_kakao_01.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions src/assets/img/img_kakao_02.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions src/assets/img/img_kakao_03.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 2f68e1e

Please sign in to comment.