vimeo-player.tsx

src/components/vimeo-player.tsx
'use client'
import { useRef } from 'react'
interface VimeoPlayerProps {
embed: any
}
/**
* Extracts aspect ratio padding percentage from a className string
* Looks for patterns like "aspect-ratio-16-9" or "aspect-16-9"
* Returns padding-top percentage (e.g., "56.25%" for 16:9)
*/
function getAspectRatioPadding(className?: string): string | undefined {
if (!className) return undefined
// Common aspect ratio patterns and their padding percentages
const aspectRatios: Record<string, string> = {
'16-9': '56.25%',
'16/9': '56.25%',

Showing the first 20 lines.

Get full code

Support

Talk to the developers of this project to learn more

We have been building professional websites for big clients for over 15 years. Gallop templates and blocks is our best foundation for SEO websites and web apps.

© 2026 Web Plant Media, LLC