Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: CI

on:
pull_request:
workflow_dispatch:

permissions:
contents: read

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 22

- name: Install dependencies
run: npm ci

- name: Build Astro site
run: npm run build

- name: Install Playwright browsers
run: npx playwright install --with-deps chromium

- name: Run smoke tests
run: npm test
6 changes: 6 additions & 0 deletions .github/workflows/deploy-website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ jobs:
- name: Build Astro site
run: npm run build

- name: Install Playwright browsers
run: npx playwright install --with-deps chromium

- name: Run smoke tests
run: npm test

- name: Setup Pages
uses: actions/configure-pages@v5

Expand Down
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,9 @@ pnpm-debug.log*

# jetbrains setting folder
.idea/

# Playwright
test-results/
playwright-report/
blob-report/
playwright/.cache/
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Klarwert Website

Statische Marketing-/Download-Website für [Klarwert](https://github.com/AnselmJo/Klarwert) – gebaut mit [Astro](https://astro.build) + Tailwind CSS, deployt automatisch nach GitHub Pages.
Statische Marketing-/Download-Website für [Klarwert](https://github.com/Klarwert/Klarwert) – gebaut mit [Astro](https://astro.build) + Tailwind CSS, deployt automatisch nach GitHub Pages.

## Entwicklung

Expand All @@ -13,10 +13,11 @@ npm run preview # Build lokal ansehen

## Struktur

- `src/pages/` – die vier Seiten (Startseite + Windows/macOS/Linux)
- `src/layouts/Layout.astro` – gemeinsames HTML-Grundgerüst inkl. Footer
- `src/pages/` – Startseite, `/download` (vollständige Windows/macOS/Linux-Inhalte), `/datenschutz`, sowie `/windows` `/macos` `/linux` als schlanke Redirects auf die jeweilige `/download`-Sektion
- `src/layouts/Layout.astro` – gemeinsames HTML-Grundgerüst inkl. Header/Footer
- `src/components/` – Footer, Download-Buttons (mit clientseitiger OS-Erkennung)
- `src/lib/repo.ts` – zentrale Repo-Referenzen (Releases-/Issue-Links)
- `src/lib/repo.ts` – zentrale Repo-Referenzen (Releases-/Issue-Links) – **einzige Stelle**, an der die GitHub-Org/Repo-Referenz steht, nirgends hardcoden
- `tests/` – Playwright-Smoke-Tests (`npm test`)

## Deployment

Expand Down
66 changes: 66 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"dev": "astro dev --background",
"build": "astro build",
"preview": "astro preview",
"astro": "astro"
"astro": "astro",
"test": "playwright test"
},
"dependencies": {
"@fontsource/fraunces": "^5.3.0",
Expand All @@ -19,5 +20,8 @@
"@tailwindcss/vite": "^4.3.3",
"astro": "^7.1.6",
"tailwindcss": "^4.3.3"
},
"devDependencies": {
"@playwright/test": "^1.62.1"
}
}
21 changes: 21 additions & 0 deletions playwright.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { defineConfig, devices } from "@playwright/test";

export default defineConfig({
testDir: "./tests",
fullyParallel: true,
retries: process.env.CI ? 1 : 0,
reporter: process.env.CI ? "list" : "html",
use: {
baseURL: "http://localhost:4321",
trace: "retain-on-failure",
},
webServer: {
command: "npm run preview",
url: "http://localhost:4321",
reuseExistingServer: !process.env.CI,
timeout: 60_000,
},
projects: [
{ name: "chromium", use: { ...devices["Desktop Chrome"] } },
],
});
76 changes: 76 additions & 0 deletions src/components/DataPrivacy.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
<section class="data-privacy reveal">
<div class="section-inner">
<h2>Deine Finanzdaten gehören dir.</h2>
<p class="data-privacy-lead">
Klarwert hat keinen Server, keine Cloud, kein Login.
Deine Bankumsätze werden auf deinem Gerät verarbeitet – und bleiben dort.
</p>

<div class="flow glass-card" role="img" aria-label="Datenfluss: Online-Banking zu CSV/Excel zu Klarwert zu deiner lokalen Datenbank">
<span class="flow-step">Online-Banking</span>
<span class="flow-arrow" aria-hidden="true">→</span>
<span class="flow-step">CSV/Excel</span>
<span class="flow-arrow" aria-hidden="true">→</span>
<span class="flow-step">Klarwert</span>
<span class="flow-arrow" aria-hidden="true">→</span>
<span class="flow-step">deine lokale Datenbank</span>
</div>

<p class="data-privacy-tags">✕ keine Cloud &middot; ✕ kein Login &middot; ✕ kein Tracking</p>
</div>
</section>

<style>
.data-privacy {
padding: 4.5rem 1.5rem;
background: var(--paper);
text-align: center;
}

.section-inner {
max-width: 800px;
margin: 0 auto;
}

.data-privacy h2 {
font-family: var(--font-serif);
font-size: clamp(1.5rem, 2.6vw, 2rem);
color: var(--petrol);
margin-bottom: 0.75rem;
}

