Files
valtrix-website/README.md
Clemens Hering 5d31973be3 Added english
2025-11-03 07:43:47 +01:00

52 lines
1.5 KiB
Markdown
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Valtrix Corporate Website (Astro + Tailwind) v4
- Dark Hero standard, Case Studies integriert
- Logo: `public/logo-valtrix.png`
## Quickstart
```bash
npm ci
npm run dev
npm run build
```
## Container (Podman)
Container bauen und starten:
```bash
# Image bauen (nutzt Containerfile im Repo)
podman build -t valtrix-site .
# Container starten (localhost:8080 → Container:3000)
podman run --rm -p 8080:3000 valtrix-site
```
Optional: als Pod via `podman play kube` (setzt lokales Image `localhost/valtrix-site:latest` voraus):
```bash
# Taggen für den lokalen Registry-Namespace
podman tag valtrix-site localhost/valtrix-site:latest
# Pod aus YAML starten
podman play kube deploy/podman-kube.yaml
```
Hinweise:
- Das Image ist zweistufig: Build in Node 22 Alpine, Runtime in NGINX Alpine.
- Die Seite ist rein statisch (Astro output: static) und benötigt keinen ServerSideCode.
## Lokalisierung (DE/EN)
- Standard-Sprache ist Deutsch unter `/`.
- Englische Inhalte liegen unter `/en` (z.B. `/leistungen``/en/leistungen`).
- Die Navigationsleiste und der Footer passen sich automatisch an die Sprache an.
- Ein Sprachschalter (EN/DE) in der Kopfzeile verlinkt auf die jeweils entsprechende Route.
- HreflangAlternates (`de`, `en`) werden pro Seite ausgegeben.
Neue Seite hinzufügen:
- Deutsch: `src/pages/<slug>.astro`
- Englisch: `src/pages/en/<slug>.astro`
Hinweis: Slugs sind aktuell in beiden Sprachen identisch (deutsche Slugs unter `/en/...`). Für vollständig lokalisierte Slugs kann optional ein Mapping ergänzt werden.