Skip to content

Commit 5354453

Browse files
fixed changes in the contributors as said (#43)
* fixed changes in the contributors * Update page.js --------- Co-authored-by: Prateek <devXprite@gmail.com>
1 parent 0415303 commit 5354453

File tree

3 files changed

+87
-1
lines changed

3 files changed

+87
-1
lines changed

app/(home)/contributors.js

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
export const ContributorsData = [
2+
{
3+
name: "Subhadeep Roy",
4+
github: "https://git.new/Subha",
5+
imageUrl:"https://avatars.githubusercontent.com/u/111780029?v=4",
6+
},
7+
{
8+
name: "Suhani Singh Paliwal",
9+
github: "https://github.com/suhanipaliwal",
10+
imageUrl:"https://avatars.githubusercontent.com/u/161575955?v=4",
11+
},
12+
{
13+
name: "Sanmarg Sandeep Paranjpe",
14+
github: "https://github.com/sanmarg",
15+
imageUrl:"https://avatars.githubusercontent.com/u/50082154?v=4",
16+
},
17+
{
18+
name: "Shrijal Acharya",
19+
github: "https://github.com/shricodev",
20+
imageUrl:"https://avatars.githubusercontent.com/u/76906722?v=4",
21+
},
22+
{
23+
name: "Yujit Yadav",
24+
github: "https://github.com/yujit2003",
25+
imageUrl:"https://avatars.githubusercontent.com/u/97657345?v=4",
26+
},
27+
{
28+
name: "Varda003",
29+
github: "https://github.com/Varda003",
30+
imageUrl:"https://avatars.githubusercontent.com/u/136989588?v=4",
31+
},
32+
{
33+
name: "Pradnya",
34+
github: "https://github.com/PradnyaGaitonde",
35+
imageUrl:"https://avatars.githubusercontent.com/u/116059908?v=4",
36+
},
37+
{
38+
name: "Prathica Shetty M",
39+
github: "https://github.com/PrathicaShettyM",
40+
imageUrl:"https://avatars.githubusercontent.com/u/123286880?v=4",
41+
},
42+
{
43+
name: "Saransh Bangar",
44+
github: "https://github.com/SaranshBangar",
45+
imageUrl:"https://avatars.githubusercontent.com/u/114401238?v=4",
46+
},
47+
];

app/(home)/page.js

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,16 @@ import Link from 'next/link';
66
import GridContainer from '@/components/GridContainer';
77
import { unstable_noStore as noStore } from 'next/cache';
88
import Header from '@/components/Header';
9+
import { ContributorsData } from './contributors';
10+
import Image from 'next/image';
911

1012
export default async function Home() {
1113
noStore();
1214
let recenetProfiles = [];
1315

1416
try {
1517
await connectDb();
16-
recenetProfiles = await RecentProfiles.find({ }).sort({ updatedAt: 'desc' }).limit(8);
18+
recenetProfiles = await RecentProfiles.find({}).sort({ updatedAt: 'desc' }).limit(8);
1719
} catch (error) {
1820
console.log('An error occurred in Home Page while fetching recent profiles');
1921
}
@@ -68,6 +70,35 @@ export default async function Home() {
6870
</GridContainer>
6971
</div>
7072
)}
73+
74+
<div className="mb-8 mt-16 text-center">
75+
<h2 className="text-3xl font-bold tracking-tight sm:text-4xl">Meet Our Contributors</h2>
76+
</div>
77+
<div className="mb-10 px-4 md:px-12">
78+
<div className="grid grid-cols-2 max-w-screen-xl mx-auto gap-6 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-6">
79+
{ContributorsData.map((data, index) => (
80+
<a
81+
key={index}
82+
href={data.github}
83+
target="_blank"
84+
className="group rounded-lg p-4 shadow-sm transition-all duration-300"
85+
>
86+
<div className="relative overflow-hidden rounded-lg">
87+
<Image
88+
alt={data.name}
89+
className="h-full w-full object-cover object-center transition-all duration-500 group-hover:scale-110"
90+
src={data.imageUrl}
91+
width={400}
92+
height={400}
93+
/>
94+
</div>
95+
<div className="mt-4 text-center">
96+
<h3 className="text-lg font-semibold">{data.name}</h3>
97+
</div>
98+
</a>
99+
))}
100+
</div>
101+
</div>
71102
</main>
72103
</>
73104
);

next.config.mjs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ const nextConfig = {
55
fullUrl: true,
66
},
77
},
8+
images: {
9+
remotePatterns: [
10+
{
11+
protocol: 'https',
12+
hostname: '*',
13+
},
14+
],
15+
},
816
};
917

1018
export default nextConfig;

0 commit comments

Comments
 (0)