@@ -2,6 +2,7 @@ import * as React from 'react';
2
2
import { Review } from '../../models' ;
3
3
import { StarIcon } from '@heroicons/react/24/solid' ;
4
4
import { format , parseISO } from 'date-fns' ;
5
+ import { VscQuote } from 'react-icons/vsc' ;
5
6
6
7
export interface ITestimonialProps {
7
8
reviews : Review [ ] ;
@@ -26,7 +27,15 @@ export const Testimonial: React.FunctionComponent<ITestimonialProps> = ({
26
27
</ div >
27
28
< div className = "mt-12 grid lg:mb-12 lg:grid-cols-2 bg-vulcan-400" >
28
29
{ 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
+
30
39
< div className = { `stars mb-4 flex space-x-1` } >
31
40
{
32
41
review . rating && [ ...Array ( review . rating ) ] . map ( ( _ , index ) => (
@@ -35,17 +44,9 @@ export const Testimonial: React.FunctionComponent<ITestimonialProps> = ({
35
44
}
36
45
</ div >
37
46
38
- < blockquote className = "mx-auto mb-4 max-w-2xl text-whisper-100" >
39
- < p className = "my-4" > " { review . text } " </ p >
47
+ < blockquote className = "max-w-2xl text-whisper-100" >
48
+ < p className = "text-left" > { review . text } </ p >
40
49
</ 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 >
49
50
</ figure >
50
51
) ) }
51
52
</ div >
0 commit comments