Skip to content

Commit

Permalink
Feat: Create SelectTypePage #103
Browse files Browse the repository at this point in the history
  • Loading branch information
sinji2102 committed Oct 9, 2023
1 parent 174741d commit 528f0ac
Showing 1 changed file with 70 additions and 0 deletions.
70 changes: 70 additions & 0 deletions src/pages/SelectTypePage.js
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;

0 comments on commit 528f0ac

Please sign in to comment.