diff --git a/src/components/Calendar/index.scss b/src/components/Calendar/index.scss index 41bea78..0478a99 100644 --- a/src/components/Calendar/index.scss +++ b/src/components/Calendar/index.scss @@ -1,17 +1,33 @@ -.schedule{ -display: flex; - +.schedule { + display: flex; } -.calendar{ -display: flex; - width: 85%; - - +.calendar { + display: flex; + width: 85%; } -.shop-cart{ - padding-top: 10px; +.shop-cart { + padding-top: 10px; + padding-left: 15px; + padding-right: 15px; + display: flex; + flex-direction: column; + align-items: center; + text-align: center; + font-family: Lato; + flex-grow: 1; +} +.paper { display: flex; - text-align: center; - font-family: Lato; - flex-grow: 1; + margin-top: 10px; + height: 60px; + width: 90%; + background-color: #D4A8FF !important; + align-items: center; + justify-content: center; } +.text { + border-bottom: 1px solid; +} +.chujec{ + background-color: red; +} \ No newline at end of file diff --git a/src/components/Calendar/index.tsx b/src/components/Calendar/index.tsx index cf7a1e7..00287dc 100644 --- a/src/components/Calendar/index.tsx +++ b/src/components/Calendar/index.tsx @@ -10,9 +10,12 @@ import moment from "moment"; import "moment/locale/pl"; import { appointments } from "./appointments"; import "./index.scss"; -import { makeStyles, Theme, createStyles } from '@material-ui/core/styles'; +import { makeStyles, Theme, createStyles } from "@material-ui/core/styles"; +import Paper from "@material-ui/core/Paper"; -interface CalendarProps {} +interface CalendarProps { + +} interface CalendarState { data: Array; @@ -30,29 +33,48 @@ const formatDayScaleDate = ( const useStyles = makeStyles((theme: Theme) => createStyles({ - dayScaleCell:{ - backgroundColor:"red" - } - }), + dayScaleCell: { + paddingTop: 10, + paddingBottom: 10, + }, + timeTableLayout: { + border: "1px solid rgba(224, 224, 224, 1);", + }, + timeTableCell: { + //borderRadius:2, + }, + }) ); - //don't know how to set proper type of function arguments -const DayScaleCell = ({ formatDate, ...restProps }: any) => { +const DayScaleCell = ({ formatDate, ...restProps }: any) => { const classes = useStyles(); return ( - + ); -} - - +}; +const TimeTableCell = ({ ...restProps }: any) => { + const classes = useStyles(); + return ( + + ); +}; +const TimeTableLayout = ({ ...restProps }: any) => { + const classes = useStyles(); + return ( + + ); +}; export default class Calendar extends React.PureComponent< CalendarProps, @@ -60,13 +82,17 @@ export default class Calendar extends React.PureComponent< > { constructor(props: CalendarProps) { super(props); - + this.state = { data: appointments, currentDate: new Date("2020-06-01"), }; } + expand(e: React.MouseEvent) { + //this.classList.add("chujec"); + console.log("chujec"); + } render() { const { data, currentDate } = this.state; @@ -75,7 +101,7 @@ export default class Calendar extends React.PureComponent<
@@ -84,14 +110,29 @@ export default class Calendar extends React.PureComponent< startDayHour={8} endDayHour={20} excludedDays={[0, 6]} - cellDuration={60} + cellDuration={45} dayScaleCellComponent={DayScaleCell} + timeTableLayoutComponent={TimeTableLayout} + timeTableCellComponent={TimeTableCell} />
- Hubert Wrzesiński Semestr zimowy 2020/2021 +
+ Hubert Wrzesiński

+ Semestr zimowy 2020/2021 +
+ Chuj + Cipa + Pizda + Szmata + Jebać + Chuj + Cipa + Pizda + Szmata + Jebać
);