Adding youtube links.

This commit is contained in:
2023-02-17 10:06:29 -08:00
parent 847d58ec41
commit 65028a8c63
5 changed files with 36 additions and 5 deletions

View File

@@ -133,6 +133,12 @@ export default async function Page({ params }) {
</p>
</header>
<hr className="my-12 border-gray-200" />
{episode?.youtube && (
<div class="aspect-w-16 aspect-h-9">
<iframe src={episode.youtube} title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>
<hr className="my-12 border-gray-200" />
</div>
)}
<div
className="prose prose-slate mt-14 [&>h2]:mt-12 [&>h2]:flex [&>h2]:items-center [&>h2]:font-mono [&>h2]:text-sm [&>h2]:font-medium [&>h2]:leading-7 [&>h2]:text-slate-900 [&>h2]:before:mr-3 [&>h2]:before:h-3 [&>h2]:before:w-1.5 [&>h2]:before:rounded-r-full [&>h2]:before:bg-cyan-200 [&>ul]:mt-6 [&>ul]:list-['\2013\20'] [&>ul]:pl-5 [&>h2:nth-of-type(3n+2)]:before:bg-indigo-200 [&>h2:nth-of-type(3n)]:before:bg-violet-200"
dangerouslySetInnerHTML={{ __html: episode.content || 'CONTENT' }}