Skip to content

Commit

Permalink
add calendar
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkIntaqt committed Aug 12, 2023
1 parent 4a320fd commit 1e438c9
Show file tree
Hide file tree
Showing 5 changed files with 398 additions and 1 deletion.
77 changes: 77 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"react-loadable": "^5.5.0",
"react-router-dom": "^6.8.0",
"react-timestamps": "github:DarkIntaqt/react-timestamps",
"react-tooltip": "^5.20.0",
"web-vitals": "^3.1.0"
},
"devDependencies": {
Expand Down
3 changes: 2 additions & 1 deletion src/css/user.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,8 @@ img.mclogo {
.selectedFilteroverview>.overview,
.selectedFiltertitles>.titles,
.selectedFilterstatistics>.statistics,
.selectedFilterhistory>.history {
.selectedFilterhistory>.history,
.selectedFiltercalendar>.calendar {
color: var(--selected);
border-bottom: 2px solid var(--selected)
}
Expand Down
76 changes: 76 additions & 0 deletions src/css/userCalendar.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
.calendar {
width: 100%;
float: left;
}

.buttons {
width: 100%;
}

.buttons button {
padding: 10px 15px;
background-color: var(--dark2);
color: var(--light0);

font-size: .8rem;
cursor: pointer;

border-radius: 5px;
margin: 10px;

border: 2px solid var(--dark3);
outline: none;
}

.buttons.matches button.matches,
.buttons.progress button.progress,
.buttons.upgrades button.upgrades {
border-color: var(--selected);
box-shadow: 0 0 5px var(--selected);
}

.calendarElement {
margin: 20px;
float: left;

display: grid;

grid-template-rows: repeat(7, 1fr);
grid-template-columns: repeat(13, 1fr);

grid-auto-flow: column;

grid-gap: 5px;

width: fit-content;
}

.calendarElement>div:not(.day) {
width: 30px;
height: 30px;

border-radius: 4px;
}


.calendarElement>div.day {
width: 30px;
height: 30px;

display: flex;
align-items: center;
justify-content: center;
color: var(--light3);
text-align: center;
font-size: .8rem;
}

.calendarElement>div.on {
background-color: rgba(13, 189, 255, var(--opacity, .15));
}

.calendarElement>div.off {
background-color: transparent;
border: 2px solid var(--dark3);
box-sizing: border-box;
}
Loading

0 comments on commit 1e438c9

Please sign in to comment.