Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
163 changes: 163 additions & 0 deletions apps/landing/src/components/Engage.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,163 @@
---
import Icon from "./Icon.astro"
import type { IconName } from "../lib/icons"

const items: { icon: IconName; title: string; text: string }[] = [
{
icon: "bookmark",
title: "Chapters",
text: "Split the seek bar into chapters viewers can jump between. Add them at the playhead or paste a list from a video description, then see how many viewers reach and finish each one.",
},
{
icon: "captions",
title: "Captions",
text: "Upload WebVTT or SRT tracks in any language, or transcribe videos on demand or as soon as they're processed. Viewers pick a track in the player.",
},
{
icon: "sparkles",
title: "AI you plug in",
text: "Connect OpenAI or any OpenAI-compatible server with your own key. It writes captions and suggests chapters you review before saving, within monthly limits you set.",
},
{
icon: "list-video",
title: "Playlists",
text: "Group videos into a playlist that plays in one embed, with an episodes menu and the next video starting after a short countdown.",
},
{
icon: "mouse-pointer-click",
title: "Calls to action",
text: "Show a button over the video at the moment you choose, or on its end screen. Analytics show how often each one was answered or closed.",
},
{
icon: "mail",
title: "Leads",
text: "Collect email addresses in the player with a consent checkbox. Find them on the Leads page, export them as CSV, or receive each one by webhook.",
},
]
---

<section class="engage container" id="player">
<div class="engage__head">
<p class="eyebrow">Player</p>
<h2 class="section-title" data-reveal="lines">More than a play button</h2>
<p class="engage__lead" data-reveal="fade">
Help viewers find their way through long videos, reach everyone with
captions, and turn views into sign-ups.
</p>
</div>
<div class="engage__grid">
{
items.map((item) => (
<article class="engage__card" data-spotlight data-reveal="card">
<span class="engage__icon">
<Icon name={item.icon} />
</span>
<h3>{item.title}</h3>
<p>{item.text}</p>
</article>
))
}
</div>
</section>

<style>
.engage {
display: grid;
gap: clamp(2.5rem, 5vw, 4rem);
padding-block: clamp(6rem, 12vw, 10rem);
}

.engage__head {
display: grid;
gap: 1.25rem;
}

.engage__head h2 {
max-width: 14ch;
}

.engage__lead {
max-width: 48ch;
color: var(--fg-dim);
}

.engage__grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 1rem;
}

.engage__card {
position: relative;
display: grid;
align-content: start;
gap: 1rem;
min-height: 280px;
padding: clamp(1.5rem, 3vw, 2.25rem);
border: 1px solid var(--line);
border-radius: 22px;
background: var(--bg-raised);
overflow: hidden;
isolation: isolate;
}

/* A soft light that follows the pointer */
.engage__card::before {
content: "";
position: absolute;
inset: 0;
z-index: -1;
background: radial-gradient(
420px circle at var(--x, 50%) var(--y, -20%),
rgb(236 235 230 / 0.09),
transparent 60%
);
opacity: 0;
transition: opacity 0.4s;
}

.engage__card:hover::before {
opacity: 1;
}

.engage__icon {
display: grid;
place-items: center;
width: 48px;
height: 48px;
border: 1px solid var(--line-strong);
border-radius: 14px;
}

.engage__icon :global(svg) {
width: 22px;
height: 22px;
}

.engage__card h3 {
margin-top: 2rem;
font-family: var(--font-heading);
font-size: clamp(1.4rem, 2.2vw, 1.8rem);
letter-spacing: -0.01em;
}

.engage__card p {
color: var(--fg-dim);
}

@media (max-width: 1100px) {
.engage__grid {
grid-template-columns: repeat(2, 1fr);
}
}

