-
Notifications
You must be signed in to change notification settings - Fork 46
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
bbd31df
commit 2b11bd6
Showing
34 changed files
with
940 additions
and
318 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 |
---|---|---|
@@ -1,43 +1,17 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<html lang="ko"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<meta name="theme-color" content="#000000" /> | ||
<meta | ||
name="description" | ||
content="Web site created using create-react-app" | ||
/> | ||
<meta name="description" content="Web site created using create-react-app" /> | ||
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" /> | ||
<!-- | ||
manifest.json provides metadata used when your web app is installed on a | ||
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/ | ||
--> | ||
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" /> | ||
<!-- | ||
Notice the use of %PUBLIC_URL% in the tags above. | ||
It will be replaced with the URL of the `public` folder during the build. | ||
Only files inside the `public` folder can be referenced from the HTML. | ||
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will | ||
work correctly both with client-side routing and a non-root public URL. | ||
Learn how to configure a non-root public URL by running `npm run build`. | ||
--> | ||
<title>React App</title> | ||
</head> | ||
<body> | ||
<noscript>You need to enable JavaScript to run this app.</noscript> | ||
<div id="root"></div> | ||
<!-- | ||
This HTML file is a template. | ||
If you open it directly in the browser, you will see an empty page. | ||
You can add webfonts, meta tags, or analytics to this file. | ||
The build step will place the bundled scripts into the <body> tag. | ||
To begin the development, run `npm start` or `yarn start`. | ||
To create a production bundle, use `npm run build` or `yarn build`. | ||
--> | ||
</body> | ||
</html> |
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,25 @@ | ||
import styled from 'styled-components'; | ||
|
||
const StyledInput = styled.input` | ||
box-sizing: border-box; | ||
width: ${(props) => props.$width}; | ||
height: ${(props) => props.$height}; | ||
margin: ${(props) => props.$margin}; | ||
border-radius: 8px; | ||
border: 1px solid #ccd5e3; | ||
padding: 0 15px; | ||
font-size: 16px; | ||
line-height: 24px; | ||
&:hover { | ||
border: 1px solid #6d6afe; | ||
} | ||
&:focus { | ||
outline: 1px solid #6d6afe; | ||
} | ||
`; | ||
|
||
export default function Input({ width, height, margin, placeholder }) { | ||
return <StyledInput $width={width} $height={height} $margin={margin} placeholder={placeholder} />; | ||
} |
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,61 @@ | ||
import styled from 'styled-components'; | ||
import close from '../../images/close.png'; | ||
|
||
const ModalBack = styled.div` | ||
position: fixed; | ||
top: 0; | ||
left: 0; | ||
bottom: 0; | ||
right: 0; | ||
background: rgba(0, 0, 0, 0.4); | ||
z-index: 998; | ||
`; | ||
|
||
const ModalDiv = styled.div` | ||
position: fixed; | ||
top: 50%; | ||
left: 50%; | ||
transform: translate(-50%, -50%); | ||
box-sizing: border-box; | ||
width: ${(props) => props.$width}; | ||
height: ${(props) => props.$height}; | ||
border-radius: 15px; | ||
padding: ${(props) => props.$padding}; | ||
background-color: white; | ||
z-index: 999; | ||
`; | ||
|
||
const TitleDiv = styled.div` | ||
display: flex; | ||
justify-content: center; | ||
width: 100%; | ||
font-size: 20px; | ||
font-weight: bold; | ||
`; | ||
|
||
const CloseButton = styled.button` | ||
position: absolute; | ||
top: 15px; | ||
right: 15px; | ||
border: none; | ||
background: none; | ||
cursor: pointer; | ||
`; | ||
|
||
export default function Modal({ title, width, height, padding, setter, children }) { | ||
const handleClose = () => { | ||
setter?.(false); | ||
}; | ||
|
||
return ( | ||
<ModalBack> | ||
<ModalDiv $width={width} $height={height} $padding={padding}> | ||
<CloseButton onClick={handleClose}> | ||
<img src={close} alt='Modal close button' /> | ||
</CloseButton> | ||
<TitleDiv>{title}</TitleDiv> | ||
{children} | ||
</ModalDiv> | ||
</ModalBack> | ||
); | ||
} |
Oops, something went wrong.