diff --git a/components/communityImages.jsx b/components/communityImages.jsx
new file mode 100644
index 0000000..a2d0012
--- /dev/null
+++ b/components/communityImages.jsx
@@ -0,0 +1,23 @@
+import Image from 'next/image';
+
+export default function CommunityImages({ images, basePath }) {
+ return (
+
+ {images.map((image, index) => (
+
+ ))}
+
+ );
+}
diff --git a/config/communityImages.json b/config/communityImages.json
new file mode 100644
index 0000000..f654435
--- /dev/null
+++ b/config/communityImages.json
@@ -0,0 +1,11 @@
+[
+ {
+ "name": "WN24 Project Expo",
+ "image": "WN24_EXPO.JPG"
+ },
+ {
+ "name": "WN24 Data Science Night",
+ "image": "WN24_DSN.JPG"
+ }
+ ]
+
\ No newline at end of file
diff --git a/pages/index.jsx b/pages/index.jsx
index 9740366..70e5b8b 100644
--- a/pages/index.jsx
+++ b/pages/index.jsx
@@ -7,13 +7,14 @@ import SponsorSection from "@/components/sponsorSection";
import Timeline from "@/components/timeline";
import Wave from "@/components/wave";
import Wave180 from "@/components/wave180";
+import CommunityImages from "@/components/communityImages";
import loadStaticData from "@/shared/static";
import Image from "next/image";
import Link from "next/link";
import { useRouter } from "next/router";
import { useState } from "react";
-export default function Home({ sponsors, projects, timeline }) {
+export default function Home({ sponsors, projects, timeline, communityImages }) {
sponsors[0].tier = "MDST is made possible by our sponsors";
const router = useRouter();
const basePath = router.basePath;
@@ -119,7 +120,7 @@ export default function Home({ sponsors, projects, timeline }) {
-
+
MDST is proudly supported by our sponsors
@@ -151,30 +152,6 @@ function ProjectCard({ json, basePath }) {
);
}
-function CommunityImages({ basePath }) {
- return (
-
-
-
-
WN24 Data Science Night
-
-
-
- );
-}
function Factbox({ fact, closer }) {
return (
@@ -243,6 +220,7 @@ export async function getStaticProps() {
const sponsors = loadStaticData("sponsors.json");
const projects = loadStaticData("homepage.json");
const timeline = loadStaticData("timeline.json");
+ const communityImages = loadStaticData("communityImages.json");
- return { props: { sponsors, projects, timeline } };
+ return { props: { sponsors, projects, timeline, communityImages } };
}