-
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
081fab8
commit 449e37a
Showing
13 changed files
with
286 additions
and
8 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,10 +1,12 @@ | ||
import Main from "./pages/Main/main.tsx"; | ||
|
||
|
||
function App() { | ||
|
||
return ( | ||
<> | ||
<h1>라우터 필요시 생성</h1> | ||
<Main /> | ||
</> | ||
) | ||
} | ||
|
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,32 @@ | ||
import { useState } from 'react'; | ||
import { DateRange, Range } from 'react-date-range'; | ||
import 'react-date-range/dist/styles.css'; | ||
import 'react-date-range/dist/theme/default.css'; | ||
|
||
export default function MyDateRangePicker() { | ||
const [state, setState] = useState<Range[]>([ | ||
{ | ||
startDate: new Date(), | ||
endDate: undefined, | ||
key: 'selection' | ||
} | ||
]); | ||
|
||
// 선택한 날짜 범위를 받아 옵니다. | ||
console.log(state[0].startDate); | ||
console.log(state[0].endDate); | ||
|
||
const handleSelect = (ranges: { [key: string]: Range }) => { | ||
setState([ranges['selection']]); | ||
} | ||
|
||
return ( | ||
<DateRange | ||
editableDateInputs={true} | ||
onChange={handleSelect} | ||
moveRangeOnFirstSelection={false} | ||
ranges={state} | ||
/> | ||
); | ||
} | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,45 @@ | ||
.modal-overlay { | ||
position: fixed; | ||
min-width: 100vw; | ||
min-height: 100vh; | ||
top: 0; | ||
left: 0; | ||
z-index: 9999; | ||
overflow: hidden; | ||
//display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
//justify-content: center; | ||
background-color: rgba(0, 0, 0, 0.375); | ||
box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37); | ||
backdrop-filter: blur(10px); | ||
-webkit-backdrop-filter: blur(10px); | ||
} | ||
.modal-window { | ||
// position: fixed; | ||
margin: auto; | ||
display: flex; | ||
max-width: 100vw; | ||
height: auto; | ||
flex-direction: column; | ||
justify-content: center; | ||
background-color: #fff; | ||
align-items: center; | ||
border-radius: 12px; | ||
overflow: hidden; | ||
padding-bottom: 30px; | ||
} | ||
.modal-close { | ||
bottom: 10px; | ||
width: 164px; | ||
height: 40px; | ||
color: indianred; | ||
font-size: 18px; | ||
transition: 0.1s; | ||
margin: 30px auto 10px; | ||
background-color: var(--primary2); | ||
&:hover { | ||
transform: scale(1.03); | ||
background-color: var(--primary3); | ||
} | ||
} |
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,29 @@ | ||
import { PropsWithChildren } from "react"; | ||
|
||
import "./Modal.scss"; | ||
|
||
interface ModalProps { | ||
visibility: boolean; | ||
toggle: (param: boolean) => void; | ||
} | ||
|
||
export default function Modal(props: PropsWithChildren<ModalProps>) { | ||
return ( | ||
<div | ||
className="modal-overlay" | ||
style={{ display: props.visibility ? "flex" : "none" }} | ||
> | ||
<div className="modal-window"> | ||
{props.children} | ||
<button | ||
className="modal-close" | ||
onClick={() => { | ||
props.toggle(false); | ||
}} | ||
> | ||
닫기 | ||
</button> | ||
</div> | ||
</div> | ||
); | ||
} |
This file was deleted.
Oops, something went wrong.
Empty file.
Oops, something went wrong.