Find a file
oskar 605bc3d025 refactor(i18n): cała treść landingu i /platforma przez useT()
Krok 1 z dwóch: przenosi stringi, nie tłumaczy ich. en.ts dostaje komplet
kluczy z polską treścią — angielskie wartości wchodzą osobnym commitem, żeby
diff tłumaczeń dało się czytać zdanie po zdaniu.

- data/content.ts: zostaje sama struktura (id, icon, href). Ikony to komponenty
  Reacta i nie mogą wejść do słowników; kolejność i liczba kart są przez to
  zdefiniowane raz, a nie duplikowane per język.
- i18n/types.ts + RichText: akapity z <strong>/<em> w środku zdania trzymamy
  jako listę przebiegów. Bez dangerouslySetInnerHTML — tłumaczenie nie może
  wstrzyknąć znaczników.
- en.ts typowane jako `typeof pl`, więc rozjazd kluczy to błąd builda. Przy
  ~150 kluczach to główne ryzyko tej zmiany.
- privacy.backToHome -> common.backToHome (używane przez obie podstrony).

Weryfikacja: renderowany tekst porównany z produkcją na wszystkich sześciu
trasach — identyczny, poza linkiem powrotnym na /en/platforma, który był
zahardkodowany po polsku i teraz zgadza się z /en/privacy.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-07-31 16:46:46 +02:00
.junie/memory Initial commit: project structure and header component 2026-05-12 19:09:50 +02:00
mailer Add contact form mailer microservice and i18n support 2026-06-18 15:12:05 +02:00
src refactor(i18n): cała treść landingu i /platforma przez useT() 2026-07-31 16:46:46 +02:00
.env.example Add contact form mailer microservice and i18n support 2026-06-18 15:12:05 +02:00
.gitignore chore: ignoruj roboczy CONTENT_EXPORT.md 2026-07-31 14:49:06 +02:00
deploy.sh fix deploy.sh: target Hetzner VPS instead of piha.local homelab 2026-06-18 15:22:04 +02:00
Dockerfile feat: dodaj stronę polityki prywatności (PL+EN) z routingiem 2026-06-25 12:53:49 +02:00
index.html feat: wybór języka przez URL (/en) — reaktywny hook, przełącznik, hreflang 2026-07-31 15:54:49 +02:00
nginx.conf feat: dodaj stronę polityki prywatności (PL+EN) z routingiem 2026-06-25 12:53:49 +02:00
package-lock.json Initial commit: project structure and header component 2026-05-12 19:09:50 +02:00
package.json Initial commit: project structure and header component 2026-05-12 19:09:50 +02:00
postcss.config.js Initial commit: project structure and header component 2026-05-12 19:09:50 +02:00
README.md Add contact form mailer microservice and i18n support 2026-06-18 15:12:05 +02:00
tailwind.config.js Initial commit: project structure and header component 2026-05-12 19:09:50 +02:00
tsconfig.json Initial commit: project structure and header component 2026-05-12 19:09:50 +02:00
tsconfig.node.json Initial commit: project structure and header component 2026-05-12 19:09:50 +02:00
vite.config.ts Add Umami analytics tag to <head> on production builds 2026-06-24 17:00:42 +02:00

humanAI — landing page

React + Vite static site, served by nginx in the humanai-landing Docker container, behind Nginx Proxy Manager on the nginxproxymanager_default network.

Development

npm install
npm run dev

Deploy

./deploy.sh

The script builds images locally, pushes them to piha.local via the piha Docker context, and runs smoke tests against the mailer endpoint.

Mailer

The mailer/ directory contains a standalone Express microservice that handles the contact form. It runs as humanai-mailer on the same Docker network as NPM so it can be proxied without exposing any port to the host.

Manual steps required before first deploy

(a) Create a Fastmail app-password and write credentials to mailer.env on the deploy machine:

# mailer.env  (never commit this file)
SMTP_USER=youruser@fastmail.com
SMTP_PASS=your-app-password

(b) In Nginx Proxy Manager → Proxy Host for gethumanai.pl → Custom Locations:

Field Value
location /api
scheme http
forward hostname humanai-mailer
port 3000