-
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.
- Loading branch information
Thibault
authored and
GitHub
committed
Jul 14, 2025
1 parent
7ca2847
commit 9d9d0d2
Showing
13 changed files
with
84 additions
and
39 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
50 changes: 50 additions & 0 deletions
50
frontend/src/app/satellites/[satelliteSlug]/_infoSat/satParameters.tsx
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,50 @@ | ||
| import React from "react"; | ||
| import SatelliteDataHome from "@/components/satelliteData/SatelliteDataHome"; | ||
| import { SatelliteNumber } from "@/lib/store"; | ||
|
|
||
| /** | ||
| * This component renders the satellite parameters, including NORAD ID and mass. | ||
| */ | ||
| export default function SatParameters({ | ||
| satAttributes, | ||
| noradId, | ||
| }: { | ||
| satAttributes: any | undefined; | ||
| noradId: number | undefined; | ||
| }) { | ||
| return ( | ||
| <div className="z-10 flex w-full flex-col border-gray-600 xl:border-r-2"> | ||
| <div className="border-b border-gray-600 bg-black p-5"> | ||
| <div className="flex flex-row"> | ||
| <p>NORAD ID: </p> | ||
| {noradId ? ( | ||
| <a | ||
| href={`https://www.n2yo.com/satellite/?s=${noradId}`} | ||
| target="_blank" | ||
| className="ml-2 underline" | ||
| > | ||
| {noradId} | ||
| </a> | ||
| ) : ( | ||
| <span className="ml-2"> | ||
| No NORAD ID has been assigned yet{" "} | ||
| </span> | ||
| )} | ||
| </div> | ||
|
|
||
| <p className="text-gray-400"> | ||
| {satAttributes?.massKg | ||
| ? "Mass: " + satAttributes?.massKg + " kg" | ||
| : null} | ||
| </p> | ||
| </div> | ||
| {satAttributes?.missionStatus === "IN ORBIT" ? ( | ||
| <div> | ||
| <SatelliteDataHome | ||
| satelliteNum={noradId as SatelliteNumber} | ||
| /> | ||
| </div> | ||
| ) : null} | ||
| </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
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
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