Open source alternative to Semrush and Ahrefs
TypeScript backlink-analysisgoogle-search-console-mcpkeyword-researchmcpseoseo-agentseo-auditseo-automationseo-skillsseo-toolssite-audit
Replace the homepage demo video (#679)
Ben Senescu9a1c0a0f08ec
diff --git a/web/public/demo-poster.webp b/web/public/demo-poster.webpindex 5c962342..75a9c39f 100644Binary files a/web/public/demo-poster.webp and b/web/public/demo-poster.webp differdiff --git a/web/public/demo.mp4 b/web/public/demo.mp4index d1424362..64253e25 100644Binary files a/web/public/demo.mp4 and b/web/public/demo.mp4 differdiff --git a/web/src/components/landing-page.css b/web/src/components/landing-page.cssindex 28d6c0c1..d1e85520 100644--- a/web/src/components/landing-page.css+++ b/web/src/components/landing-page.css@@ -273,6 +273,40 @@overflow: hidden;background: var(--canvas);}+.itc-demo-video {+ position: relative;+}+.itc-demo-play {+ position: absolute;+ inset: 0;+ border: 0;+ padding: 0;+ background: rgba(17, 17, 17, 0.12);+ cursor: pointer;+ transition: background 160ms ease;+}+.itc-demo-play:hover,+.itc-demo-play:focus-visible {+ background: rgba(17, 17, 17, 0.2);+}+.itc-demo-play:focus-visible {+ outline: 3px solid var(--orange);+ outline-offset: -3px;+}+.itc-demo-play-button {+ position: absolute;+ left: 50%;+ top: 50%;+ transform: translate(-50%, -50%);+ display: grid;+ place-items: center;+ width: clamp(64px, 8vw, 96px);+ height: clamp(64px, 8vw, 96px);+ border-radius: 50%;+ background: #ffffff;+ color: var(--ink);+ box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);+}/* ── Hero ── */.itc-hero {diff --git a/web/src/components/landing-page.tsx b/web/src/components/landing-page.tsxindex 2465a3a3..e4f79625 100644--- a/web/src/components/landing-page.tsx+++ b/web/src/components/landing-page.tsx@@ -5,7 +5,13 @@* type, and a single orange emphasis moment around the MCP section.*/-import { type ReactNode, type SVGProps, useEffect, useState } from "react";+import {+ type ReactNode,+ type SVGProps,+ useEffect,+ useRef,+ useState,+} from "react";import { NewsletterSignup } from "@/components/newsletter-signup";import { ProductHuntLaurel } from "@/components/product-hunt-laurel";import { SiteFooter } from "@/components/site-footer";@@ -339,29 +345,41 @@ const FEATURE_CARDS = [];function DemoVideo() {+ const videoRef = useRef<HTMLVideoElement>(null);+ const [playing, setPlaying] = useState(false);+return (- <video- style={{ width: "100%" }}- width={1280}- height={966}- poster="/demo-poster.webp"- muted- loop- autoPlay- playsInline- preload="metadata"- aria-label="OpenSEO product demo: running keyword research"- >- <source src="/demo.mp4" type="video/mp4" />- <img- src="/demo-poster.webp"- alt="OpenSEO keyword research dashboard"- width={1280}- height={966}- loading="lazy"- decoding="async"- />- </video>+ <div className="itc-demo-video">+ <video+ ref={videoRef}+ style={{ width: "100%", display: "block" }}+ width={1440}+ height={900}+ poster="/demo-poster.webp"+ loop+ playsInline+ controls={playing}+ preload="metadata"+ aria-label="OpenSEO product demo: keyword research, backlinks, site audit, and an agent report"+ onPlay={() => setPlaying(true)}+ >+ <source src="/demo.mp4" type="video/mp4" />+ </video>+ {!playing && (+ <button+ type="button"+ className="itc-demo-play"+ onClick={() => void videoRef.current?.play()}+ aria-label="Play the OpenSEO demo video"+ >+ <span className="itc-demo-play-button" aria-hidden="true">+ <svg viewBox="0 0 24 24" width="36" height="36" fill="currentColor">+ <path d="M8.5 5v14l12-7z" />+ </svg>+ </span>+ </button>+ )}+ </div>);}@@ -379,7 +397,7 @@ function ProductSection() {</div><div className="itc-mockup" style={{ marginTop: 48 }}>- <div className="itc-mockup-media" style={{ aspectRatio: "1280/966" }}>+ <div className="itc-mockup-media" style={{ aspectRatio: "1440/900" }}><DemoVideo /></div></div>