forked from TEAM-BEAT/BEAT-Client
-
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
Showing
47 changed files
with
2,559 additions
and
179 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,5 +1,5 @@ | ||
#root { | ||
--vh: 100%; | ||
--dvh: 100%; | ||
max-width: 1280px; | ||
margin: 0 auto; | ||
padding: 2rem; | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import * as React from "react"; | ||
import type { SVGProps } from "react"; | ||
const SvgBeatMapMarker = (props: SVGProps<SVGSVGElement>) => ( | ||
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 31" {...props}> | ||
<path | ||
fill="#FB247F" | ||
d="M3.434 3.434c4.579-4.579 12.002-4.579 16.581 0a11.724 11.724 0 0 1 1.155 15.237l-8.2 11.15c-.618.84-1.873.84-2.491 0l-8.2-11.15A11.724 11.724 0 0 1 3.434 3.434" | ||
/> | ||
<circle cx={12} cy={12} r={5} fill="#fff" /> | ||
</svg> | ||
); | ||
export default SvgBeatMapMarker; |
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,13 @@ | ||
import * as React from "react"; | ||
import type { SVGProps } from "react"; | ||
const SvgIconSearch = (props: SVGProps<SVGSVGElement>) => ( | ||
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" {...props}> | ||
<path | ||
fill="#F4F4F4" | ||
fillRule="evenodd" | ||
d="M6.964 6.964a5 5 0 1 1 7.072 7.071 5 5 0 0 1-7.072-7.07m-1.06-1.06a6.5 6.5 0 0 0 8.631 9.692l3.934 3.934a.75.75 0 1 0 1.06-1.06l-3.934-3.934a6.5 6.5 0 0 0-9.691-8.632" | ||
clipRule="evenodd" | ||
/> | ||
</svg> | ||
); | ||
export default SvgIconSearch; |
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,12 @@ | ||
import * as React from "react"; | ||
import type { SVGProps } from "react"; | ||
const SvgKakaoMapArrow = (props: SVGProps<SVGSVGElement>) => ( | ||
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 18 18" {...props}> | ||
<circle cx={9} cy={9} r={9} fill="#626262" /> | ||
<path | ||
fill="#fff" | ||
d="M12.57 6a.5.5 0 0 0-.5-.5h-4.5a.5.5 0 0 0 0 1h4v4a.5.5 0 0 0 1 0zm-6.146 6.354 6-6-.707-.708-6 6z" | ||
/> | ||
</svg> | ||
); | ||
export default SvgKakaoMapArrow; |
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,68 @@ | ||
export { default as BannerBasic } from "./BannerBasic"; | ||
export { default as BeatMapMarker } from "./BeatMapMarker"; | ||
export { default as BtnFloating } from "./BtnFloating"; | ||
export { default as BtnModalDelete } from "./BtnModalDelete"; | ||
export { default as ButtonDelete24 } from "./ButtonDelete24"; | ||
export { default as CarouselPartInactive } from "./CarouselPartInactive"; | ||
export { default as Empty } from "./Empty"; | ||
export { default as IcomCopy } from "./IcomCopy"; | ||
export { default as IconArrowLeft } from "./IconArrowLeft"; | ||
export { default as IconArrowRight } from "./IconArrowRight"; | ||
export { default as IconArrowDown } from "./IconArrowDown"; | ||
export { default as IconArrowUp } from "./IconArrowUp"; | ||
export { default as IconBnk } from "./IconBnk"; | ||
export { default as IconCalendar } from "./IconCalendar"; | ||
export { default as IconCamera } from "./IconCamera"; | ||
export { default as IconCheckboxDisabledOn } from "./IconCheckboxDisabledOn"; | ||
export { default as IconCheckboxSelectedOn } from "./IconCheckboxSelectedOn"; | ||
export { default as IconCheckboxUnselectedOn } from "./IconCheckboxUnselectedOn"; | ||
export { default as IconChecked } from "./IconChecked"; | ||
export { default as IconCheck } from "./IconCheck"; | ||
export { default as IconChevronBack } from "./IconChevronBack"; | ||
export { default as IconEmpty } from "./IconEmpty"; | ||
export { default as IconEyeOff } from "./IconEyeOff"; | ||
export { default as IconEyeOn } from "./IconEyeOn"; | ||
export { default as IconFooterLogo } from "./IconFooterLogo"; | ||
export { default as IconHanna } from "./IconHanna"; | ||
export { default as IconIbk } from "./IconIbk"; | ||
export { default as IconIm } from "./IconIm"; | ||
export { default as IconImg } from "./IconImg"; | ||
export { default as IconKabank } from "./IconKabank"; | ||
export { default as IconKb } from "./IconKb"; | ||
export { default as IconLargeBand } from "./IconLargeBand"; | ||
export { default as IconLargeDance } from "./IconLargeDance"; | ||
export { default as IconLargeEtc } from "./IconLargeEtc"; | ||
export { default as IconLargeMusical } from "./IconLargeMusical"; | ||
export { default as IconLogo } from "./IconLogo"; | ||
export { default as IconMinus } from "./IconMinus"; | ||
export { default as IconNonghyup } from "./IconNonghyup"; | ||
export { default as IconPhotoDelete } from "./IconPhotoDelete"; | ||
export { default as IconPlus } from "./IconPlus"; | ||
export { default as IconProfile } from "./IconProfile"; | ||
export { default as IconRoleAdd } from "./IconRoleAdd"; | ||
export { default as IconSaemauel } from "./IconSaemauel"; | ||
export { default as IconSc } from "./IconSc"; | ||
export { default as IconSearch } from "./IconSearch"; | ||
export { default as IconShinhan } from "./IconShinhan"; | ||
export { default as IconShinhyup } from "./IconShinhyup"; | ||
export { default as IconSmallBand } from "./IconSmallBand"; | ||
export { default as IconSmallDance } from "./IconSmallDance"; | ||
export { default as IconSmallEtc } from "./IconSmallEtc"; | ||
export { default as IconSmallMusical } from "./IconSmallMusical"; | ||
export { default as IconSoohyup } from "./IconSoohyup"; | ||
export { default as IconTextfiedlDelete } from "./IconTextfiedlDelete"; | ||
export { default as IconTime } from "./IconTime"; | ||
export { default as IconToggleOff } from "./IconToggleOff"; | ||
export { default as IconToggleOn } from "./IconToggleOn"; | ||
export { default as IconToss } from "./IconToss"; | ||
export { default as IconWoochaegook } from "./IconWoochaegook"; | ||
export { default as IconWoori } from "./IconWoori"; | ||
export { default as IconXButton } from "./IconXButton"; | ||
export { default as IcDelete } from "./IcDelete"; | ||
export { default as IcHamburgar } from "./IcHamburgar"; | ||
export { default as IcOutlinePlace } from "./IcOutlinePlace"; | ||
export { default as KakaoMapArrow } from "./KakaoMapArrow"; | ||
export { default as NotFoundAsset } from "./NotFoundAsset"; | ||
export { default as Subtract } from "./Subtract"; | ||
export { default as Switch } from "./Switch"; | ||
export { default as Union } from "./Union"; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import Calendar from "react-calendar"; | ||
import "react-calendar/dist/Calendar.css"; | ||
import "./calendar.css"; | ||
interface DatePickerProps { | ||
date: Date | undefined; | ||
onChangeDate: (date: Date) => void; | ||
} | ||
|
||
const DatePicker = ({ date, onChangeDate }: DatePickerProps) => { | ||
const isPastDate = (date) => { | ||
const today = new Date(); | ||
today.setHours(0, 0, 0, 0); | ||
|
||
return date < today; | ||
}; | ||
|
||
return ( | ||
<Calendar | ||
value={date} | ||
onChange={onChangeDate} | ||
calendarType="gregory" | ||
locale="ko-KR" | ||
className="custom-calendar" | ||
formatDay={(_, date) => date.getDate().toString()} | ||
tileClassName={({ date }) => (isPastDate(date) ? "past-date" : "")} | ||
/> | ||
); | ||
}; | ||
|
||
export default DatePicker; |
Oops, something went wrong.