-
-
- {article.tag ? article.tag : "General"}
-
-
- {formatDate(article.datePublished)}
-
-
-
-
- {article.title}
-
-
-
- {SlicePreviewText(article.content)}
-
+ {article.coverImage ? (
+
+ ) : (
+
+
-
+ )}
+
+
+ {article.tag ? article.tag : "General"}
+
+
+ {formatDate(article.datePublished)}
+
+
+
+
+ {article.title}
+
+
-
- Read more →
-
+
+
+ {SlicePreviewText(article.content)}
+
+
+
+
+ Read more →
+
+
);
}
diff --git a/frontend/src/components/homeComponents/homeGlobe.tsx b/frontend/src/components/homeComponents/homeGlobe.tsx
index 99998ff..8192491 100644
--- a/frontend/src/components/homeComponents/homeGlobe.tsx
+++ b/frontend/src/components/homeComponents/homeGlobe.tsx
@@ -25,8 +25,7 @@ export default function SatelliteGlobe() {
globeRef.current = Globe()(chart.current)
.globeImageUrl(
"//unpkg.com/three-globe/example/img/earth-blue-marble.jpg",
- ) /*
- .backgroundImageUrl(
+ ) /*.backgroundImageUrl(
"//unpkg.com/three-globe/example/img/night-sky.png",
)*/
.objectLat("lat")
diff --git a/frontend/src/components/ui/blogCard.tsx b/frontend/src/components/ui/blogCard.tsx
index c2531bf..f1389dc 100644
--- a/frontend/src/components/ui/blogCard.tsx
+++ b/frontend/src/components/ui/blogCard.tsx
@@ -9,7 +9,7 @@ const BlogCard = React.forwardRef<
(({ className, ...props }, ref) => (
));
@@ -36,7 +36,7 @@ const BlogCardTitle = React.forwardRef<
->(({ className, ...props }, ref) => (
-
-));
-BlogCardDescription.displayName = "BlogCardDescription";
-
const BlogCardContent = React.forwardRef<
HTMLDivElement,
React.HTMLAttributes
>(({ className, ...props }, ref) => (
-
+
));
BlogCardContent.displayName = "BlogCardContent";
@@ -68,11 +56,7 @@ const BlogCardFooter = React.forwardRef<
HTMLDivElement,
React.HTMLAttributes
>(({ className, ...props }, ref) => (
-
+
));
BlogCardFooter.displayName = "BlogCardFooter";
@@ -81,6 +65,5 @@ export {
BlogCardHeader,
BlogCardFooter,
BlogCardTitle,
- BlogCardDescription,
BlogCardContent,
};
diff --git a/frontend/src/components/ui/satelliteCard.tsx b/frontend/src/components/ui/satelliteCard.tsx
index 32a1257..d5cd40b 100644
--- a/frontend/src/components/ui/satelliteCard.tsx
+++ b/frontend/src/components/ui/satelliteCard.tsx
@@ -1,5 +1,6 @@
"use client";
import React from "react";
+import Link from "next/link";
import Image from "next/image";
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
import SatelliteStatsTable from "@/components/satelliteData/SatelliteStatsTable";
@@ -11,29 +12,25 @@ interface SatelliteCardProps {
satelliteName: string;
missionStatus: string;
previewImage?: string; // Optional
+ satelliteId: Number;
}
const SatelliteCard: React.FC = ({
satelliteName,
missionStatus,
previewImage,
+ satelliteId,
}) => {
/*const setSelectedSatellite = useSatelliteStore(
(state) => state.setSelectedSatellite,
);*/
- const handleSatelliteCardClick = (satelliteName: string) => () => {
- //setSelectedSatellite(satelliteName);
- window.location.href = `/satellites/${encodeURIComponent(satelliteName)}`;
- };
-
return (
-
- {" "}
- {/* Ensure the link is clickable and accessible */}
{satelliteName}
@@ -46,9 +43,9 @@ const SatelliteCard: React.FC = ({
{previewImage ? (
) : (
@@ -58,7 +55,7 @@ const SatelliteCard: React.FC = ({
)}
-
+
);
};