Skip to content

feat: add the landing page - #14

Merged
ribeirogab merged 1 commit into
mainfrom
feat/landing-page
Oct 5, 2026
Merged

ribeirogab merged 1 commit into
mainfrom
feat/landing-page

Conversation

@ribeirogab

Copy link
Copy Markdown
Owner

Summary

  • Adds the landing page for https://github-file-hider.ribeiro.engineer as a static Vite site in site/ (direction 4 of the prototypes, "Try it right here").
  • The sandbox replays the demo pull request with the extension's own src/rules.ts and src/ui/copy.ts, so its behavior and text match the extension.
  • Self-hosted fonts, a build-time Content Security Policy that allows only the site's own files, security and cache headers, a 404 page, SEO metadata (canonical, Open Graph, SoftwareApplication structured data, robots.txt, sitemap.xml), favicon, touch icon, and a 1200 × 630 link preview.
  • wrangler.jsonc deploys the site as a Cloudflare Worker with static assets on the custom domain. pnpm site:deploy builds and deploys.

Tests

  • pnpm test:site (new, also in the CI Linux job): no console errors, no CSP violations, no third-party requests, sandbox counts and rules, Show all files, revealing a file from the tree, phone layout, metadata, and the 404 page.
  • tests/unit/site-model.test.ts: the sandbox model on the demo data.
  • pnpm check, pnpm typecheck, and pnpm test:unit pass locally. wrangler deploy --dry-run reads the 28 built files.

The landing page at github-file-hider.ribeiro.engineer is a static Vite
site in site/. Its sandbox replays the demo pull request with the
extension's own rule engine and interface text, so visitors can turn
presets on, add rules, and watch files leave the tree before they
install.

The page self-hosts its fonts and ships a Content Security Policy that
allows only its own files. It has metadata for search engines and link
previews, a 404 page, security headers, and a link preview image that
pnpm store:images captures with the other images.

pnpm test:site checks the built page in Chromium, and CI runs it on
Linux. wrangler.jsonc deploys the page as a Cloudflare Worker with
static assets on its custom domain.
@ribeirogab
ribeirogab merged commit 865f9ec into main Oct 5, 2026
2 checks passed
@ribeirogab
ribeirogab deleted the feat/landing-page branch October 5, 2026 00:11
@ribeirogab ribeirogab self-assigned this Oct 5, 2026
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