-
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
77 changed files
with
4,758 additions
and
261 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 |
---|---|---|
|
@@ -276,4 +276,7 @@ yarn-error.log* | |
.github | ||
|
||
#prettier | ||
.prettierignore | ||
.prettierignore | ||
|
||
#IntelliJ | ||
.idea |
Large diffs are not rendered by default.
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
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.
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.
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.
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 |
---|---|---|
|
@@ -11,6 +11,12 @@ | |
name="description" | ||
content="Web site created using create-react-app" | ||
/> | ||
<link | ||
rel="stylesheet" | ||
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" | ||
integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" | ||
crossorigin="anonymous" | ||
/> | ||
<title>공부하는 습관</title> | ||
</head> | ||
<body> | ||
|
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,143 @@ | ||
import Dailydetails from './dailydetails'; | ||
import classNames from 'classnames'; | ||
import { Container, Col, Row } from 'react-bootstrap'; | ||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; | ||
import { | ||
faChevronLeft, | ||
faChevronRight, | ||
} from '@fortawesome/free-solid-svg-icons'; | ||
import getCalendarData from './calendarData'; | ||
import { useState } from 'react'; | ||
import Card from 'react-bootstrap/Card'; | ||
|
||
const StudyCard = (event) => { | ||
const studies = event.arr; | ||
return ( | ||
<> | ||
{studies.map((study, index) => ( | ||
<Card | ||
key={index} | ||
style={{ | ||
margin: '1rem 0rem', | ||
border: '0px', | ||
backgroundColor: 'transparent', | ||
paddingLeft: '0.5rem', | ||
}} | ||
> | ||
<Card.Title style={{ fontWeight: 'bold' }}> | ||
{study.studyName} | ||
</Card.Title> | ||
<Card.Subtitle> | ||
{study.startTime}~{study.endTime} | ||
</Card.Subtitle> | ||
</Card> | ||
))} | ||
</> | ||
); | ||
}; | ||
|
||
export default function Calendar() { | ||
const monthNames = [ | ||
'January', | ||
'February', | ||
'March', | ||
'April', | ||
'May', | ||
'June', | ||
'July', | ||
'August', | ||
'September', | ||
'October', | ||
'November', | ||
'December', | ||
]; | ||
const days = [ | ||
'MON', | ||
'TUE', | ||
'WED', | ||
'THU', | ||
'FRI', | ||
'SAT', | ||
'SUN', | ||
]; | ||
const today = new Date(); | ||
const [weekly, setWeekly] = useState(getCalendarData); | ||
return ( | ||
<> | ||
<Container | ||
fluid | ||
style={{ | ||
padding: '2rem 4rem', | ||
}} | ||
> | ||
<Row> | ||
<p className={classNames('month-nav')}> | ||
{monthNames[today.getMonth()]}{' '} | ||
<FontAwesomeIcon | ||
icon={faChevronLeft} | ||
size="xs" | ||
style={{ | ||
opacity: 0.5, | ||
}} | ||
/>{' '} | ||
<FontAwesomeIcon | ||
icon={faChevronRight} | ||
size="xs" | ||
style={{ | ||
opacity: 0.5, | ||
}} | ||
/> | ||
</p> | ||
</Row> | ||
<Row | ||
style={{ | ||
background: '#fcfcfc', | ||
border: '1px solid #ededed', | ||
boxSizing: 'border-box', | ||
borderRadius: '5px', | ||
}} | ||
> | ||
<Row className={classNames('day')}> | ||
{days.map((day, index) => ( | ||
<Col | ||
key={index} | ||
style={{ margin: '0.3rem' }} | ||
selected={false} | ||
> | ||
<p style={{ marginTop: '1rem' }}>{day}</p> | ||
<div | ||
className={classNames('day-line')} | ||
style={{ | ||
border: 'solid 2px #6C757D', | ||
}} | ||
/> | ||
<div | ||
style={{ | ||
backgroundColor: '#F2F1F6', | ||
borderRadius: '5px', | ||
paddingBottom: '0.5rem', | ||
}} | ||
> | ||
<p | ||
style={{ | ||
margin: '2rem 0rem', | ||
fontFamily: 'pretandard', | ||
fontSize: '26px', | ||
paddingLeft: '0.5rem', | ||
}} | ||
> | ||
{parseInt( | ||
weekly[day].date.split('-').slice(2) | ||
)} | ||
</p> | ||
<StudyCard arr={weekly[day].studies} /> | ||
</div> | ||
</Col> | ||
))} | ||
</Row> | ||
</Row> | ||
<Dailydetails /> | ||
</Container> | ||
</> | ||
); | ||
} |
Oops, something went wrong.