forked from DO-SOPT-WEB/YeonseoJo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
30410aa
commit 0f0d54c
Showing
3 changed files
with
44 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import styled from "styled-components"; | ||
import PageLayout from "../components/PageLayout"; | ||
|
||
import { useNavigate } from "react-router-dom"; | ||
|
||
const Home = () => { | ||
const navigate = useNavigate(); | ||
|
||
return ( | ||
<PageLayout> | ||
<St.GoToLoginBtn type="button" onClick={() => navigate("/login")}> | ||
로그인 하러 가기 | ||
</St.GoToLoginBtn> | ||
</PageLayout> | ||
); | ||
}; | ||
|
||
export default Home; | ||
|
||
const St = { | ||
GoToLoginBtn: styled.button` | ||
width: 20rem; | ||
height: 5rem; | ||
border-radius: 1rem; | ||
background-color: ${({ theme }) => theme.colors.blue}; | ||
color: ${({ theme }) => theme.colors.white}; | ||
font-size: 2rem; | ||
&::hover { | ||
box-shadow: 0 0 1rem ${({ theme }) => theme.colors.blue}; | ||
} | ||
`, | ||
}; |