Repository navigation
feat: add landing page - #4
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 devdoesn't start it, so self-hosters don't run it. It's served onhttps://landing.openstream.localhostand builds to plain files for any static host.What visitors see
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.
src/pages/index.astro, made of a component per section insrc/components.src/scripts/animations.ts.src/lib/icons.tsholds the Lucide icons the web app uses, inlined.Media.
Settings.
SITE_URLhttps://landing.openstream.localhostPUBLIC_APP_URLhttps://app.openstream.localhostapps/landing/turbo.jsonpasses both through to the build, because Turbo drops undeclared variables.Development
bun run devnow excludes the landing app with--filter=!landing.bun run dev:landingstarts the landing app on port 3002 together with Caddy. Ifbun run devis already running, Caddy is already up, so start only the site withbun run --cwd apps/landing dev.landing.openstream.localhostproxies to port 3002. The URL tables in the README and inapps/reverse-proxy/README.mdlist it..gitignoreignores Astro's generated.astrofolder.Deployment
apps/landing/README.mdlists the settings for any static host:bun installat the repository root.bun run build --filter=landing.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.