Skip to content

Commit 24d3a3c

Browse files
committed
feat(frontend): testimonials-iframe
1 parent 0b015f8 commit 24d3a3c

File tree

2 files changed

+12
-15
lines changed

2 files changed

+12
-15
lines changed
Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,16 @@
1-
import Image from "next/image";
2-
3-
import CustomLink from "@/components/CustomLink";
41
import { Testimonial } from "@/queries/research-development/tabs-data";
52

6-
const TestimonialCard: React.FC<Testimonial> = ({ url, thumbnail }) => (
7-
<CustomLink href={url}>
8-
<div className="relative h-[203px] w-full overflow-hidden rounded-2xl">
9-
<Image
10-
src={thumbnail.url}
11-
alt="Thumbnail"
12-
fill
13-
className="object-cover"
14-
/>
15-
</div>
16-
</CustomLink>
3+
const TestimonialCard: React.FC<Testimonial> = ({ url }) => (
4+
<div className="relative h-[203px] w-full overflow-hidden rounded-2xl">
5+
<iframe
6+
style={{ width: "100%", height: "100%" }}
7+
src={url}
8+
title="YouTube video player"
9+
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
10+
referrerPolicy="strict-origin-when-cross-origin"
11+
allowFullScreen
12+
></iframe>
13+
</div>
1714
);
1815

1916
export default TestimonialCard;

frontend/src/queries/research-development/tabs-data.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export const tabSectionQuery = gql`
2020
subtitle
2121
bookTitle
2222
downloadFormats {
23-
text
23+
name
2424
file {
2525
url
2626
}

0 commit comments

Comments
 (0)