Skip to content

Commit 35a3a95

Browse files
committed
Update styling
1 parent 2d5c217 commit 35a3a95

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

components/Page/Testimonial.tsx

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import * as React from 'react';
22
import { Review } from '../../models';
33
import { StarIcon } from '@heroicons/react/24/solid';
44
import { format, parseISO } from 'date-fns';
5+
import { VscQuote } from 'react-icons/vsc';
56

67
export interface ITestimonialProps {
78
reviews: Review[];
@@ -26,7 +27,15 @@ export const Testimonial: React.FunctionComponent<ITestimonialProps> = ({
2627
</div>
2728
<div className="mt-12 grid lg:mb-12 lg:grid-cols-2 bg-vulcan-400">
2829
{reviews.map((review, index) => (
29-
<figure key={index} className={`flex flex-col justify-center items-center p-8 text-center border-b border-vulcan-200 md:p-12 ${index % 2 === 0 ? "lg:border-r" : ""} ${index > 3 ? "lg:border-b-0" : ""}`}>
30+
<figure key={index} className={`flex flex-col p-8 text-center border-b border-vulcan-200 md:p-12 ${index % 2 === 0 ? "lg:border-r" : ""} ${index > 3 ? "lg:border-b-0" : ""}`}>
31+
<figcaption className="flex mb-4 items-center space-x-3">
32+
<img className="w-9 h-9 rounded-full" src={`https://marketplace.visualstudio.com/avatar?userid=${review.userId}`} alt="profile picture" />
33+
<div className="space-y-0.5 font-medium text-whisper-300 text-left">
34+
<div>{review.userDisplayName}</div>
35+
<div className="text-xs text-whisper-900">{format(parseISO(review.updatedDate), "MM/dd/yyyy")}</div>
36+
</div>
37+
</figcaption>
38+
3039
<div className={`stars mb-4 flex space-x-1`}>
3140
{
3241
review.rating && [...Array(review.rating)].map((_, index) => (
@@ -35,17 +44,9 @@ export const Testimonial: React.FunctionComponent<ITestimonialProps> = ({
3544
}
3645
</div>
3746

38-
<blockquote className="mx-auto mb-4 max-w-2xl text-whisper-100">
39-
<p className="my-4">&quot;{review.text}&quot;</p>
47+
<blockquote className="max-w-2xl text-whisper-100">
48+
<p className="text-left">{review.text}</p>
4049
</blockquote>
41-
42-
<figcaption className="flex justify-center items-center space-x-3">
43-
<img className="w-9 h-9 rounded-full" src={`https://marketplace.visualstudio.com/avatar?userid=${review.userId}`} alt="profile picture" />
44-
<div className="space-y-0.5 font-medium text-whisper-300 text-left">
45-
<div>{review.userDisplayName}</div>
46-
<div className="text-xs text-whisper-900">{format(parseISO(review.updatedDate), "MM/dd/yyyy")}</div>
47-
</div>
48-
</figcaption>
4950
</figure >
5051
))}
5152
</div >

0 commit comments

Comments
 (0)