Skip to content

rubrion/web-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rubrion-web-client

Marketing-site monorepo for Rubrion — IT consulting for SMBs. Whitelabel products (EdgeLetter newsletter, Rubrion Store marketplace) and bespoke software. Sister org Mondesa handles IoT for energy systems.

Layout

Folder Stack Domain
rubrion-landing/ Astro 6 SSG + Tailwind v4 (monochrome + red "spark" brand) rubrion.ai (English)
rubrion-landing-pt/ hard-fork clone, translated copy rubrion.com.br (Portuguese — BR)

Both trees use the @astrojs/cloudflare adapter targeting output: 'static', load Cloudflare Turnstile on the contact + newsletter forms, post contact submissions to the support-email-worker (sibling repo ../support-email-worker/), and subscribe the newsletter via EdgeLetter (/api/subscribe). The blog page embeds the EdgeLetter blog as a self-resizing iframe. A navbar LanguageSwitcher links each site to its counterpart (EN ↔ PT).

Locale reuse

The SEO/GEO layer (Seo.astro, seo.ts, robots.txt.ts, Layout.astro) is locale-driven: it reads everything locale-specific from src/data/locale.ts. The PT tree differs from EN only in locale.ts, astro.config (site), wrangler.jsonc (name + KV id), package.json (name), and the translated strings in the .astro / seo.ts files. When EN copy changes, port the structural delta to PT by hand.

Local dev

cd rubrion-landing    && npm install && npm run dev   # :4321 (EN)
cd rubrion-landing-pt && npm install && npm run dev   # :4321 (PT, run separately)

Build & deploy

cd rubrion-landing    && npm run deploy   # → rubrion-landing worker (rubrion.ai)
cd rubrion-landing-pt && npm run deploy   # → rubrion-landing-pt worker (rubrion.com.br)

Each worker carries the non-secret build-time vars in .env.production (VITE_SUPPORT_WORKER_URL + Turnstile site key — the key allows both domains), baked into the client bundle by CF Workers Builds in CI. The custom domains attach to their respective workers in the dashboard.

Email + Turnstile

See EMAIL_INTEGRATION.md. The Cloudflare Worker that processes contact-form submissions is in ../support-email-worker/.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors