Skip to content

Commit

Permalink
Update Schedule
Browse files Browse the repository at this point in the history
  • Loading branch information
nicosalm committed Nov 5, 2024
1 parent 8fe2278 commit 6094098
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/components/Schedule.astro
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ function isCurrentEvent(startTime, endTime) {
return now >= start && now <= end;
}
---

<div class="w-full mx-auto px-6 md:px-12 xl:px-6 bg-gray-800">
<div class="relative pb-10 pt-10 sm:pt-10 sm:pb-10 ml-auto min-h-full flex flex-col items-center">
<h1 id="schedule" class="font-header text-white font-semibold text-3xl md:text-4xl xl:text-5xl mt-12 mb-4">Schedule</h1>
Expand All @@ -76,10 +75,10 @@ function isCurrentEvent(startTime, endTime) {
</thead>
<tbody>
{eventObject.map((element) => (
<tr class={`border-b transition-colors duration-200 ${
<tr class={`transition-colors duration-200 ${
isCurrentEvent(element.startTime, element.endTime)
? "bg-cyan-600 border-blue-700"
: "bg-gray-800 border-gray-700"
? "bg-cyan-600"
: "bg-gray-800"
}`}>
<td class="px-6 py-4 font-medium text-lg whitespace-nowrap text-white">
{element.startTime} - {element.endTime}
Expand Down

0 comments on commit 6094098

Please sign in to comment.