Skip to content

feat: add landing page - #4

Merged
its-gabo merged 1 commit into
mainfrom
gs_feat_add_landing_page
Nov 18, 2026
Merged

its-gabo merged 1 commit into
mainfrom
gs_feat_add_landing_page

Conversation

@its-gabo

@its-gabo its-gabo commented Nov 18, 2026 •

Copy link
Copy Markdown
Owner

Summary

OpenStream had no public website, only the README. This PR adds a landing page in apps/landing. It's a static Astro site that looks like the product: the same graphite and warm white, the signet, Space Grotesk and Oxanium. It uses scroll animations.

The landing page is independent of the API and the shared packages, and bun run dev doesn't start it, so self-hosters don't run it. It's served on https://landing.openstream.localhost and builds to plain files for any static host.

What visitors see

  • Preloader. The signet draws itself while a "Buffering 00 → 100%" counter fills, then the screen wipes up. It plays once per visit.
  • Hero. The headline from the banner, then a copy of the dashboard built in HTML, so it stays sharp at any size. A live player plays a Big Buck Bunny clip over it, and its quality menu opens for a moment. The chart bars grow, the stats count up, and the window tilts back and settles as you scroll.
  • Player timeline. A fixed bar at the bottom works like the player's: the page is a 10:34 "video". Progress and time follow the scroll. Chapter markers show section names on hover and jump to a section on click. It moves out of the way at the bottom of the page.
  • Marquee. "upload · transcode · store · play · …" in two rows that speed up and lean when you scroll fast.
  • Statement. The words light up one by one as you scroll.
  • How it works. The section pins and scrolls sideways through Upload, Transcode, Play and Measure. Each panel animates something real: upload chunks filling, quality bars growing, a refused site shaking, a views chart. On phones the panels stack vertically.
  • Features, numbers, security, quick start, FAQ.
    • Screenshots open out from a clipped frame.
    • Numbers count up.
    • Cards follow the pointer with a soft light.
    • The terminal types the setup commands, with a Copy button.
    • The FAQ is an animated accordion.
  • Footer. The signet and wordmark assemble as you scroll to them.
  • Reduced motion. With reduced motion turned on, there's no preloader or smooth scrolling and all content shows at once.

Changes

Landing app

  • Stack. Astro 7, GSAP 3.15 with ScrollTrigger and SplitText, and Lenis for smooth scrolling. The fonts are the ones the app uses, plus JetBrains Mono for code.

  • Structure.

    • One page, src/pages/index.astro, made of a component per section in src/components.
    • The animations live in src/scripts/animations.ts.
    • src/lib/icons.ts holds the Lucide icons the web app uses, inlined.
  • Media.

    • The README screenshots and logos.
    • A 10 s 720p Big Buck Bunny clip (2.6 MB), with a poster and a storyboard strip.
  • Settings.

    Variable Purpose Default
    SITE_URL Public URL of the site, for absolute links like og:image https://landing.openstream.localhost
    PUBLIC_APP_URL Where the "Open app" links point https://app.openstream.localhost

    apps/landing/turbo.json passes both through to the build, because Turbo drops undeclared variables.

Development

  • bun run dev now excludes the landing app with --filter=!landing.
  • bun run dev:landing starts the landing app on port 3002 together with Caddy. If bun run dev is already running, Caddy is already up, so start only the site with bun run --cwd apps/landing dev.
  • Caddy. landing.openstream.localhost proxies to port 3002. The URL tables in the README and in apps/reverse-proxy/README.md list it.
  • .gitignore ignores Astro's generated .astro folder.

Deployment

apps/landing/README.md lists the settings for any static host:

  • Install with bun install at the repository root.
  • Build with bun run build --filter=landing.
  • Publish apps/landing/dist.

Credits

The hero clip is from Big Buck Bunny, © Blender Foundation, CC BY 3.0. The credit is in apps/landing/README.md.

@its-gabo its-gabo self-assigned this Nov 18, 2026
@its-gabo its-gabo changed the title feat: add an animated landing page feat: add landing page Nov 18, 2026
@its-gabo
its-gabo merged commit 8c06f02 into main Nov 18, 2026
1 of 2 checks passed
@its-gabo
its-gabo deleted the gs_feat_add_landing_page branch November 18, 2026 21:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant