diff --git a/frontend/package-lock.json b/frontend/package-lock.json index 2d6a206..d714e15 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -12389,9 +12389,9 @@ } }, "node_modules/framer-motion": { - "version": "11.0.24", - "resolved": "https://registry.npmjs.org/framer-motion/-/framer-motion-11.0.24.tgz", - "integrity": "sha512-l2iM8NR53qtcujgAqYvGPJJGModPNWEVUaATRDLfnaLvUoFpImovBm0AHalSSsY8tW6knP8mfJTW4WYGbnAe4w==", + "version": "11.0.25", + "resolved": "https://registry.npmjs.org/framer-motion/-/framer-motion-11.0.25.tgz", + "integrity": "sha512-mRt7vQGzA7++wTgb+PW1TrlXXgndqR6hCiJ48fXr2X9alte2hPQiAq556HRwDCt0Q5X98MNvcSe4KUa27Gm5Lg==", "dependencies": { "tslib": "^2.4.0" }, diff --git a/frontend/src/app/page.tsx b/frontend/src/app/page.tsx index 3ac745f..a4dea33 100644 --- a/frontend/src/app/page.tsx +++ b/frontend/src/app/page.tsx @@ -3,21 +3,35 @@ import ColoredSection from "@/components/ui/coloredSection"; import Image from "next/image"; import Link from "next/link"; -import SatelliteDataTableMultiple from "@/components/satelliteData/SatelliteDataTableMultiple"; -import fetchSatelliteData from "@components/map/SatelliteFetcher"; import fetchMostRecentImage from "@/lib/data/fetchMostRecentImage"; +import SatelliteDataHome from "@/components/satelliteData/SatelliteDataHome"; +import SatelliteSelector from "@/components/SatelliteSelector"; +import SatelliteGlobe from "@/components/map/newGlobe"; + export default async function Home() { const mostRecentImageURL = await fetchMostRecentImage(); return ( <> -
+ {satelliteInfo + ? satelliteInfo.velocity + " km/h" + : "Loading..."} +
+Velocity
++ {satelliteInfo + ? satelliteInfo.altitude + " km" + : "Loading..."} +
+Altitude
++ {satelliteInfo + ? satelliteInfo.latitudeDeg + "° N" + : "Loading..."} +
+Latitude
++ {satelliteInfo + ? satelliteInfo.longitudeDeg + "° E" + : "Loading..."} +
+Longitude
++ {satelliteInfo + ? "Above " + satelliteInfo.country + : "Loading..."} +
+Flag Icon
+{satelliteInfo.velocity} km/s
-Velocity
-{satelliteInfo.altitude} km
-Altitude
+ return satelliteData.length > 0 && selectedSatellite && satelliteInfo ? ( + <> +{satelliteInfo.latitudeDeg}° N
-Latitude
-{satelliteInfo.longitudeDeg}° E
-Longitude
+ +{satelliteInfo.velocity} km/s
+Velocity
+{satelliteInfo.altitude} km
+Altitude
++ {satelliteInfo.latitudeDeg}° N +
+Latitude
++ {satelliteInfo.longitudeDeg}° E +
+Longitude
+Above {satelliteInfo.country}
+Above {satelliteInfo.country}
+{satelliteInfo.velocity} km/s
+Velocity
+{satelliteInfo.altitude} km
+Altitude
+{satelliteInfo.latitudeDeg}° N
+Latitude
+{satelliteInfo.longitudeDeg}° E
+Longitude
+Above {satelliteInfo.country}
+