up from 30 to 100

This commit is contained in:
Aaron Lee 2024-01-01 17:59:20 +08:00
parent 7cc2c440f3
commit 43e2c2a096
3 changed files with 3 additions and 3 deletions

View file

@ -20,7 +20,7 @@ export default function UserList() {
<tbody> <tbody>
{ {
users.data?.map((user) => ( users.data?.map((user) => (
<tr className={`*:p-1 *: ${(user.selectedTime + user.actualTime) >= 30 ? "*:bg-emerald-200" : "*:bg-red-100"}`} key={user.username}> <tr className={`*:p-1 *: ${(user.selectedTime + user.actualTime) >= 100 ? "*:bg-emerald-200" : "*:bg-red-100"}`} key={user.username}>
<td>{user.username}</td> <td>{user.username}</td>
<td>{user.grade}</td> <td>{user.grade}</td>
<td>{user.class}</td> <td>{user.class}</td>

View file

@ -99,7 +99,7 @@ export default function UserView() {
</div> </div>
<div className={[ <div className={[
"border rounded-xl h-32 w-40 p-2 flex items-center justify-center flex-col", "border rounded-xl h-32 w-40 p-2 flex items-center justify-center flex-col",
(userActualAttendTime.data ?? 0) + (userAttendTime.data ?? 0) >= 30 ? "bg-emerald-500" : "bg-red-300" (userActualAttendTime.data ?? 0) + (userAttendTime.data ?? 0) >= 100 ? "bg-emerald-500" : "bg-red-300"
].join(" ")}> ].join(" ")}>
<div className="text-center text-xl font-bold"></div> <div className="text-center text-xl font-bold"></div>
<div className="flex-grow flex items-center"> <div className="flex-grow flex items-center">

View file

@ -51,7 +51,7 @@ export default function Dash() {
</div> </div>
<div className={[ <div className={[
"border rounded-xl h-32 w-40 p-2 flex items-center justify-center flex-col mb-5", "border rounded-xl h-32 w-40 p-2 flex items-center justify-center flex-col mb-5",
(actualAttendTime.data ?? 0) + (attendTime.data ?? 0) >= 30 ? "bg-emerald-500" : "bg-red-300" (actualAttendTime.data ?? 0) + (attendTime.data ?? 0) >= 100 ? "bg-emerald-500" : "bg-red-300"
].join(" ")}> ].join(" ")}>
<div className="text-center text-xl font-bold"></div> <div className="text-center text-xl font-bold"></div>
<div className="flex-grow flex items-center"> <div className="flex-grow flex items-center">