This commit is contained in:
wrzesinski-hubert 2020-06-07 12:03:59 +02:00
parent 08e963f105
commit 6a1c375913
3 changed files with 15 additions and 24 deletions

BIN
public/3x.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

View File

@ -17,17 +17,14 @@
flex-grow: 1; flex-grow: 1;
} }
.paper { .paper {
display: flex; display: flex;
margin-top: 10px; margin-top: 10px;
height: 60px; height: 60px;
width: 90%; width: 90%;
background-color: #D4A8FF !important; background-color: #d4a8ff !important;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
} }
.text { .text {
border-bottom: 1px solid; border-bottom: 1px solid;
} }
.chujec{
background-color: red;
}

View File

@ -13,9 +13,7 @@ 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"; import Paper from "@material-ui/core/Paper";
interface CalendarProps { interface CalendarProps {}
}
interface CalendarState { interface CalendarState {
data: Array<AppointmentModel>; data: Array<AppointmentModel>;
@ -82,17 +80,13 @@ export default class Calendar extends React.PureComponent<
> { > {
constructor(props: CalendarProps) { constructor(props: CalendarProps) {
super(props); super(props);
this.state = { this.state = {
data: appointments, data: appointments,
currentDate: new Date("2020-06-01"), currentDate: new Date("2020-06-01"),
}; };
} }
expand(e: React.MouseEvent) {
//this.classList.add("chujec");
console.log("chujec");
}
render() { render() {
const { data, currentDate } = this.state; const { data, currentDate } = this.state;
@ -123,16 +117,16 @@ export default class Calendar extends React.PureComponent<
Hubert Wrzesiński<br></br> Hubert Wrzesiński<br></br>
Semestr zimowy 2020/2021 Semestr zimowy 2020/2021
</div> </div>
<Paper className="paper" onClick={this.expand}>Chuj</Paper> <Paper className="paper">1</Paper>
<Paper className="paper">Cipa</Paper> <Paper className="paper">2</Paper>
<Paper className="paper">Pizda</Paper> <Paper className="paper">3</Paper>
<Paper className="paper">Szmata</Paper> <Paper className="paper">4</Paper>
<Paper className="paper">Jebać</Paper> <Paper className="paper">5</Paper>
<Paper className="paper">Chuj</Paper> <Paper className="paper">6</Paper>
<Paper className="paper">Cipa</Paper> <Paper className="paper">7</Paper>
<Paper className="paper">Pizda</Paper> <Paper className="paper">8</Paper>
<Paper className="paper">Szmata</Paper> <Paper className="paper">9</Paper>
<Paper className="paper">Jebać</Paper> <Paper className="paper">10</Paper>
</div> </div>
</div> </div>
); );