diff --git a/public/3x.gif b/public/3x.gif
deleted file mode 100644
index d8f6d7b..0000000
Binary files a/public/3x.gif and /dev/null differ
diff --git a/src/App.scss b/src/App.scss
index 525ff0b..63f4c9a 100644
--- a/src/App.scss
+++ b/src/App.scss
@@ -1,4 +1,14 @@
body {
margin: 0px;
padding: 0px;
- }
\ No newline at end of file
+ }
+ .wraper{
+ display: flex;
+ &__rightbar{
+ flex-grow: 1;
+ }
+ &__calendar{
+ width: 85%;
+ }
+ }
+
diff --git a/src/App.tsx b/src/App.tsx
index 73b75af..9000e6d 100644
--- a/src/App.tsx
+++ b/src/App.tsx
@@ -3,6 +3,8 @@ import TopBar from "./components/TopBar/";
import Transfer from "./components/Transfer/";
import "./App.scss";
import Schedule from "./components/Calendar/";
+import { appointments } from "./components/Calendar/appointments";
+import RightBar from "./components/RightBar";
function App() {
const [isOpen, setOpen] = useState(false);
@@ -17,10 +19,10 @@ function App() {
handleTransfer={(e) => {
setOpen(!isOpen);
}}
- handleLanguage={(e)=>{
+ handleLanguage={(e) => {
alert("Language");
}}
- handleProfile={(e)=>{
+ handleProfile={(e) => {
alert("Profile");
}}
isOpen={isOpen}
@@ -31,8 +33,19 @@ function App() {
setOpen(!isOpen);
}}
/>
-
-
{text}
+
+
+ {text}
);
}
diff --git a/src/components/Calendar/appointments.js b/src/components/Calendar/appointments.ts
similarity index 100%
rename from src/components/Calendar/appointments.js
rename to src/components/Calendar/appointments.ts
diff --git a/src/components/Calendar/index.scss b/src/components/Calendar/index.scss
index d19cd05..e69de29 100644
--- a/src/components/Calendar/index.scss
+++ b/src/components/Calendar/index.scss
@@ -1,30 +0,0 @@
-.schedule {
- display: flex;
-}
-.calendar {
- display: flex;
- width: 85%;
-}
-.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;
- margin-top: 10px;
- height: 60px;
- width: 90%;
- background-color: #d4a8ff !important;
- align-items: center;
- justify-content: center;
-}
-.text {
- border-bottom: 1px solid;
-}
diff --git a/src/components/Calendar/index.tsx b/src/components/Calendar/index.tsx
index 788315f..8693897 100644
--- a/src/components/Calendar/index.tsx
+++ b/src/components/Calendar/index.tsx
@@ -5,21 +5,21 @@ import {
Scheduler,
WeekView,
Appointments,
+ AppointmentTooltip,
} from "@devexpress/dx-react-scheduler-material-ui";
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 Paper from "@material-ui/core/Paper";
-interface CalendarProps {}
-interface CalendarState {
+interface CalendarProps {
data: Array;
currentDate: Date;
}
+interface CalendarState {}
+
const formatDayScaleDate = (
date: moment.MomentInput,
options: { weekday: any }
@@ -37,9 +37,15 @@ const useStyles = makeStyles((theme: Theme) =>
},
timeTableLayout: {
border: "1px solid rgba(224, 224, 224, 1);",
+ borderCollapse: "separate",
},
timeTableCell: {
- //borderRadius:2,
+ borderRadius: 15,
+ },
+ appointmentLayer: {
+ borderRadius: 15,
+ marginLeft: 5,
+ textAlign: "center",
},
})
);
@@ -74,61 +80,39 @@ const TimeTableLayout = ({ ...restProps }: any) => {
);
};
+const Appointment = ({ ...restProps }: any) => {
+ const classes = useStyles();
+ return (
+
+ );
+};
+
export default class Calendar extends React.PureComponent<
CalendarProps,
CalendarState
> {
- constructor(props: CalendarProps) {
- super(props);
-
- this.state = {
- data: appointments,
- currentDate: new Date("2020-06-01"),
- };
- }
render() {
- const { data, currentDate } = this.state;
+ const { data, currentDate } = this.props;
return (
-
-
-
-
- Hubert Wrzesiński
- Semestr zimowy 2020/2021
-
-
1
-
2
-
3
-
4
-
5
-
6
-
7
-
8
-
9
-
10
-
-
+
+
+
);
}
}
diff --git a/src/components/RightBar/index.scss b/src/components/RightBar/index.scss
new file mode 100644
index 0000000..98fa97e
--- /dev/null
+++ b/src/components/RightBar/index.scss
@@ -0,0 +1,23 @@
+.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;
+ }
+ .paper {
+ display: flex;
+ margin-top: 10px;
+ height: 60px;
+ width: 90%;
+ background-color: #d4a8ff !important;
+ align-items: center;
+ justify-content: center;
+ }
+ .text {
+ border-bottom: 1px solid;
+ }
+
\ No newline at end of file
diff --git a/src/components/RightBar/index.tsx b/src/components/RightBar/index.tsx
new file mode 100644
index 0000000..ead1d0e
--- /dev/null
+++ b/src/components/RightBar/index.tsx
@@ -0,0 +1,33 @@
+import React from "react";
+import "./index.scss";
+import Paper from "@material-ui/core/Paper";
+interface RightBarProps {}
+
+interface RightBarState {}
+
+export default class RightBar extends React.Component<
+ RightBarProps,
+ RightBarState
+> {
+
+ render() {
+ return (
+
+
+ Hubert Wrzesiński
+ Semestr zimowy 2020/2021
+
+
1
+
2
+
3
+
4
+
5
+
6
+
7
+
8
+
9
+
10
+
+ );
+ }
+}