diff --git a/frontend/components/Dynamic/Area.tsx b/frontend/components/Dynamic/Area.tsx
index 91f37ed..a0c4071 100644
--- a/frontend/components/Dynamic/Area.tsx
+++ b/frontend/components/Dynamic/Area.tsx
@@ -1,7 +1,6 @@
"use client";
import {
chakra,
- Link,
Stack,
Box,
Button,
@@ -17,7 +16,8 @@ import axios from "axios";
import { API_URL } from "@/app/config";
import { useEffect, useState } from "react";
import AreaTimeline from "../AreaTimeline";
-import { title } from "process";
+import Link from "next/link";
+import { imagePrefix } from "@/app/config";
const areaInfo: { [key: string]: { title: string; description: string } } = {
nmt: {
@@ -74,6 +74,7 @@ const fetchAreaData = async (slug: string) => {
export default function AreaComponent({ slug }: { slug: string }) {
const [areaData, setAreaData] = useState([]);
+ const [latest, setLatest] = useState("");
const { data, isLoading, error } = useQuery("fetchAreaData", () =>
fetchAreaData(slug.toUpperCase())
@@ -82,8 +83,13 @@ export default function AreaComponent({ slug }: { slug: string }) {
useEffect(() => {
if (!isLoading && !error) {
setAreaData(data);
+ data.forEach((element: any) => {
+ if (element.latest) {
+ setLatest(element.title);
+ console.log(element.title);
+ }
+ });
}
- console.log(data);
}, [data, isLoading, error]);
return (
@@ -105,6 +111,25 @@ export default function AreaComponent({ slug }: { slug: string }) {
{areaInfo[slug].title}
+ {latest !== "" ? (
+
+
+
+ ) : (
+ <>>
+ )}
To know more about our contributions over the years see the
timeline below!
diff --git a/frontend/components/Hero.tsx b/frontend/components/Hero.tsx
index 3562c9f..e54c454 100644
--- a/frontend/components/Hero.tsx
+++ b/frontend/components/Hero.tsx
@@ -15,7 +15,10 @@ import {
IconProps,
useColorModeValue,
Divider,
+ Wrap,
} from "@chakra-ui/react";
+import Link from "next/link";
+import { imagePrefix } from "@/app/config";
import Features from "./Features";
import Datasets from "./Datasets";
@@ -57,66 +60,73 @@ export default function Hero() {
in real-world use cases, making a significant impact across
academia, industry, and government sectors.
- {/*
-
-
-
-
-
- */}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+