feat: show active player
This commit is contained in:
parent
a42fff807c
commit
241f6fa7eb
16
src/App.css
16
src/App.css
@ -499,7 +499,7 @@ button {
|
|||||||
color: black;
|
color: black;
|
||||||
background-color: #36c4;
|
background-color: #36c4;
|
||||||
border: 1px solid black;
|
border: 1px solid black;
|
||||||
border-radius: 1.4em;
|
border-radius: 1.5em;
|
||||||
margin: 4px;
|
margin: 4px;
|
||||||
padding: 0.2em 0.5em;
|
padding: 0.2em 0.5em;
|
||||||
|
|
||||||
@ -647,7 +647,7 @@ button {
|
|||||||
|
|
||||||
.calendar-container {
|
.calendar-container {
|
||||||
position: relative;
|
position: relative;
|
||||||
margin: auto;
|
margin: 20px auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.month-navigation {
|
.month-navigation {
|
||||||
@ -655,7 +655,8 @@ button {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
padding: 8px;
|
padding: 8px;
|
||||||
border-bottom: 1px solid #ddd;
|
border-top: 2px solid grey;
|
||||||
|
border-bottom: 2px solid grey;
|
||||||
}
|
}
|
||||||
|
|
||||||
.month-navigation button {
|
.month-navigation button {
|
||||||
@ -682,6 +683,15 @@ button {
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.selected-day {
|
||||||
|
border: 4px solid grey;
|
||||||
|
}
|
||||||
|
|
||||||
|
.weekday {
|
||||||
|
border-bottom: 3px solid black;
|
||||||
|
margin: 0 1em;
|
||||||
|
}
|
||||||
|
|
||||||
.day-circle {
|
.day-circle {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
border-radius: 1.5em;
|
border-radius: 1.5em;
|
||||||
|
@ -89,7 +89,7 @@ const Calendar = ({ playerId }: { playerId: number }) => {
|
|||||||
const date = new Date(0);
|
const date = new Date(0);
|
||||||
date.setDate(i + 5);
|
date.setDate(i + 5);
|
||||||
days.push(
|
days.push(
|
||||||
<div key={"weekday_" + i} className="empty">
|
<div key={"weekday_" + i} className="weekday">
|
||||||
{date.toLocaleString("default", {
|
{date.toLocaleString("default", {
|
||||||
weekday: "short",
|
weekday: "short",
|
||||||
})}
|
})}
|
||||||
@ -111,7 +111,12 @@ const Calendar = ({ playerId }: { playerId: number }) => {
|
|||||||
days.push(
|
days.push(
|
||||||
<div
|
<div
|
||||||
key={date.getDate()}
|
key={date.getDate()}
|
||||||
className="day"
|
className={
|
||||||
|
"day" +
|
||||||
|
(date.toDateString() === selectedDate.toDateString()
|
||||||
|
? " selected-day"
|
||||||
|
: "")
|
||||||
|
}
|
||||||
onClick={() => handleDayClick(date)}
|
onClick={() => handleDayClick(date)}
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
|
Loading…
x
Reference in New Issue
Block a user