Svelte web app init.

This commit is contained in:
2026-10-19 16:31:57 +02:00
parent a967b388b7
commit 6c45bd86f4
25 changed files with 3190 additions and 4 deletions
-3
View File
@@ -1,3 +0,0 @@
/.vscode
.env
.DS_Store
+8
View File
@@ -0,0 +1,8 @@
{
"recommendations": [
"svelte.svelte-vscode",
"esbenp.prettier-vscode",
"dbaeumer.vscode-eslint",
"bradlc.vscode-tailwindcss"
]
}
+6
View File
@@ -0,0 +1,6 @@
{
"editor.formatOnSave": true,
"files.associations": {
"*.css": "tailwindcss"
}
}
+8 -1
View File
@@ -1 +1,8 @@
/target
# Output
/target
# OS
.DS_Store
# Env
.env
+26
View File
@@ -0,0 +1,26 @@
node_modules
# Output
.output
.vercel
.netlify
.wrangler
/.svelte-kit
/build
# OS
.DS_Store
Thumbs.db
# Env
.env
.env.*
!.env.example
!.env.test
# Vite
vite.config.js.timestamp-*
vite.config.ts.timestamp-*
# Playwright
test-results
+1
View File
@@ -0,0 +1 @@
engine-strict=true
+9
View File
@@ -0,0 +1,9 @@
# Package Managers
package-lock.json
pnpm-lock.yaml
yarn.lock
bun.lock
bun.lockb
# Miscellaneous
/static/
+56
View File
@@ -0,0 +1,56 @@
# sv
Everything you need to build a Svelte project, powered by [`sv`](https://github.com/sveltejs/cli).
## Creating a project
If you're seeing this, you've probably already done this step. Congrats!
```sh
# create a new project
npx sv create my-app
```
To recreate this project with the same configuration:
```sh
# recreate this project
pnpm dlx sv@1.1.1 create --template minimal --types ts --add prettier eslint vitest="usages:unit,component" playwright="demo:no" tailwindcss="plugins:typography,forms" --install pnpm web
```
## Adding features
Add features to your project with `sv add`:
```sh
npx sv add
```
For example, to add Tailwind CSS:
```sh
npx sv add tailwindcss
```
## Developing
Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:
```sh
npm run dev
# or start the server and open the app in a new browser tab
npm run dev -- --open
```
## Building
To create a production version of your app:
```sh
npm run build
```
You can preview the production build with `npm run preview`.
> To deploy your app, you may need to install an [adapter](https://svelte.dev/docs/kit/adapters) for your target environment.
+41
View File
@@ -0,0 +1,41 @@
import prettier from 'eslint-config-prettier';
import path from 'node:path';
import js from '@eslint/js';
import svelte from 'eslint-plugin-svelte';
import { defineConfig, includeIgnoreFile } from 'eslint/config';
import globals from 'globals';
import ts from 'typescript-eslint';
const gitignorePath = path.resolve(import.meta.dirname, '.gitignore');
export default defineConfig(
includeIgnoreFile(gitignorePath),
js.configs.recommended,
ts.configs.recommended,
svelte.configs.recommended,
prettier,
svelte.configs.prettier,
{
languageOptions: { globals: { ...globals.browser, ...globals.node } },
rules: {
// typescript-eslint strongly recommend that you do not use the no-undef lint rule on TypeScript projects.
// see: https://typescript-eslint.io/troubleshooting/faqs/eslint/#i-get-errors-from-the-no-undef-rule-about-global-variables-not-being-defined-even-though-there-are-no-typescript-errors
'no-undef': 'off'
}
},
{
files: ['**/*.svelte', '**/*.svelte.ts', '**/*.svelte.js'],
languageOptions: {
parserOptions: {
projectService: true,
extraFileExtensions: ['.svelte'],
parser: ts.parser
}
}
},
{
// Override or add rule settings here, such as:
// 'svelte/button-has-type': 'error'
rules: {}
}
);
+51
View File
@@ -0,0 +1,51 @@
{
"name": "web",
"private": true,
"version": "0.0.1",
"type": "module",
"scripts": {
"dev": "vite dev",
"build": "vite build",
"preview": "vite preview",
"prepare": "svelte-kit sync || echo ''",
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
"lint": "prettier --check . && eslint .",
"format": "prettier --write .",
"test:unit": "vitest",
"test": "npm run test:unit -- --run && npm run test:e2e",
"test:e2e": "playwright install && playwright test"
},
"devDependencies": {
"@eslint/js": "^10.0.1",
"@playwright/test": "^1.60.0",
"@sveltejs/adapter-auto": "^8.0.0",
"@sveltejs/kit": "^3.0.0",
"@sveltejs/vite-plugin-svelte": "^7.2.0",
"@tailwindcss/forms": "^0.5.11",
"@tailwindcss/typography": "^0.5.19",
"@tailwindcss/vite": "^4.3.0",
"@types/node": "^24",
"@vitest/browser-playwright": "^4.1.8",
"eslint": "^10.4.1",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-svelte": "^3.19.0",
"globals": "^17.6.0",
"playwright": "^1.60.0",
"prettier": "^3.8.3",
"prettier-plugin-svelte": "^4.1.0",
"prettier-plugin-tailwindcss": "^0.8.0",
"svelte": "^5.57.1",
"svelte-check": "^4.6.0",
"tailwindcss": "^4.3.0",
"typescript": "^6.0.3",
"typescript-eslint": "^8.60.1",
"vite": "^8.3.0",
"vitest": "^4.1.8",
"vitest-browser-svelte": "^2.1.1"
},
"imports": {
"#lib": "./src/lib/index.js",
"#lib/*": "./src/lib/*"
}
}
+6
View File
@@ -0,0 +1,6 @@
import { defineConfig } from '@playwright/test';
export default defineConfig({
webServer: { command: 'npm run build && npm run preview', port: 4173 },
testMatch: '**/*.e2e.{ts,js}'
});
+2610
View File
File diff suppressed because it is too large Load Diff
+2
View File
@@ -0,0 +1,2 @@
allowBuilds:
esbuild: true
+12
View File
@@ -0,0 +1,12 @@
/** @type {import("prettier").Config} */
const config = {
useTabs: true,
singleQuote: true,
trailingComma: 'none',
printWidth: 100,
plugins: ['prettier-plugin-svelte', 'prettier-plugin-tailwindcss'],
overrides: [{ files: '*.svelte', options: { parser: 'svelte' } }],
tailwindStylesheet: './src/routes/layout.css'
};
export default config;
+13
View File
@@ -0,0 +1,13 @@
// See https://svelte.dev/docs/kit/types#app.d.ts
// for information about these interfaces
declare global {
namespace App {
// interface Error {}
// interface Locals {}
// interface PageData {}
// interface PageState {}
// interface Platform {}
}
}
export {};
+12
View File
@@ -0,0 +1,12 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="text-scale" content="scale" />
%sveltekit.head%
</head>
<body data-sveltekit-preload-data="hover">
<div style="display: contents">%sveltekit.body%</div>
</body>
</html>
+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="107" height="128" viewBox="0 0 107 128"><title>svelte-logo</title><path d="M94.157 22.819c-10.4-14.885-30.94-19.297-45.792-9.835L22.282 29.608A29.92 29.92 0 0 0 8.764 49.65a31.5 31.5 0 0 0 3.108 20.231 30 30 0 0 0-4.477 11.183 31.9 31.9 0 0 0 5.448 24.116c10.402 14.887 30.942 19.297 45.791 9.835l26.083-16.624A29.92 29.92 0 0 0 98.235 78.35a31.53 31.53 0 0 0-3.105-20.232 30 30 0 0 0 4.474-11.182 31.88 31.88 0 0 0-5.447-24.116" style="fill:#ff3e00"/><path d="M45.817 106.582a20.72 20.72 0 0 1-22.237-8.243 19.17 19.17 0 0 1-3.277-14.503 18 18 0 0 1 .624-2.435l.49-1.498 1.337.981a33.6 33.6 0 0 0 10.203 5.098l.97.294-.09.968a5.85 5.85 0 0 0 1.052 3.878 6.24 6.24 0 0 0 6.695 2.485 5.8 5.8 0 0 0 1.603-.704L69.27 76.28a5.43 5.43 0 0 0 2.45-3.631 5.8 5.8 0 0 0-.987-4.371 6.24 6.24 0 0 0-6.698-2.487 5.7 5.7 0 0 0-1.6.704l-9.953 6.345a19 19 0 0 1-5.296 2.326 20.72 20.72 0 0 1-22.237-8.243 19.17 19.17 0 0 1-3.277-14.502 17.99 17.99 0 0 1 8.13-12.052l26.081-16.623a19 19 0 0 1 5.3-2.329 20.72 20.72 0 0 1 22.237 8.243 19.17 19.17 0 0 1 3.277 14.503 18 18 0 0 1-.624 2.435l-.49 1.498-1.337-.98a33.6 33.6 0 0 0-10.203-5.1l-.97-.294.09-.968a5.86 5.86 0 0 0-1.052-3.878 6.24 6.24 0 0 0-6.696-2.485 5.8 5.8 0 0 0-1.602.704L37.73 51.72a5.42 5.42 0 0 0-2.449 3.63 5.79 5.79 0 0 0 .986 4.372 6.24 6.24 0 0 0 6.698 2.486 5.8 5.8 0 0 0 1.602-.704l9.952-6.342a19 19 0 0 1 5.295-2.328 20.72 20.72 0 0 1 22.237 8.242 19.17 19.17 0 0 1 3.277 14.503 18 18 0 0 1-8.13 12.053l-26.081 16.622a19 19 0 0 1-5.3 2.328" style="fill:#fff"/></svg>

After

Width:  |  Height:  |  Size: 1.5 KiB

View File
+13
View File
@@ -0,0 +1,13 @@
<script lang="ts">
import './layout.css';
import favicon from '#lib/assets/favicon.svg';
import type { LayoutProps } from './$types';
let { children }: LayoutProps = $props();
</script>
<svelte:head>
<link rel="icon" href={favicon} />
</svelte:head>
{@render children()}
+2
View File
@@ -0,0 +1,2 @@
<h1>Welcome to SvelteKit</h1>
<p>Visit <a href="https://svelte.dev/docs/kit">svelte.dev/docs/kit</a> to read the documentation</p>
+3
View File
@@ -0,0 +1,3 @@
@import 'tailwindcss';
@plugin '@tailwindcss/forms';
@plugin '@tailwindcss/typography';
+249
View File
@@ -0,0 +1,249 @@
<svg xmlns="http://www.w3.org/2000/svg" width="1520" height="2300" viewBox="0 0 1520 2300" role="img" aria-labelledby="title description">
<title id="title">Bookkeeping component collection</title>
<desc id="description">A monochrome component mockup based on the existing components page: near-black surfaces, fine gray borders, white text, italic links, and small rounded corners. Includes typography, buttons, form states, transaction lists, invoices, cash flow and expense charts, notifications, and an invoice summary. All financial values are illustrative.</desc>
<defs>
<style>
text { font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; fill: #f5f5f5; letter-spacing: 0; }
.title { font-size: 32px; font-weight: 400; }
.heading { font-size: 24px; font-weight: 400; }
.subheading { font-size: 20px; fill: #e5e5e5; }
.small { font-size: 14px; }
.tiny { font-size: 12px; }
.muted { fill: #a3a3a3; }
.quiet { fill: #737373; }
.link { fill: #a3a3a3; font-style: italic; }
.number { font-variant-numeric: tabular-nums; }
.surface { fill: #0a0a0a; stroke: #525252; stroke-width: 1; }
.line { fill: none; stroke: #404040; stroke-width: 1; }
.icon { fill: none; stroke: #a3a3a3; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.bright { stroke: #f5f5f5; }
.dark-text { fill: #0a0a0a; }
</style>
<symbol id="plus" viewBox="0 0 24 24"><path d="M12 5v14M5 12h14"/></symbol>
<symbol id="search" viewBox="0 0 24 24"><circle cx="10.5" cy="10.5" r="6.5"/><path d="m16 16 4 4"/></symbol>
<symbol id="chevron" viewBox="0 0 24 24"><path d="m8 10 4 4 4-4"/></symbol>
<symbol id="return" viewBox="0 0 24 24"><path d="M8 7h8a5 5 0 0 1 0 10H5m4-4-4 4 4 4"/></symbol>
<symbol id="check" viewBox="0 0 24 24"><path d="m5 12 4 4L19 6"/></symbol>
<symbol id="close" viewBox="0 0 24 24"><path d="m6 6 12 12M6 18 18 6"/></symbol>
<symbol id="download" viewBox="0 0 24 24"><path d="M12 3v12m-4-4 4 4 4-4M5 17v4h14v-4"/></symbol>
<symbol id="calendar" viewBox="0 0 24 24"><rect x="4" y="5" width="16" height="16" rx="2"/><path d="M8 3v4m8-4v4M4 11h16"/></symbol>
<symbol id="arrow" viewBox="0 0 24 24"><path d="M5 12h14m-5-5 5 5-5 5"/></symbol>
<symbol id="more" viewBox="0 0 24 24"><circle cx="5" cy="12" r="1"/><circle cx="12" cy="12" r="1"/><circle cx="19" cy="12" r="1"/></symbol>
<symbol id="document" viewBox="0 0 24 24"><path d="M14 3H5v18h14V8Zm0 0v5h5M8 12h8m-8 4h6"/></symbol>
<symbol id="mail" viewBox="0 0 24 24"><rect x="3" y="5" width="18" height="14" rx="2"/><path d="m4 6 8 6 8-6"/></symbol>
</defs>
<rect width="1520" height="2300" fill="#0a0a0a"/>
<text x="64" y="78" class="title">Bookkeeping / components</text>
<text x="64" y="111" class="muted">Everyday finances, in a quieter interface.</text>
<text x="1456" y="77" text-anchor="end" class="small muted">Component study / 01</text>
<text x="1456" y="109" text-anchor="end" class="small link">Based on /components</text>
<path d="M64 141H1456" class="line"/>
<g id="typography" aria-label="Typography and links">
<text x="64" y="184" class="small muted">01 / Typography &amp; links</text>
<text x="64" y="235" class="title">Your books, at a glance</text>
<text x="64" y="276" class="heading">A clear view of the month</text>
<text x="64" y="312" class="subheading">Income and expenses</text>
<text x="64" y="345" class="muted">Account details</text>
<text x="64" y="389">Keep a record of what comes in and what goes out.</text>
<text x="64" y="417">Your latest transactions are ready to review.</text>
<text x="64" y="454" class="link">View all transactions</text>
<use href="#arrow" x="228" y="438" width="20" height="20" class="icon"/>
<text x="64" y="488" class="small quiet">Last reconciled 19 October 2026, 09:41</text>
</g>
<g id="buttons" aria-label="Buttons, selection controls, and navigation states">
<text x="776" y="184" class="small muted">02 / Actions &amp; selection</text>
<rect x="776" y="210" width="174" height="46" rx="4" fill="#f5f5f5"/>
<use href="#plus" x="791" y="223" width="20" height="20" class="icon" style="stroke:#0a0a0a"/>
<text x="823" y="239" class="dark-text">New invoice</text>
<rect x="966" y="210" width="144" height="46" rx="4" class="surface"/>
<use href="#download" x="981" y="223" width="20" height="20" class="icon"/>
<text x="1013" y="239" font-style="italic">Export</text>
<rect x="1126" y="210" width="118" height="46" rx="4" fill="none" stroke="#262626"/>
<text x="1185" y="239" text-anchor="middle" fill="#737373" style="fill:#737373">Disabled</text>
<rect x="1260" y="210" width="46" height="46" rx="4" class="surface"/>
<use href="#more" x="1271" y="221" width="24" height="24" class="icon"/>
<text x="776" y="292" class="small quiet">Primary</text>
<text x="966" y="292" class="small quiet">Secondary</text>
<text x="1126" y="292" class="small quiet">Disabled</text>
<text x="1260" y="292" class="small quiet">Icon</text>
<rect x="776" y="322" width="20" height="20" rx="3" fill="#f5f5f5"/>
<use href="#check" x="777" y="323" width="18" height="18" class="icon" style="stroke:#0a0a0a"/>
<text x="808" y="338">Reconciled</text>
<rect x="950" y="322" width="20" height="20" rx="3" class="surface"/>
<text x="982" y="338" class="muted">Select all</text>
<rect x="1134" y="322" width="40" height="22" rx="11" fill="#e5e5e5"/>
<circle cx="1163" cy="333" r="8" fill="#0a0a0a"/>
<text x="1186" y="338">Auto-match</text>
<path d="M776 414H1456" class="line"/>
<text x="792" y="397">Overview</text>
<text x="923" y="397" class="muted">Transactions</text>
<text x="1082" y="397" class="muted">Reports</text>
<path d="M776 414h109" stroke="#f5f5f5" stroke-width="2"/>
<rect x="776" y="446" width="280" height="42" rx="4" class="surface"/>
<rect x="780" y="450" width="83" height="34" rx="2" fill="#262626"/>
<text x="822" y="472" text-anchor="middle" class="small">Month</text>
<text x="914" y="472" text-anchor="middle" class="small muted">Quarter</text>
<text x="1007" y="472" text-anchor="middle" class="small muted">Year</text>
</g>
<g id="forms" aria-label="Form fields with default, focus, and error states">
<text x="64" y="559" class="small muted">03 / Inputs &amp; form states</text>
<text x="64" y="599" class="small muted">Search</text>
<rect x="64" y="613" width="680" height="48" rx="4" class="surface"/>
<use href="#search" x="80" y="627" width="20" height="20" class="icon"/>
<text x="112" y="643" class="link">Search transactions...</text>
<text x="64" y="695" class="small muted">Email address / focused</text>
<rect x="64" y="709" width="680" height="48" rx="4" fill="none" stroke="#a3a3a3"/>
<use href="#mail" x="80" y="723" width="20" height="20" class="icon"/>
<text x="112" y="739">accounts@studio.com</text>
<path d="M282 724v19" stroke="#f5f5f5"/>
<use href="#return" x="705" y="721" width="24" height="24" class="icon"/>
<text x="64" y="791" class="small muted">Category</text>
<rect x="64" y="805" width="324" height="48" rx="4" class="surface"/>
<text x="80" y="835">Office expenses</text>
<use href="#chevron" x="350" y="819" width="20" height="20" class="icon"/>
<text x="420" y="791" class="small muted">Invoice date</text>
<rect x="420" y="805" width="324" height="48" rx="4" class="surface"/>
<use href="#calendar" x="436" y="819" width="20" height="20" class="icon"/>
<text x="468" y="835" class="number">19 / 10 / 2026</text>
<text x="64" y="887" class="small muted">Amount / invalid</text>
<rect x="64" y="901" width="324" height="48" rx="4" fill="none" stroke="#d4d4d4" stroke-dasharray="4 3"/>
<text x="80" y="931" class="muted">EUR</text>
<text x="372" y="931" text-anchor="end" class="number">-25.00</text>
<text x="420" y="930" class="small muted">Enter an amount greater than zero.</text>
</g>
<g id="transactions" aria-label="Transaction list with inline add action">
<text x="776" y="559" class="small muted">04 / Transaction list</text>
<rect x="776" y="583" width="680" height="366" rx="4" class="surface"/>
<text x="796" y="619">Recent activity</text>
<text x="1436" y="619" text-anchor="end" class="small link">View all</text>
<path d="M792 640H1440M792 706H1440M792 772H1440M792 838H1440M792 904H1440" class="line"/>
<text x="796" y="668">Studio North</text>
<text x="796" y="691" class="small muted">Invoice payment / Today</text>
<text x="1436" y="675" text-anchor="end" class="number">+ EUR 2,400.00</text>
<text x="796" y="734">Figma</text>
<text x="796" y="757" class="small muted">Software / Today</text>
<text x="1436" y="741" text-anchor="end" class="number">- EUR 15.00</text>
<text x="796" y="800">Workspace rent</text>
<text x="796" y="823" class="small muted">Office / 18 October</text>
<text x="1436" y="807" text-anchor="end" class="number">- EUR 850.00</text>
<text x="796" y="866">Bank transfer</text>
<text x="796" y="889" class="small muted">Savings / 17 October</text>
<text x="1436" y="873" text-anchor="end" class="number">- EUR 500.00</text>
<text x="796" y="933" class="link">Add a transaction...</text>
<use href="#return" x="1412" y="914" width="24" height="24" class="icon"/>
</g>
<g id="invoice-table" aria-label="Invoice table with selection, status, totals, and pagination">
<text x="64" y="1015" class="small muted">05 / Invoice table</text>
<text x="64" y="1060" class="heading">Invoices</text>
<text x="179" y="1059" class="small muted">6 records</text>
<text x="1262" y="1059" class="small link">All statuses</text>
<use href="#chevron" x="1347" y="1044" width="20" height="20" class="icon"/>
<use href="#download" x="1428" y="1041" width="24" height="24" class="icon"/>
<rect x="64" y="1082" width="1392" height="368" rx="4" class="surface"/>
<path d="M80 1130H1440M80 1174H1440M80 1218H1440M80 1262H1440M80 1306H1440M80 1350H1440M80 1394H1440" class="line"/>
<rect x="88" y="1097" width="16" height="16" rx="2" class="surface"/>
<text x="128" y="1111" class="small muted">Invoice</text>
<text x="320" y="1111" class="small muted">Client</text>
<text x="670" y="1111" class="small muted">Due date</text>
<text x="900" y="1111" class="small muted">Status</text>
<text x="1340" y="1111" text-anchor="end" class="small muted">Amount / EUR</text>
<rect x="88" y="1144" width="16" height="16" rx="2" class="surface"/>
<text x="128" y="1158" class="link">INV-2026-042</text><text x="320" y="1158">Studio North</text><text x="670" y="1158" class="muted number">28 Oct 2026</text>
<circle cx="906" cy="1153" r="3" fill="#d4d4d4"/><text x="920" y="1158" class="small">Paid</text><text x="1340" y="1158" text-anchor="end" class="number">2,400.00</text>
<use href="#more" x="1408" y="1140" width="24" height="24" class="icon"/>
<rect x="88" y="1188" width="16" height="16" rx="2" class="surface"/>
<text x="128" y="1202" class="link">INV-2026-041</text><text x="320" y="1202">Morrow &amp; Co.</text><text x="670" y="1202" class="muted number">24 Oct 2026</text>
<circle cx="906" cy="1197" r="3" fill="none" stroke="#a3a3a3"/><text x="920" y="1202" class="small muted">Pending</text><text x="1340" y="1202" text-anchor="end" class="number">1,850.00</text>
<use href="#more" x="1408" y="1184" width="24" height="24" class="icon"/>
<rect x="88" y="1232" width="16" height="16" rx="2" class="surface"/>
<text x="128" y="1246" class="link">INV-2026-040</text><text x="320" y="1246">Common Ground</text><text x="670" y="1246" class="muted number">21 Oct 2026</text>
<circle cx="906" cy="1241" r="3" fill="none" stroke="#a3a3a3"/><text x="920" y="1246" class="small muted">Pending</text><text x="1340" y="1246" text-anchor="end" class="number">3,200.00</text>
<use href="#more" x="1408" y="1228" width="24" height="24" class="icon"/>
<rect x="80" y="1263" width="1360" height="42" fill="#171717"/>
<rect x="88" y="1276" width="16" height="16" rx="2" fill="#e5e5e5"/><use href="#check" x="87" y="1275" width="18" height="18" class="icon" style="stroke:#0a0a0a"/>
<text x="128" y="1290" class="link">INV-2026-039</text><text x="320" y="1290">Atelier West</text><text x="670" y="1290" class="number">12 Oct 2026</text>
<path d="M906 1279v5m0 3v1" class="icon bright"/><text x="920" y="1290" class="small">Overdue</text><text x="1340" y="1290" text-anchor="end" class="number">950.00</text>
<use href="#more" x="1408" y="1272" width="24" height="24" class="icon"/>
<rect x="88" y="1320" width="16" height="16" rx="2" class="surface"/>
<text x="128" y="1334" class="link">INV-2026-038</text><text x="320" y="1334">Fieldwork</text><text x="670" y="1334" class="muted number">10 Oct 2026</text>
<circle cx="906" cy="1329" r="3" fill="#d4d4d4"/><text x="920" y="1334" class="small">Paid</text><text x="1340" y="1334" text-anchor="end" class="number">1,600.00</text>
<use href="#more" x="1408" y="1316" width="24" height="24" class="icon"/>
<rect x="88" y="1364" width="16" height="16" rx="2" class="surface"/>
<text x="128" y="1378" class="link">INV-2026-037</text><text x="320" y="1378">Open House</text><text x="670" y="1378" class="muted number">08 Oct 2026</text>
<path d="M902 1373h8" class="icon"/><text x="920" y="1378" class="small muted">Draft</text><text x="1340" y="1378" text-anchor="end" class="number">725.00</text>
<use href="#more" x="1408" y="1360" width="24" height="24" class="icon"/>
<text x="88" y="1428" class="small muted">1 selected</text><text x="216" y="1428" class="small link">Send reminder</text>
<text x="1340" y="1428" text-anchor="end" class="small number">Total EUR 10,725.00</text>
<text x="64" y="1483" class="small muted">Showing 1-6 of 6 invoices</text>
<text x="1293" y="1483" class="small quiet">Previous</text><text x="1380" y="1483" class="small">1</text><text x="1425" y="1483" class="small quiet">Next</text>
</g>
<g id="cash-flow" aria-label="Cash flow chart: income 12480 euros, expenses 4260 euros, net 8220 euros">
<text x="64" y="1544" class="small muted">06 / Cash flow</text>
<text x="64" y="1587" class="heading number">EUR 8,220.00</text>
<text x="64" y="1614" class="small muted">Net cash flow / May-October 2026</text>
<rect x="491" y="1570" width="10" height="10" fill="#d4d4d4"/><text x="509" y="1580" class="small muted">Income</text>
<rect x="608" y="1570" width="10" height="10" fill="#525252"/><text x="626" y="1580" class="small muted">Expenses</text>
<path d="M120 1650H744M120 1710H744M120 1770H744M120 1830H744" class="line"/>
<text x="104" y="1655" text-anchor="end" class="tiny quiet">4k</text><text x="104" y="1715" text-anchor="end" class="tiny quiet">3k</text><text x="104" y="1775" text-anchor="end" class="tiny quiet">2k</text><text x="104" y="1835" text-anchor="end" class="tiny quiet">1k</text>
<path d="M120 1890H744" class="line"/><text x="104" y="1895" text-anchor="end" class="tiny quiet">0</text>
<path d="M158 1890v-72m103 72v-84m103 84v-96m103 96v-108m103 108v-148.8m103 148.8v-240" stroke="#d4d4d4" stroke-width="24"/>
<path d="M188 1890v-24m103 24v-30m103 30v-36m103 36v-42m103 42v-49.2m103 49.2v-74.4" stroke="#525252" stroke-width="24"/>
<text x="173" y="1917" text-anchor="middle" class="small muted">May</text><text x="276" y="1917" text-anchor="middle" class="small muted">Jun</text><text x="379" y="1917" text-anchor="middle" class="small muted">Jul</text><text x="482" y="1917" text-anchor="middle" class="small muted">Aug</text><text x="585" y="1917" text-anchor="middle" class="small muted">Sep</text><text x="688" y="1917" text-anchor="middle" class="small muted">Oct</text>
</g>
<g id="expense-chart" aria-label="Expense breakdown: office 50 percent, software 25 percent, travel 15 percent, other 10 percent">
<text x="776" y="1544" class="small muted">07 / Expense breakdown</text>
<text x="776" y="1587" class="heading">Where it went</text>
<text x="776" y="1614" class="small muted">May-October 2026 / EUR 4,260.00</text>
<g transform="translate(925 1776) rotate(-90)">
<circle r="100" fill="none" stroke="#262626" stroke-width="24"/>
<circle r="100" fill="none" stroke="#e5e5e5" stroke-width="24" stroke-dasharray="310.16 318.16"/>
<circle r="100" fill="none" stroke="#a3a3a3" stroke-width="24" stroke-dasharray="153.08 475.24" stroke-dashoffset="-314.16"/>
<circle r="100" fill="none" stroke="#737373" stroke-width="24" stroke-dasharray="90.25 538.07" stroke-dashoffset="-471.24"/>
<circle r="100" fill="none" stroke="#404040" stroke-width="24" stroke-dasharray="58.83 569.49" stroke-dashoffset="-565.49"/>
</g>
<text x="925" y="1772" text-anchor="middle" class="heading number">4,260</text>
<text x="925" y="1799" text-anchor="middle" class="small muted">EUR / expenses</text>
<rect x="1104" y="1689" width="10" height="10" fill="#e5e5e5"/><text x="1128" y="1700">Office</text><text x="1456" y="1700" text-anchor="end" class="number">2,130.00</text>
<text x="1128" y="1724" class="small muted">50% of expenses</text>
<rect x="1104" y="1747" width="10" height="10" fill="#a3a3a3"/><text x="1128" y="1758">Software</text><text x="1456" y="1758" text-anchor="end" class="number">1,065.00</text>
<text x="1128" y="1782" class="small muted">25% of expenses</text>
<rect x="1104" y="1805" width="10" height="10" fill="#737373"/><text x="1128" y="1816">Travel</text><text x="1456" y="1816" text-anchor="end" class="number">639.00</text>
<text x="1128" y="1840" class="small muted">15% of expenses</text>
<rect x="1104" y="1863" width="10" height="10" fill="#404040"/><text x="1128" y="1874">Other</text><text x="1456" y="1874" text-anchor="end" class="number">426.00</text>
<text x="1128" y="1898" class="small muted">10% of expenses</text>
</g>
<g id="feedback" aria-label="Success notification, overdue notice, and empty state">
<text x="64" y="1985" class="small muted">08 / Feedback &amp; empty states</text>
<rect x="64" y="2009" width="680" height="50" rx="4" class="surface"/>
<use href="#check" x="80" y="2024" width="20" height="20" class="icon"/><text x="112" y="2040">12 transactions reconciled.</text><use href="#close" x="706" y="2024" width="20" height="20" class="icon"/>
<path d="M64 2083h2v48h-2" stroke="#d4d4d4"/>
<text x="82" y="2100">One invoice is overdue.</text><text x="82" y="2125" class="small link">Review invoice INV-2026-039</text>
<use href="#document" x="64" y="2165" width="24" height="24" class="icon"/>
<text x="104" y="2178">No receipts to review</text><text x="104" y="2203" class="small muted">New receipts will appear here.</text>
<text x="744" y="2178" text-anchor="end" class="small link">Upload receipt</text>
</g>
<g id="invoice-summary" aria-label="Invoice summary with subtotal, VAT, total, and send action">
<text x="776" y="1985" class="small muted">09 / Invoice summary</text>
<text x="776" y="2035" class="muted">Subtotal</text><text x="1456" y="2035" text-anchor="end" class="number">EUR 2,000.00</text>
<text x="776" y="2072" class="muted">VAT / 20%</text><text x="1456" y="2072" text-anchor="end" class="number">EUR 400.00</text>
<path d="M776 2093H1456" class="line"/>
<text x="776" y="2130" class="subheading">Total due</text><text x="1456" y="2130" text-anchor="end" class="heading number">EUR 2,400.00</text>
<text x="776" y="2190" class="small link">Save as draft</text>
<rect x="1280" y="2162" width="176" height="46" rx="4" class="surface"/>
<use href="#mail" x="1296" y="2175" width="20" height="20" class="icon"/><text x="1328" y="2191" font-style="italic">Send invoice</text>
</g>
<path d="M64 2241H1456" class="line"/>
<text x="64" y="2275" class="tiny quiet">NEUTRAL / #0A0A0A / #404040 / #525252 / #A3A3A3 / #F5F5F5</text>
<text x="1456" y="2275" text-anchor="end" class="tiny quiet">Illustrative data / Static component mockup</text>
</svg>

After

Width:  |  Height:  |  Size: 20 KiB

+3
View File
@@ -0,0 +1,3 @@
# allow crawling everything by default
User-agent: *
Disallow:
+8
View File
@@ -0,0 +1,8 @@
{
"extends": "$app/tsconfig",
"compilerOptions": {
"strict": true,
"types": ["$app/types", "node"]
},
"include": ["src", "vite.config.ts", "playwright.config.ts"]
}
+50
View File
@@ -0,0 +1,50 @@
import tailwindcss from '@tailwindcss/vite';
import { defineConfig } from 'vitest/config';
import { playwright } from '@vitest/browser-playwright';
import adapter from '@sveltejs/adapter-auto';
import { sveltekit } from '@sveltejs/kit/vite';
export default defineConfig({
plugins: [
tailwindcss(),
sveltekit({
compilerOptions: {
// Force runes mode for the project, except for libraries. Can be removed in svelte 6.
runes: ({ filename }) =>
filename.split(/[/\\]/).includes('node_modules') ? undefined : true
},
// adapter-auto only supports some environments, see https://svelte.dev/docs/kit/adapter-auto for a list.
// If your environment is not supported, or you settled on a specific environment, switch out the adapter.
// See https://svelte.dev/docs/kit/adapters for more information about adapters.
adapter: adapter()
})
],
test: {
expect: { requireAssertions: true },
projects: [
{
extends: './vite.config.ts',
test: {
name: 'client',
browser: {
enabled: true,
provider: playwright(),
instances: [{ browser: 'chromium', headless: true }]
},
include: ['src/**/*.svelte.{test,spec}.{js,ts}'],
exclude: ['src/lib/server/**']
}
},
{
extends: './vite.config.ts',
test: {
name: 'server',
environment: 'node',
include: ['src/**/*.{test,spec}.{js,ts}'],
exclude: ['src/**/*.svelte.{test,spec}.{js,ts}']
}
}
]
}
});