diff --git a/frontend/src/app/satellites/page.tsx b/frontend/src/app/satellites/page.tsx
index 360fa4f..01809c0 100644
--- a/frontend/src/app/satellites/page.tsx
+++ b/frontend/src/app/satellites/page.tsx
@@ -2,13 +2,8 @@ export const runtime = "edge";
import { gql } from "@/__generated__/gql";
import { getClient } from "@/lib/ApolloClient";
import Link from "next/link";
-import {
- Card,
- CardContent,
- CardFooter,
- CardHeader,
- CardTitle,
-} from "@/components/ui/card";
+import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
+import SatelliteStatsTable from "@/components/ui/satelliteStatsTable";
import Image from "next/image";
const HOST_URL = process.env.HOST_URL;
const GET_SATELLITES = gql(`
@@ -40,7 +35,7 @@ export default async function Satellites() {
});
return (
-
+
{graphqlData?.data?.satellites?.data?.map((satellite) => {
let previewImage =
satellite?.attributes?.previewImage?.data?.attributes
@@ -49,7 +44,7 @@ export default async function Satellites() {
previewImage = HOST_URL + previewImage;
}
return (
-
+
-
-
Altitude: {"1234"}km
- Speed: {"1223"}km/s
- Latitude: {"24.65"}°
- Longitude: {"26.12"}°
-
-
+
{previewImage && (
)}
-
);
})}
diff --git a/frontend/src/components/ui/satelliteStatsTable.tsx b/frontend/src/components/ui/satelliteStatsTable.tsx
new file mode 100644
index 0000000..51fe3d4
--- /dev/null
+++ b/frontend/src/components/ui/satelliteStatsTable.tsx
@@ -0,0 +1,44 @@
+export const runtime = "edge";
+
+import { Table, TableBody, TableCell, TableRow } from "@/components/ui/table";
+
+export default function satelliteStatsTable() {
+ return (
+
+
+
+
+ {"In Orbit"}
+ {"Mission Status"}
+
+
+
+
+ {134237 + " Km/h"}
+ {"Speed"}
+
+
+ {14624 + " Moh"}
+ {"Altitude"}
+
+
+
+
+ {62.7969 + "° N"}
+ {"Latitude"}
+
+
+ {9.7531 + "° E"}
+ {"Longitude"}
+
+
+
+
+ {"Norway"}
+ {"Above Country"}
+
+
+
+
+ );
+}