We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69bae37 commit bbb2457Copy full SHA for bbb2457
src/components/testimonial.js
@@ -1,5 +1,6 @@
1
import { useEffect, useState } from "react";
2
import Header from "./header";
3
+import Image from "next/image";
4
5
const testimonials = [
6
{
@@ -51,10 +52,12 @@ const Testimonial = ({ testimonial }) => (
51
52
<p className="text-white">{testimonial.text}</p>
53
<div className="flex items-center mt-4">
54
<div className="flex-shrink-0">
- <img
55
+ <Image
56
className="w-12 h-12 rounded-full"
- src={testimonial.image}
57
+ src={`/${testimonial.image}`}
58
alt={testimonial.name}
59
+ width={48}
60
+ height={48}
61
/>
62
</div>
63
<div className="ml-4">
0 commit comments