-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
#50 Create Select
- Loading branch information
Showing
15 changed files
with
361 additions
and
59 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
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
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
85 changes: 85 additions & 0 deletions
85
src/components/pages/studentPage/auth/Select/SelectContainer/index.jsx
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,85 @@ | ||
import { Link, useNavigate } from "react-router-dom"; | ||
import styled from "styled-components"; | ||
|
||
const SelectContainer = ({ img, title, description, url }) => { | ||
const navigate = useNavigate(); | ||
return ( | ||
<> | ||
<MainDiv> | ||
<Profile> | ||
<img src={img} alt="" /> | ||
</Profile> | ||
<hr /> | ||
<Title>{title}</Title> | ||
<Description>{description}</Description>{" "} | ||
<SubmitBtn> | ||
<a onClick={() => navigate(`/${url}`)}>이동하기</a>{" "} | ||
</SubmitBtn> | ||
</MainDiv> | ||
</> | ||
); | ||
}; | ||
|
||
export default SelectContainer; | ||
|
||
const MainDiv = styled.div` | ||
width: 450px; | ||
height: 580px; | ||
background-color: #f5f5f5; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
border-radius: 8px; | ||
hr { | ||
margin: 30px 0 0 0; | ||
width: 70px; | ||
height: 1px; | ||
border: none; | ||
background-color: #d3d3d3; | ||
} | ||
`; | ||
|
||
const SubmitBtn = styled.button` | ||
width: 153px; | ||
height: 42px; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
background-color: ${(props) => props.theme.colors.plum}; | ||
border: none; | ||
border-radius: 6px; | ||
margin-top: 84px; | ||
color: #fdfdfd; | ||
cursor: pointer; | ||
font-size: 20px; | ||
`; | ||
|
||
const Description = styled.div` | ||
margin-top: 33px; | ||
font-size: 18px; | ||
color: #929292; | ||
font-weight: 700; | ||
text-align: center; | ||
`; | ||
|
||
const Title = styled.div` | ||
margin-top: 26px; | ||
font-size: 24px; | ||
font-weight: 600; | ||
`; | ||
|
||
const Profile = styled.div` | ||
width: 150px; | ||
background-color: #fdfdfd; | ||
height: 150px; | ||
border-radius: 50%; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
margin-top: 60px; | ||
img { | ||
width: 64px; | ||
height: 64px; | ||
object-fit: cover; | ||
} | ||
`; |
Oops, something went wrong.