Skip to content
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
8 changes: 6 additions & 2 deletions src/pages/login/Login.styled.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
import { Link } from 'react-router-dom';
import styled from 'styled-components';

export const Container = styled.div`
display: flex;
width: 100%;
height: 100vh;
max-width: ${({ theme }) => theme.layout.width.desktop};
min-width: 310px;
margin: 0 auto;
flex-direction: column;
align-items: center;
justify-content: center;

img {
width: 6.5rem;
height: 6.5rem;
margin: 2.5rem 0;
}

form {
Expand All @@ -31,7 +33,9 @@ export const Container = styled.div`
}
`;

export const LogoH1 = styled.h1``;
export const MoveHomeLink = styled(Link)`
padding-bottom: 2rem;
`;

export const InputContainer = styled.div`
display: flex;
Expand Down
8 changes: 3 additions & 5 deletions src/pages/login/Login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,9 @@ const Login = () => {

return (
<S.Container>
<S.LogoH1>
<Link to={ROUTES.main}>
<img src={Mainlogo} alt='logo' />
</Link>
</S.LogoH1>
<S.MoveHomeLink to={ROUTES.main}>
<img src={Mainlogo} alt='logo' />
</S.MoveHomeLink>
<Title size='semiLarge'>로그인</Title>
<form onSubmit={handleSubmit(onSubmit)}>
<Controller
Expand Down