Skip to content

Commit 2228d5e

Browse files
authored
WEB-55 Fix: testimonial card - company and title (#385)
* fix testimonial card - company and title * fix width of cards
1 parent d2fcd0d commit 2228d5e

File tree

5 files changed

+20
-11
lines changed

5 files changed

+20
-11
lines changed

apps/website/src/components/Avatar.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
const { imagePath, name, company, role } = Astro.props;
33
---
44

5-
<div class="grid gap-3 max-md:grid-rows-[auto_auto] md:grid-cols-2">
5+
<div class="flex gap-3 col-span-2">
66
<img src={imagePath} class="h-[72px] w-[72px]" />
7-
<span class="text-sm">
7+
<span class="text-xl leading-7">
88
<strong>{name}</strong><br />
99
<span class="underline">{company}</span>
1010
{role}

apps/website/src/components/testimonial.astro

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ for (const testimonial of testimonialCollections) {
1616
name: testimonial.data.name,
1717
title: testimonial.data.title,
1818
imageUrl: testimonial.data.imageUrl,
19+
company: testimonial.data.company,
1920
});
2021
}
2122
---
@@ -30,15 +31,20 @@ for (const testimonial of testimonialCollections) {
3031
</SectionTitle>
3132
</div>
3233
<div
33-
class="px-4 sm:px-7 no-scrollbar flex overflow-x-auto w-full gap-2 pt-12 md:pt-16 lg:pt-24"
34+
class="px-4 sm:px-7 no-scrollbar flex overflow-x-auto w-full gap-2 pt-12 md:pt-16 lg:pt-24
35+
xl:flex-wrap xl:justify-between xl:overflow-hidden"
3436
>
3537
{
36-
testimonials.map(({ name, content, title, imageUrl }) => (
37-
<article class=" bg-[#F4F4F4] rounded-2xl p-7 min-w-[318px] md:min-w-[474px] xl:min-w-0 max-w-full [&_p]:leading-7 [&_p]:text-black [&_p]:w-full">
38-
<p set:html={content?.html} class="" />
39-
38+
testimonials.map(({ name, content, title, imageUrl, company }) => (
39+
<article class="flex-1 bg-[#F4F4F4] rounded-2xl p-7 min-w-[318px] md:min-w-[474px] xl:min-w-0 max-h-fit max-w-full [&_p]:leading-7 [&_p]:text-black [&_p]:w-full">
40+
<p set:html={content?.html} class="text-base leading-[26px]" />
4041
<div class="pt-7">
41-
<Avatar name={name} role={title} imagePath={imageUrl} />
42+
<Avatar
43+
name={name}
44+
role={title}
45+
imagePath={imageUrl}
46+
company={company}
47+
/>
4248
</div>
4349
</article>
4450
))
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
---
22
imageUrl: "/raphael-bauer.png"
33
name: "Raphael Bauer"
4-
title: "Interim CTO"
4+
title: "CTO"
5+
company: "Interim"
56
---
67

78
CroCoder is one of the most trusted partners in my network. We have successfully completed multiple projects in the past. I highly recommend CroCoder - their team is exceptional and they will offer you outstanding support for your projects. I look forward to future collaborations with CroCoder!
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
---
22
imageUrl: "/Paul-Jeszenszky.png"
33
name: "Paul Jeszenszky"
4-
title: "Submix co-founder & CEO"
4+
title: "co-founder & CEO"
5+
company: "Submix"
56
---
67

78
We have found the perfect extension of our team with CroCoder. We operate as one team, celebrating our wins and working through the challenges together. They “own” the roadmap, deadlines and outcomes with us - from the ideation and direction stages through to post-launch optimization.
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
---
22
imageUrl: "/michele-rattotti.png"
33
name: "Michele Rattotti"
4-
title: "4evergreen Project Manager"
4+
title: "Project Manager"
5+
company: "4evergreen"
56
---
67

78
We were impressed by the proactive attitude [of CroCoder] and capacity to turn theory into practice. Their support and assistance was very timely and precise, always followed by concrete implementing steps. The small team has a strong multidisciplinary background and proved a good attitude to work in team with other consultants

0 commit comments

Comments
 (0)