.data-privacy-lead {
font-size: 1rem;
color: var(--slate);
line-height: 1.65;
max-width: 48ch;
margin: 0 auto 2rem;
}

.flow {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
gap: 0.5rem 0.75rem;
padding: 1.25rem 1.5rem;
margin: 0 auto;
}

.flow-step {
font-family: var(--font-mono);
font-size: 0.875rem;
color: var(--charcoal);
white-space: nowrap;
}

.flow-arrow {
color: var(--slate);
}

.data-privacy-tags {
margin-top: 1.5rem;
font-size: 0.8125rem;
color: var(--slate);
}
</style>
8 changes: 4 additions & 4 deletions src/components/DownloadButtons.astro
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
---
---
<div id="download" class="dl-buttons-row">
<a href="/windows" class="dl-btn dl-btn--primary">
<div class="dl-buttons-row">
<a href="/download#windows" class="dl-btn dl-btn--primary">
<!-- Lucide: windows -->
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="3" width="7" height="7"></rect><rect x="14" y="3" width="7" height="7"></rect><rect x="14" y="14" width="7" height="7"></rect><rect x="3" y="14" width="7" height="7"></rect></svg>
Windows
</a>
<a href="/macos" class="dl-btn dl-btn--primary">
<a href="/download#macos" class="dl-btn dl-btn--primary">
<!-- Lucide: apple (simplified/generic stand-in or just text since Lucide doesn't have a perfect Apple logo, but we'll use a standard path) -->
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 20.94c1.5 0 2.75 1.06 4 1.06 3 0 6-8 6-12.22A4.91 4.91 0 0 0 17 5c-2.22 0-4 1.44-5 2-1-.56-2.78-2-5-2a4.9 4.9 0 0 0-5 4.78C2 14 5 22 8 22c1.25 0 2.5-1.06 4-1.06Z"></path><path d="M10 2c1 .5 2 2 2 3"></path></svg>
macOS
</a>
<a href="/linux" class="dl-btn dl-btn--primary">
<a href="/download#linux" class="dl-btn dl-btn--primary">
<!-- Lucide: terminal (as a generic linux icon if tux is not natively in lucide) -->
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="4 17 10 11 4 5"></polyline><line x1="12" y1="19" x2="20" y2="19"></line></svg>
Linux
Expand Down
20 changes: 12 additions & 8 deletions src/components/FAQ.astro
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,24 @@ const faqs = [
a: "Ja, vollständig und für immer. Kein Abo, keine Pro-Version, keine versteckten Kosten. Klarwert ist Open Source und bleibt es.",
},
{
q: "Wo werden meine Daten gespeichert?",
a: "Ausschließlich auf deinem Gerät, in einer lokalen Datenbank. Klarwert hat keine Cloud, keinen Server und kein Login.",
q: "Warum verbindet sich Klarwert nicht direkt mit meiner Bank?",
a: "Bewusste Entscheidung: der Export dauert bei den meisten Banken nur wenige Klicks. Dafür gibst du niemals deine Bankzugangsdaten weiter, und deine Daten landen auf keinem fremden Server.",
},
{
q: "Verbindet sich Klarwert mit meiner Bank?",
a: "Nein, bewusst nicht. Du exportierst deine Umsätze als CSV oder Excel aus deinem Online-Banking und importierst sie manuell – so bleibt die Kontrolle bei dir, ohne dass du Bankzugangsdaten irgendwo hinterlegst.",
q: "Muss ich meine Umsätze jedes Mal komplett neu importieren?",
a: "Nein – Klarwert erkennt bereits importierte Buchungen automatisch und überspringt sie. Du kannst dieselbe Exportdatei jederzeit erneut importieren, ohne Duplikate zu erzeugen.",
},
{
q: "Für welche Betriebssysteme gibt es Klarwert?",
a: "Windows, macOS und Linux.",
q: "Was passiert mit meinen Daten, wenn ich Klarwert lösche?",
a: "Nichts weiter – deine Daten liegen in einer einzelnen Datei auf deinem Gerät. Löschst du die App, bleibt diese Datei, bis du sie selbst löschst oder vorher exportierst.",
},
{
q: "Was passiert, wenn Klarwert irgendwann nicht mehr weiterentwickelt wird?",
a: "Klarwert bleibt funktionsfähig, weil alles lokal auf deinem Gerät läuft, unabhängig von uns. Und weil der Code offen ist, kann jeder – auch du – die Entwicklung fortführen.",
},
{
q: "Ist der Code einsehbar?",
a: "Ja, vollständig. Klarwert ist Open Source – du kannst jede Zeile Code auf GitHub nachlesen.",
q: "Für welche Betriebssysteme gibt es Klarwert?",
a: "Windows, macOS und Linux.",
},
{
q: "Unterstützt Klarwert andere Sprachen als Deutsch?",
Expand Down
11 changes: 0 additions & 11 deletions src/components/FeatureCard.astro

This file was deleted.

Loading
Loading