Skip to content

The open source AI video agent: turns any coding agent into a video agent, with an editor to change anything it makes.

1.2 KB
Raw Blame
'use client';

import React from 'react';

/*
 * The mark: a playhead over two clips, together an F, in the surrounding text color (currentColor).
 * The clips are cut away around the playhead (a real gap, showing what is behind), so its shape holds in one color.
 */
const VIEWBOX = '8 6 84 92';
const PLAYHEAD = 'M17 12H37Q40 12 40 15V27Q40 29 38.5 30.5L31 37V88Q31 92 27 92Q23 92 23 88V37L15.5 30.5Q14 29 14 27V15Q14 12 17 12Z';

export function BrandLogo({ size = 18, className }: { size?: number; className?: string }) {
  const gap = `openfilm-gap-${React.useId().replace(/:/g, '')}`;
  return (
    <svg
      width={size}
      height={size}
      viewBox={VIEWBOX}
      fill="currentColor"
      className={`block shrink-0 ${className ?? ''}`.trim()}
      role="img"
      aria-label="OpenFilm"
    >
      <mask id={gap} maskUnits="userSpaceOnUse" x="0" y="0" width="100" height="100">
        <rect width="100" height="100" fill="#fff" />
        <path d={PLAYHEAD} stroke="#000" strokeWidth="7" strokeLinejoin="round" />
      </mask>
      <g mask={`url(#${gap})`}>
        <rect x="22" y="12" width="64" height="20" rx="5" />
        <rect x="25" y="44" width="47" height="19" rx="5" />
      </g>
      <path d={PLAYHEAD} />
    </svg>
  );
}