mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-14 01:29:10 +02:00
- Convert YouTube tutorial cards to embedded iframe players - Create reusable YouTubeEmbed component in /snippets/ - Follow existing component pattern (like VersionBadge) - Use Mintlify-compatible JSX syntax (camelCase attributes) - Add responsive styling for better viewing experience This improves maintainability and ensures consistent YouTube embed styling across the docs. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
12 lines
No EOL
410 B
Text
12 lines
No EOL
410 B
Text
export const YouTubeEmbed = ({ videoId, title }) => {
|
|
return (
|
|
<iframe
|
|
className="w-full aspect-video rounded-md"
|
|
src={`https://www.youtube.com/embed/${videoId}`}
|
|
title={title}
|
|
frameBorder="0"
|
|
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
|
|
allowFullScreen
|
|
/>
|
|
);
|
|
}; |