Skip to content

Website frontend source code containing auth and requests logic.

License

Notifications You must be signed in to change notification settings

1337-legal/Frontend

Repository files navigation

⚡ 1337.legal Frontend

Landing & marketing surface for the 1337.legal privacy email alias service.


🎯 Purpose

  • Present core value: private aliases, Blindflare envelope, infra posture
  • Drive users to Get Started, extension install, API docs
  • Zero user data handling (static marketing surface)

🧱 Tech Stack

Layer Choice
Runtime Bun
Framework React + TypeScript + Vite
Styling Tailwind CSS (utility + local keyframes)
Routing react-router
Icons lucide-react
UI Shadcn UI

🔧 Development

bun install          # deps
bun run dev          # local dev (Vite)
bun run build        # production build
bun run preview      # serve built output

🧬 Environment

This marketing SPA only needs public, non-secret endpoints.
Environment variables (Vite import.meta.env.*) are read at build time.

Current variables (see .env):

VITE_BACKEND_URL="https://api.1337.legal"
VITE_TOR_BACKEND_URL="http://sdxckw2f4nwunlcvc5ct34z67octnhxdilpwe7vfsou3aftbwolusnid.onion"

Notes:

  • These are PUBLIC: do not place secrets in VITE_ prefixed vars (they are bundled).
  • Override locally by creating .env.local (git‑ignored by default if you add it to .gitignore):
    VITE_BACKEND_URL="https://localhost:8787"
    VITE_TOR_BACKEND_URL="http://exampleonion.onion"
  • Access in code: const base = import.meta.env.VITE_BACKEND_URL;
  • Changing values requires a rebuild (bun run dev auto picks up restarts).

If env vars are absent, app should gracefully no-op any network feature (keep purely static).


✨ Conventions

  • Keep page shells lean; collocate animations with component usage
  • Reusable marketing slices live under feature components
  • Internal nav: Button asChild + <Link>
  • External links: plain <a>
  • No runtime env needed (pure SPA marketing)

☁️ Deployment

Any static host (Netlify / Vercel / Cloudflare Pages / S3+CDN).
Build output: dist/.


🛣 Future Ideas

  • 🚀 Extension install CTA section
  • 🌓 Theme toggle (light/dark)
  • 🌐 i18n (maybe)
  • 📊 Privacy‑preserving, deferred analytics
  • 🪪 Transparency + infra posture evolution

🤝 Contributing (Soon)

Lightweight contribution guide will be added once extension public API stabilizes.


🛡 Trademark

“1337” and related branding are reserved; code reuse fine, avoid confusing representation.


🧩 License

(Choose: MIT / Apache-2.0 / MPL-2.0 — not finalized in this repo yet.)


Built to make email aliasing boring, private, and fast. 🧪

About

Website frontend source code containing auth and requests logic.

Topics

Resources

License

Stars

Watchers

Forks

Contributors