Skip to content

Commit

Permalink
updated booking and staffing page
Browse files Browse the repository at this point in the history
  • Loading branch information
bjerrecs committed Apr 10, 2024
1 parent e67007d commit 4534825
Show file tree
Hide file tree
Showing 3 changed files with 363 additions and 45 deletions.
13 changes: 8 additions & 5 deletions src/components/Bookings.astro
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,13 @@ import BookingsComponent from './BookingsComponent'
border-radius: 4px;
border: 0px solid #ffffff;
}
tr:nth-child(even) {
background-color: #f2f2f2;
</style>

<style>
.even-row {
@apply bg-gray-100;
}
tr:nth-child(od) {
background-color: #fff;
.odd-row {
@apply bg-white;
}
</style>
</style>
2 changes: 1 addition & 1 deletion src/components/BookingsComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ const MyComponent = () => {
{Object.entries(groupedBookings).map(([date, bookings], index) => (
<>
<tr>
<td colSpan={4} className="text-center bg-[#dfebeb] p-2">
<td colSpan={4} className="text-center bg-[#dfebeb] dark:bg-[#356c8e] p-2">
{index === 0 ? 'Today' : date}
</td>
</tr>
Expand Down
Loading

0 comments on commit 4534825

Please sign in to comment.