Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit b2a7719

Browse files
authored
feat: testimonials improvements (#292)
1 parent d41c05a commit b2a7719

File tree

1 file changed

+16
-14
lines changed

1 file changed

+16
-14
lines changed

src/components/Testimonials.jsx

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import Image from 'next/image'
2+
import Link from 'next/link'
23

34
import { Container } from '@/components/Container'
45

@@ -9,17 +10,22 @@ const testimonials = [
910
'Started contributing and building my GitHub profile and already got a job interview request based on my GitHub activity. So I really appreciate what you do here!',
1011
author: {
1112
name: 'emanuel_dev',
12-
role: 'https://github.com/EmanuelGF',
13-
image: 'https://github.com/EmanuelGF.png',
13+
username: 'EmanuelGF'
1414
},
1515
},
16+
{
17+
content: 'EddieHub is like a family to me! We get really warm welcomes here! We get all our issues solved by each others\' #help :) We get our 🟩 treats here! EddieHub is awesome. By Awesome I mean Awesome! It is a 10/5 rating!',
18+
author: {
19+
name: 'Krish Gupta',
20+
username: 'xkrishguptaa'
21+
}
22+
},
1623
{
1724
content:
1825
"EddieHub is like a family to me! We get really warm welcomes here! We get all our issues solved by each others' #help :) We get our 🟩 treats here! EddieHub is awesome. By Awesome I mean Awesome! It is a 10/5 rating!",
1926
author: {
2027
name: 'Vincent Villafuerte',
21-
role: 'https://github.com/vinzvinci',
22-
image: 'https://github.com/vinzvinci.png',
28+
username: 'vinzvinci'
2329
},
2430
},
2531
],
@@ -29,17 +35,15 @@ const testimonials = [
2935
"It's everything anyone could ever ask for in a community. Wholesome, Encouraging, Open Source and everything nice! Best thing happened in 2020. I'll be always thankful to this community and keep contributing here. It's beyond rating of 5 stars. 3000/5 ⭐",
3036
author: {
3137
name: 'Karuna Tata',
32-
role: 'https://github.com/starlightknown',
33-
image: 'https://github.com/starlightknown.png',
38+
username: 'starlightknown'
3439
},
3540
},
3641
{
3742
content:
3843
'EddieHub is the best growing 🚀 Open-Source community. Here, you can help each other by raising issues, solving doubts on the help channel, show your work (projects), make good connections and so many things.I would recommend all beginners to join the most respectful, collaborative and loving Open-Source community.Thanks @eddiejaoude, we support you!',
3944
author: {
4045
name: 'akhileshthite',
41-
role: 'https://github.com/akhileshthite',
42-
image: 'https://github.com/akhileshthite.png',
46+
username: 'akhileshthite'
4347
},
4448
},
4549
],
@@ -49,17 +53,15 @@ const testimonials = [
4953
'Eddiehub has helped me to understand the importance of Open Source and how easy it is to collaborate with developers from around the world to work on different projects and learn from each other in an amazing community.',
5054
author: {
5155
name: 'Evavic44',
52-
role: 'https://github.com/Evavic44',
53-
image: 'https://github.com/Evavic44.png',
56+
username: 'Evavic44'
5457
},
5558
},
5659
{
5760
content:
5861
"This is just an awesome community. This is the first community I have seen which puts collaboration first than the code. Collaborative people make a collaborative community and EddieHub is a perfect example of it 😄. I can't rate this community on the scale because priceless things can't be quantified ❤️",
5962
author: {
6063
name: 'Kaiwalya Koparkar',
61-
role: 'https://github.com/kaiwalyakoparkar',
62-
image: 'https://github.com/kaiwalyakoparkar.png',
64+
username: 'kaiwalyakoparkar'
6365
},
6466
},
6567
],
@@ -112,13 +114,13 @@ export function Testimonials() {
112114
{testimonial.author.name}
113115
</div>
114116
<div className="mt-1 text-sm text-slate-500">
115-
{testimonial.author.role}
117+
<Link href={`https://github.com/${testimonial.author.username}`}>@{testimonial.author.username}</Link>
116118
</div>
117119
</div>
118120
<div className="overflow-hidden rounded-full bg-slate-50">
119121
<Image
120122
className="h-14 w-14 object-cover"
121-
src={testimonial.author.image}
123+
src={'https://github.com/' + testimonial.author.username + '.png'}
122124
alt=""
123125
width={56}
124126
height={56}

0 commit comments

Comments
 (0)