From 53544532197c663de370f2286c8d69548f0b1112 Mon Sep 17 00:00:00 2001 From: Subhadeep Roy Date: Mon, 20 May 2024 15:55:48 +0530 Subject: [PATCH] fixed changes in the contributors as said (#43) * fixed changes in the contributors * Update page.js --------- Co-authored-by: Prateek --- app/(home)/contributors.js | 47 ++++++++++++++++++++++++++++++++++++++ app/(home)/page.js | 33 +++++++++++++++++++++++++- next.config.mjs | 8 +++++++ 3 files changed, 87 insertions(+), 1 deletion(-) create mode 100644 app/(home)/contributors.js diff --git a/app/(home)/contributors.js b/app/(home)/contributors.js new file mode 100644 index 0000000..8e012f9 --- /dev/null +++ b/app/(home)/contributors.js @@ -0,0 +1,47 @@ +export const ContributorsData = [ + { + name: "Subhadeep Roy", + github: "https://git.new/Subha", + imageUrl:"https://avatars.githubusercontent.com/u/111780029?v=4", + }, + { + name: "Suhani Singh Paliwal", + github: "https://github.com/suhanipaliwal", + imageUrl:"https://avatars.githubusercontent.com/u/161575955?v=4", + }, + { + name: "Sanmarg Sandeep Paranjpe", + github: "https://github.com/sanmarg", + imageUrl:"https://avatars.githubusercontent.com/u/50082154?v=4", + }, + { + name: "Shrijal Acharya", + github: "https://github.com/shricodev", + imageUrl:"https://avatars.githubusercontent.com/u/76906722?v=4", + }, + { + name: "Yujit Yadav", + github: "https://github.com/yujit2003", + imageUrl:"https://avatars.githubusercontent.com/u/97657345?v=4", + }, + { + name: "Varda003", + github: "https://github.com/Varda003", + imageUrl:"https://avatars.githubusercontent.com/u/136989588?v=4", + }, + { + name: "Pradnya", + github: "https://github.com/PradnyaGaitonde", + imageUrl:"https://avatars.githubusercontent.com/u/116059908?v=4", + }, + { + name: "Prathica Shetty M", + github: "https://github.com/PrathicaShettyM", + imageUrl:"https://avatars.githubusercontent.com/u/123286880?v=4", + }, + { + name: "Saransh Bangar", + github: "https://github.com/SaranshBangar", + imageUrl:"https://avatars.githubusercontent.com/u/114401238?v=4", + }, +]; \ No newline at end of file diff --git a/app/(home)/page.js b/app/(home)/page.js index 41751f6..8951ab6 100644 --- a/app/(home)/page.js +++ b/app/(home)/page.js @@ -6,6 +6,8 @@ import Link from 'next/link'; import GridContainer from '@/components/GridContainer'; import { unstable_noStore as noStore } from 'next/cache'; import Header from '@/components/Header'; +import { ContributorsData } from './contributors'; +import Image from 'next/image'; export default async function Home() { noStore(); @@ -13,7 +15,7 @@ export default async function Home() { try { await connectDb(); - recenetProfiles = await RecentProfiles.find({ }).sort({ updatedAt: 'desc' }).limit(8); + recenetProfiles = await RecentProfiles.find({}).sort({ updatedAt: 'desc' }).limit(8); } catch (error) { console.log('An error occurred in Home Page while fetching recent profiles'); } @@ -68,6 +70,35 @@ export default async function Home() { )} + +
+

Meet Our Contributors

+
+
+
+ {ContributorsData.map((data, index) => ( + +
+ {data.name} +
+
+

{data.name}

+
+
+ ))} +
+
); diff --git a/next.config.mjs b/next.config.mjs index 2d96e33..9f61ea6 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -5,6 +5,14 @@ const nextConfig = { fullUrl: true, }, }, + images: { + remotePatterns: [ + { + protocol: 'https', + hostname: '*', + }, + ], + }, }; export default nextConfig;