-
Notifications
You must be signed in to change notification settings - Fork 4
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
Showing
1 changed file
with
70 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
import styled from "styled-components"; | ||
import { COLOR } from "../styles/color.js"; | ||
import { useRecoilValue } from "recoil"; | ||
import { Button } from "@mui/material"; | ||
import Stack from "@mui/material/Stack"; | ||
import propTypes from "prop-types"; | ||
import { useNavigate } from "react-router-dom"; | ||
|
||
function SelectTypePage(){ | ||
const navigate = new useNavigate(); | ||
|
||
return( | ||
<StSelectTypePage> | ||
<Stack spacing={2} direction="row"> | ||
<CreateBox> | ||
Create New Repo | ||
<CreateBtn variant="contained" onClick={() => navigate("/step1")}> | ||
Choose | ||
</CreateBtn> | ||
</CreateBox> | ||
<CheckBox> | ||
Check Open-Source Repo | ||
<CheckBtn variant="contained" onClick={() => navigate("/step1")}> | ||
Choose | ||
</CheckBtn> | ||
</CheckBox> | ||
</Stack> | ||
</StSelectTypePage> | ||
); | ||
|
||
} | ||
|
||
const StSelectTypePage = styled.div` | ||
width: 100%; | ||
height: 100%; | ||
`; | ||
|
||
const CreateBox = styled.div` | ||
display: flex; | ||
flex-direction: row; | ||
width: 45rem; | ||
height: 35rem; | ||
margin: auto; | ||
background-color: red; | ||
`; | ||
|
||
const CheckBox = styled.div` | ||
display: flex; | ||
flex-direction: row; | ||
width: 45rem; | ||
height: 35rem; | ||
margin: auto; | ||
background-color: red; | ||
`; | ||
|
||
const CreateBtn = styled(Button)({ | ||
backgroundColor: `${COLOR.MAIN_PURPLE}`, | ||
"&:hover": { | ||
backgroundColor: `${COLOR.MAIN_PURPLE}`, | ||
}, | ||
}); | ||
|
||
const CheckBtn = styled(Button)({ | ||
backgroundColor: "black", | ||
"&:hover": { | ||
backgroundColor: "black", | ||
}, | ||
}); | ||
|
||
export default SelectTypePage; |