-
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.
128 style satellites overview page (#164)
* feat(frontend): ✨ Make table component for showing satellite stats * feat(frontend): ✨ Add responsive design for the cards and the table --------- Co-authored-by: Jakob Grøtan Gregusson <jakobgg@stud.ntnu.no>
- Loading branch information
2 people
authored and
GitHub
committed
Mar 20, 2024
1 parent
70accdd
commit 23a59cd
Showing
2 changed files
with
50 additions
and
17 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| export const runtime = "edge"; | ||
|
|
||
| import { Table, TableBody, TableCell, TableRow } from "@/components/ui/table"; | ||
|
|
||
| export default function satelliteStatsTable() { | ||
| return ( | ||
| <Table className="mx-auto w-1/2 border-collapse border"> | ||
| <TableBody> | ||
| <TableRow> | ||
| <TableCell className="text-left" colSpan={2}> | ||
| <p>{"In Orbit"}</p> | ||
| <p className="">{"Mission Status"}</p> | ||
| </TableCell> | ||
| </TableRow> | ||
| <TableRow> | ||
| <TableCell className="w-1/2 border p-2"> | ||
| <p>{134237 + " Km/h"}</p> | ||
| <p className="">{"Speed"}</p> | ||
| </TableCell> | ||
| <TableCell className="border p-2"> | ||
| <p>{14624 + " Moh"}</p> | ||
| <p className="">{"Altitude"}</p> | ||
| </TableCell> | ||
| </TableRow> | ||
| <TableRow> | ||
| <TableCell className="border p-2"> | ||
| <p>{62.7969 + "° N"}</p> | ||
| <p className="">{"Latitude"}</p> | ||
| </TableCell> | ||
| <TableCell className="border p-2"> | ||
| <p>{9.7531 + "° E"}</p> | ||
| <p className="">{"Longitude"}</p> | ||
| </TableCell> | ||
| </TableRow> | ||
| <TableRow> | ||
| <TableCell className="text-left" colSpan={2}> | ||
| <p className="text-m">{"Norway"}</p> | ||
| <p>{"Above Country"}</p> | ||
| </TableCell> | ||
| </TableRow> | ||
| </TableBody> | ||
| </Table> | ||
| ); | ||
| } |