Skip to content

Commit

Permalink
youtube thumbnail overflow solved (#159)
Browse files Browse the repository at this point in the history
Co-authored-by: deepak-hexa <[email protected]>
  • Loading branch information
deepak1051 and deepak-hexa authored Oct 1, 2024
1 parent 1561735 commit bf46cf0
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/components/LessonSection.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from "react";
import Link from "next/link";
import { lessons } from "@/data/lessons";
import { ArrowRight } from "lucide-react";
import React from 'react';
import Link from 'next/link';
import { lessons } from '@/data/lessons';
import { ArrowRight } from 'lucide-react';

export default function LessonSection() {
return (
Expand All @@ -16,20 +16,19 @@ export default function LessonSection() {
target="_blank"
href={lesson.link}
key={index}
className="dark:bg-gray-900 bg-gray-200 p-6 rounded-lg shadow-lg transition duration-300 hover:shadow-xl hover:scale-105"
className="dark:bg-gray-900 bg-gray-200 pb-12 rounded-lg shadow-lg transition duration-300 hover:shadow-xl hover:scale-105"
>
<div className="flex flex-col items-center text-center">
<div className="relative w-full overflow-hidden h-0 pb-[56.25%] rounded-lg">
<iframe

src={lesson.embed}
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
referrerPolicy="strict-origin-when-cross-origin"
allowFullScreen
className="absolute top-0 left-0 w-full h-full rounded-lg"
></iframe>
</div>
<h3 className="text-2xl mt-4 font-semibold mb-3 text-current">
<h3 className="text-2xl mt-4 font-semibold mb-3 text-current px-2">
{lesson.title}
</h3>
<span className="text-red-500 hover:text-red-600 font-medium flex items-center gap-1">
Expand Down

0 comments on commit bf46cf0

Please sign in to comment.