-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Satellite sdatahome responsive on phones 300 max screen width #308 * Responsivness * Fix table on satellites to be more responsive #308 * Lint and prettier #308 * Navbar aschild
- Loading branch information
EliasKnudsen
authored and
GitHub
committed
Apr 17, 2024
1 parent
e1240f6
commit 6634509
Showing
7 changed files
with
119 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,57 @@ | ||
| "use client"; | ||
| import { | ||
| PageHeaderAndSubtitle, | ||
| PageHeader, | ||
| PageSubtitle, | ||
| } from "@/components/PageHeader"; | ||
| import SatelliteStatsTableRow from "@/components/satelliteData/SatelliteStatsTableRow"; | ||
| import { | ||
| Table, | ||
| TableBody, | ||
| TableHead, | ||
| TableHeader, | ||
| TableRow, | ||
| } from "@/components/shadcn/table"; | ||
|
|
||
| export default function SatelliteResponsiveTable({ satellites }: any) { | ||
| return ( | ||
| <div className="flex w-full flex-col items-center justify-center"> | ||
| <PageHeaderAndSubtitle> | ||
| <PageHeader>Satellites</PageHeader> | ||
| <PageSubtitle> | ||
| Here are the satellites we have worked on. Click on them to | ||
| see more details. | ||
| </PageSubtitle> | ||
| </PageHeaderAndSubtitle> | ||
| <Table className="table-auto border-collapse rounded-md border-b border-white shadow"> | ||
| <TableHeader> | ||
| <TableRow className="border-y border-white px-3 py-2 text-left text-white"> | ||
| <TableHead className="px-6">Satellite</TableHead> | ||
| <TableHead className="px-6">Speed</TableHead> | ||
| <TableHead className=" hidden px-6 lg:table-cell"> | ||
| Altitude | ||
| </TableHead> | ||
| <TableHead className="hidden px-6 md:table-cell"> | ||
| Latitude | ||
| </TableHead> | ||
| <TableHead className="hidden px-6 md:table-cell "> | ||
| Longitude | ||
| </TableHead> | ||
| </TableRow> | ||
| </TableHeader> | ||
| <TableBody> | ||
| {satellites.map((satellite: any) => { | ||
| let satelliteName = satellite?.attributes?.name ?? ""; | ||
| return ( | ||
| <SatelliteStatsTableRow | ||
| key={satellite.id} | ||
| satName={satelliteName} | ||
| slug={satellite?.attributes?.slug} | ||
| /> | ||
| ); | ||
| })} | ||
| </TableBody> | ||
| </Table> | ||
| </div> | ||
| ); | ||
| } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters