diff --git a/apps/website/src/components/landing/EmbedFrame.tsx b/apps/website/src/components/landing/EmbedFrame.tsx new file mode 100644 index 000000000..f0100d4ec --- /dev/null +++ b/apps/website/src/components/landing/EmbedFrame.tsx @@ -0,0 +1,109 @@ +'use client'; +import { useState } from 'react'; +import { tokens } from '@cacheplane/design-tokens'; + +interface EmbedFrameProps { + src: string; + title: string; + height?: number; +} + +function ExpandIcon() { + return ( + + + + ); +} + +function CloseIcon() { + return ( + + + + ); +} + +export function EmbedFrame({ src, title, height = 400 }: EmbedFrameProps) { + const [fullscreen, setFullscreen] = useState(false); + + if (fullscreen) { + return ( +
+
+ + {title} + + +
+