diff --git a/src/components/blogs.tsx b/src/components/blogs.tsx index d1dbb04..c59c77c 100644 --- a/src/components/blogs.tsx +++ b/src/components/blogs.tsx @@ -5,7 +5,7 @@ const Blogs = () => { Community Events
- + Separator line image
diff --git a/src/components/communityPartners.tsx b/src/components/communityPartners.tsx index 5b809fe..7e9a7eb 100644 --- a/src/components/communityPartners.tsx +++ b/src/components/communityPartners.tsx @@ -1,5 +1,5 @@ import React from "react"; - +import {communityData} from "../constants/index" const CommunityPartners = () => { return (
@@ -22,7 +22,7 @@ const CommunityPartners = () => {

Here is a glimpse of the program from 2022 & 2023!

*/} -
+ {/*
{
- + image bmgf
- + Image +
+
*/} + {/* Modified code above code by Lahu19 */} +
+ {communityData.map((card, index) => ( +
+ +
+ ))}
-
diff --git a/src/components/companies.tsx b/src/components/companies.tsx index 8736fb8..dc57be6 100644 --- a/src/components/companies.tsx +++ b/src/components/companies.tsx @@ -1,6 +1,6 @@ // import "react-responsive-carousel/lib/styles/carousel.min.css"; // requires a loader // import { Carousel } from "react-responsive-carousel"; - +import {companiesData} from "../constants/index" const Companies = () => { return (
@@ -11,7 +11,7 @@ const Companies = () => {
- + {/* @@ -30,7 +30,10 @@ const Companies = () => { - + */} + {companiesData.map((data, index) => ( + organisations logo image + ))}
); diff --git a/src/constants/index.js b/src/constants/index.js new file mode 100644 index 0000000..6dad4e3 --- /dev/null +++ b/src/constants/index.js @@ -0,0 +1,105 @@ +export const communityData = [ + { + id: "0", + imageUrl: "/images/DPGA.svg", + }, + { + id: "1", + imageUrl: "/images/Github.png", + }, + { + id: "2", + imageUrl: "/images/oni.jpg", + }, + { + id: "3", + imageUrl: "/images/bmgf.png", + }, + { + id: "4", + imageUrl: "/images/Samagra.png", + }, + ]; + export const companiesData = [ + { + id: "0", + imageUrl: "/images/organisations/avanti.png", + }, + { + id: "1", + imageUrl: "/images/organisations/dhiway.png", + }, + { + id: "2", + imageUrl: "/images/organisations/digital-green.png", + }, + { + id: "3", + imageUrl: "/images/organisations/egov.png", + }, + { + id: "4", + imageUrl: "/images/organisations/ek-step.png", + }, + { + id: "5", + imageUrl: "/images/organisations/fide.png", + }, + { + id: "6", + imageUrl: "/images/organisations/meity.png", + }, + { + id: "7", + imageUrl: "/images/organisations/nha.png", + }, + { + id: "8", + imageUrl: "/images/organisations/reap-benefit.png", + }, + + { + id: "9", + imageUrl: "/images/organisations/sahaj.png", + }, + { + id: "10", + imageUrl: "/images/organisations/samagra-x.png", + }, + { + id: "11", + imageUrl: "/images/organisations/samanvay.png", + }, + { + id: "12", + imageUrl: "/images/organisations/sanketika.png", + }, + { + id: "13", + imageUrl: "/images/organisations/shikshalokam.png", + }, + { + id: "14", + imageUrl: "/images/organisations/tarento.png", + }, + { + id: "15", + imageUrl: "/images/organisations/tech4dev.png", + }, + { + id: "16", + imageUrl: "/images/organisations/tekdi.png", + }, + { + id: "17", + imageUrl: "/images/organisations/thoughtworks.png", + }, + { + id: "18", + imageUrl: "/images/organisations/tibil.png", + }, + { + id: "19", + imageUrl: "/images/organisations/trustin.png", + }, + ]; \ No newline at end of file