Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

로그인 페이지 퍼블리싱 #10

Merged
merged 2 commits into from
Nov 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import Home from "pages/Home";
import Quiz from "pages/Quiz";
import Dict from "pages/Dict";
import Survey from "pages/Survey";
import Login from "pages/Login";

function App() {
return (
Expand All @@ -13,7 +14,8 @@ function App() {
<Route path="/" element={<Home />} />
<Route path="/quiz" element={<Quiz />} />
<Route path="/dict" element={<Dict />} />
<Route path="/Survey" element={<Survey />} />
<Route path="/survey" element={<Survey />} />
<Route path="/login" element={<Login />} />
</Routes>
</Router>
);
Expand Down
4 changes: 2 additions & 2 deletions src/components/Header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ function Header() {
<S.Navigation to="/dict">검색기록&사전</S.Navigation>
</S.NavigationBox>
<S.AccountBox>
<S.Account>회원가입</S.Account>
<S.Account>로그인</S.Account>
<S.Navigation to="/login">로그인</S.Navigation>
<S.Navigation to="/register">회원가입</S.Navigation>
</S.AccountBox>
</S.Layout>
);
Expand Down
5 changes: 1 addition & 4 deletions src/components/Header/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export const LogoBox = styled(Link)`
width: 15%;
display: flex;
justify-content: center;
align-items: center;
gap: 0.5rem;
`;

Expand Down Expand Up @@ -40,7 +41,3 @@ export const AccountBox = styled.div`
display: flex;
gap: 2rem;
`;

export const Account = styled.div`
cursor: pointer;
`;
16 changes: 16 additions & 0 deletions src/pages/Login/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import logo from "assets/logo.svg";
import * as S from "./style";

function Login() {
return (
<S.Layout>
<S.Logo src={logo} />
<S.LogoText>readable</S.LogoText>
<S.Input placeholder="아이디" />
<S.Input placeholder="비밀번호" />
<S.Login>로그인</S.Login>
</S.Layout>
);
}

export default Login;
37 changes: 37 additions & 0 deletions src/pages/Login/style.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import styled from "styled-components";

export const Layout = styled.form`
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
width: 100%;
height: 80vh;
gap: 2rem;
`;

export const Logo = styled.img`
width: 6.5%;
`;

export const LogoText = styled.div`
font-size: 2.5rem;
font-weight: bold;
color: #314fdd;
`;

export const Input = styled.input`
width: 20%;
font-size: 1.1rem;
padding: 1rem 0.5rem;
border-radius: 5px;
border: 1px solid black;
`;

export const Login = styled.button`
border-radius: 5px;
padding: 1rem 2rem;
border: none;
background-color: #314fdd;
color: white;
`;