@media (max-width: 760px) {
.engage__grid {
grid-template-columns: 1fr;
}

.engage__card {
min-height: 0;
}
}
</style>
14 changes: 13 additions & 1 deletion apps/landing/src/components/Faq.astro
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,21 @@ const questions = [
question: "How are views counted?",
answer: "A view counts once playback starts, and watch time is measured as people actually watch. Viewers are never identified.",
},
{
question: "Do captions and chapters need an AI service?",
answer: "No. You can upload WebVTT or SRT captions and write chapters yourself. To generate them, connect OpenAI or any OpenAI-compatible server with your own key. You set a monthly limit for each provider.",
},
{
question: "Can I collect leads from my videos?",
answer: "Yes. Add an email form over the video or on its end screen. Viewers tick a consent box, and you find the addresses on the Leads page, as a CSV export, or by webhook.",
},
{
question: "How do I run it in production?",
answer: "Use the production Docker Compose file. It runs ready-made images of the API, web app and proxy from the GitHub container registry, alongside PostgreSQL and Redis, and applies database migrations on start.",
},
{
question: "Can I upload from my own backend?",
answer: "Yes. Create an API key with upload access and send files from your backend with the API.",
answer: "Yes. Create an API key with upload access and send files from your backend with the API, or pass a link and the server downloads the file.",
},
{
question: "What does it cost?",
Expand Down
6 changes: 4 additions & 2 deletions apps/landing/src/components/Features.astro
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const features = [
title: "Every video, ready in every quality",
points: [
"Group videos into libraries, each with its own qualities, player style and allowed sites.",
"Upload a file, or import one from a link and let the server download it.",
"Pick a thumbnail from any frame, or upload your own image.",
"Thumbnail previews while viewers scrub through a video.",
],
Expand All @@ -18,7 +19,8 @@ const features = [
title: "Real viewing data, not guesses",
points: [
"Views, watch time and completion over the last 7, 30 or 90 days.",
"See exactly where viewers stop watching.",
"See exactly where viewers stop watching, and how far they get through each chapter.",
"How often each call to action is answered or closed.",
"Devices and sites, without tracking individual viewers.",
],
image: "/media/feature-analytics.png",
Expand All @@ -31,7 +33,7 @@ const features = [
title: "Built for your backend",
points: [
"Up to 25 named keys per library, with the access you choose for each.",
"Signed webhooks for every upload and processing step, retried until they arrive.",
"Signed webhooks for every upload, processing step, caption and lead, retried until they arrive.",
"A documented API with a ready-made TypeScript client.",
],
image: "/media/feature-api.png",
Expand Down
1 change: 1 addition & 0 deletions apps/landing/src/components/Header.astro
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { APP_URL, GITHUB_URL } from "../lib/links"
const links = [
{ href: "#how-it-works", label: "How it works" },
{ href: "#features", label: "Features" },
{ href: "#player", label: "Player" },
{ href: "#security", label: "Security" },
{ href: "#faq", label: "FAQ" },
]
Expand Down
6 changes: 3 additions & 3 deletions apps/landing/src/components/Hero.astro
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ const qualities = ["Auto", "1080p", "720p", "480p", "360p"]
</h1>
<div class="hero__row">
<p class="hero__lead" data-reveal="hero">
Upload videos, transcode them to adaptive HLS and play them in an
embeddable player on your own sites. Your buckets, your domains, your
viewers.
Upload or import videos, transcode them to adaptive HLS, add captions
and chapters, and play them in an embeddable player on your own sites.
Your buckets, your domains, your viewers.
</p>
<div class="hero__actions" data-reveal="hero">
<a href={DOCS_URL} class="btn btn--solid" data-magnetic>Self-host it</a>
Expand Down
4 changes: 2 additions & 2 deletions apps/landing/src/components/Marquee.astro
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
---
import Signet from "./Signet.astro"

const words = ["Upload", "Transcode", "Store", "Play", "Measure", "Integrate", "Audit"]
const words = ["Upload", "Transcode", "Caption", "Play", "Engage", "Measure", "Integrate"]
const rows = [
{ id: "a", direction: -1 },
{ id: "b", direction: 1 },
]
---

<section class="marquee" aria-label="Upload, transcode, store, play, measure, integrate, audit">
<section class="marquee" aria-label="Upload, transcode, caption, play, engage, measure, integrate">
{
rows.map((row) => (
<div class="marquee__row" data-marquee={row.direction} aria-hidden="true">
Expand Down
Loading
Loading