Skip to content

Commit

Permalink
optimized staff table for mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
bjerrecs committed Aug 23, 2024
1 parent f85625a commit c2037a9
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion src/pages/about/staff.astro
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ const StaffArray = [Director, Board, Training, Technical, Event, Pilot]
<Link href="https://cc.vatsim-scandinavia.org/feedback" target="_blank">here<ExternalLinkIcon width="0.75rem" marginLeft="0.3rem"/> </Link>
</p>
<div
class="w-full max-w-[1500px] py-6 flex flex-col gap-4 place-content-center justify-items-center"
class="w-full max-w-[1500px] py-6 flex-col gap-4 place-content-center justify-items-center opacity-0 lg:opacity-100 hidden lg:flex transition"
>
<Table class:list={"bg-black dark:bg-white"}>
<TableHeader>
Expand Down Expand Up @@ -282,4 +282,20 @@ const StaffArray = [Director, Board, Training, Technical, Event, Pilot]
<span class="max-lg:w-[100%]"><AvailabilityDecode Availability="VAC"/> = Vacant Position</span>
</div>
</div>
<div class="w-full grid gap-4 grid-cols-1 content-center place-items-center md:grid-cols-2 opacity-100 lg:opacity-0 transition">
{
StaffArray.map((staff, index) => (
<React.Fragment>
{StaffArray[index].map((staff) => (
<div class="bg-tertiary dark:bg-secondary p-4 w-80 text-white rounded">
<p class="font-semibold text-xl">{staff.POSITION}</p>
<p>{staff.NAME}</p>
<p>{staff.CID}</p>
<p>{staff.EMAIL}</p>
</div>
))}
</React.Fragment>
))
}
</div>
</PageContainer>

0 comments on commit c2037a9

Please sign in to comment.