feat(ui): unified AppHeader, logo brand, tagline update, and header simplification
- Brand component now renders horizontal SVG logo instead of text - New AppHeader shared component replaces per-route header boilerplate - Tagline updated to "Outils pour ostéopathes animaliers" - All routes use AppHeader (HomeRoute, EditorsRoute, NewReportRoute, SvgEditorRoute) - ReportHeader and Footer simplified - DEPLOY.md URLs updated zoosteo.fr → faunosteo.com - Logo assets added (favicon.svg, logo-horizontal.svg, apple-touch-icon.png) - Removed unused eslint-disable directive in SvgEditorRoute Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
No files matched your search
@@ -208,3 +208,11 @@ Fix paths:
|
||||
When standalone .html tools (no build step) need logic from TS modules (zoneMatch, ID generation), port algorithm inline as vanilla JS. Cannot import .ts files. Keep algorithms identical to source for consistency. Document which .ts file was ported so future changes can sync.
|
||||
**Why:** pathology-editor.html ports normalizeLabel/levenshtein/scorePair/matchZone from src/lib/zoneMatch.ts.
|
||||
**How to apply:** if zoneMatch.ts changes, pathology-editor.html matching must be updated manually. Consider a test that compares outputs of both implementations on a shared fixture set.
|
||||
|
||||
---
|
||||
|
||||
## LRN-027 | 2026-05-22 | CSS h-full fails in nested flex — use flex-1
|
||||
|
||||
`height: 100%` (Tailwind `h-full`) resolves to `auto` when parent has `flex-1` but no explicit `height`. Caused 3 failed centering attempts on route containers inside App.tsx flex layout. Fix: use `flex-1` (flex-grow) on child instead — works because parent IS a flex container, no explicit height needed.
|
||||
**Why:** nested flex layout: App wrapper (min-h-screen flex-col) → main (flex-1) → route (h-full broke here) → section (flex-1 grid place-items-center). The section's `place-items-center` needs actual height to center within.
|
||||
**How to apply:** any flex-nested layout where child needs to fill parent — use `flex-1`, not `h-full`, unless parent has explicit `height` or is viewport-sized (`h-screen`).
|
||||
@@ -39,3 +39,4 @@ graphify-out/
|
||||
|
||||
# TypeScript
|
||||
*.tsbuildinfo
|
||||
.gstack/
|
||||
@@ -33,7 +33,7 @@ each one explicitly.
|
||||
| `APP_SITE_NAME` | yes | `Faunosteo` | Browser `<title>`, OG `site_name`. |
|
||||
| `APP_BRAND_NAME` | yes | `Faunosteo` | Header brand block, PDF header. Praticien-visible identity. |
|
||||
| `APP_FOOTER_NAME` | yes | `Faunosteo` | Footer copyright line. |
|
||||
| `APP_TAGLINE` | yes | `Bilans d'ostéopathie animalière` | Hero tagline on Home. |
|
||||
| `APP_TAGLINE` | yes | `Outils pour ostéopathes animaliers` | Hero tagline on Home. |
|
||||
| `PORT` | no | `8080` | Container listen port. Override to relocate the loopback bind. |
|
||||
|
||||
No secrets are required — there is no API, no DB, no provider credential.
|
||||
@@ -59,8 +59,8 @@ DNS:
|
||||
|
||||
```text
|
||||
# A record on your domain registrar / DNS provider
|
||||
zoosteo.fr → <vps-ipv4>
|
||||
zoosteo.fr (AAAA) → <vps-ipv6> # optional
|
||||
faunosteo.com → <vps-ipv4>
|
||||
faunosteo.com (AAAA) → <vps-ipv6> # optional
|
||||
```
|
||||
|
||||
SSH key copied to the VPS before disabling password auth (see Hardening
|
||||
@@ -185,7 +185,7 @@ Verify post-deploy:
|
||||
|
||||
```bash
|
||||
docker compose ps
|
||||
curl -sI https://zoosteo.fr/ | head -3
|
||||
curl -sI https://faunosteo.com/ | head -3
|
||||
```
|
||||
|
||||
For zero-downtime updates, `docker compose up --build -d` rebuilds the
|
||||
@@ -259,7 +259,7 @@ aws s3 sync /var/backups/osteo s3://<bucket>/osteo/ --storage-class STANDARD_IA
|
||||
docker compose down
|
||||
cp /var/backups/osteo/env-<date> /home/<deploy-user>/faunosteo/.env
|
||||
docker compose up --build -d
|
||||
curl -sI https://zoosteo.fr/
|
||||
curl -sI https://faunosteo.com/
|
||||
```
|
||||
|
||||
The praticien's exported PDFs are the real long-term store. If the VPS
|
||||
@@ -280,7 +280,7 @@ VPS:
|
||||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
server_name zoosteo.fr;
|
||||
server_name faunosteo.com;
|
||||
# Certbot will rewrite this block to add the 301 redirect.
|
||||
location /.well-known/acme-challenge/ {
|
||||
root /var/www/letsencrypt;
|
||||
@@ -298,7 +298,7 @@ server {
|
||||
server {
|
||||
listen 443 ssl http2;
|
||||
listen [::]:443 ssl http2;
|
||||
server_name zoosteo.fr;
|
||||
server_name faunosteo.com;
|
||||
|
||||
# ssl_certificate + ssl_certificate_key written by certbot
|
||||
|
||||
@@ -318,7 +318,7 @@ Enable + obtain certificate:
|
||||
```bash
|
||||
ln -s /etc/nginx/sites-available/osteo /etc/nginx/sites-enabled/osteo
|
||||
nginx -t && systemctl reload nginx
|
||||
certbot --nginx -d zoosteo.fr
|
||||
certbot --nginx -d faunosteo.com
|
||||
systemctl status certbot.timer # auto-renew preinstalled on Ubuntu
|
||||
```
|
||||
|
||||
@@ -340,10 +340,10 @@ Reload + verify:
|
||||
|
||||
```bash
|
||||
nginx -t && systemctl reload nginx
|
||||
curl -sI https://zoosteo.fr/ | grep -iE 'strict-transport|x-frame|content-security'
|
||||
curl -sI https://faunosteo.com/ | grep -iE 'strict-transport|x-frame|content-security'
|
||||
# Cross-check externally:
|
||||
# https://securityheaders.com/?q=zoosteo.fr
|
||||
# https://www.ssllabs.com/ssltest/analyze.html?d=zoosteo.fr
|
||||
# https://securityheaders.com/?q=faunosteo.com
|
||||
# https://www.ssllabs.com/ssltest/analyze.html?d=faunosteo.com
|
||||
```
|
||||
|
||||
The `'unsafe-inline'` on `style-src` is needed because Tailwind injects
|
||||
@@ -362,7 +362,7 @@ echo "deb [signed-by=/usr/share/keyrings/caddy-stable-archive-keyring.gpg] https
|
||||
apt-get update && apt-get install -y caddy
|
||||
|
||||
cat > /etc/caddy/Caddyfile <<'EOF'
|
||||
zoosteo.fr {
|
||||
faunosteo.com {
|
||||
encode gzip zstd
|
||||
reverse_proxy 127.0.0.1:8080
|
||||
header {
|
||||
@@ -394,13 +394,13 @@ N/A. There is no build-time API URL var; the app is static.
|
||||
|
||||
```bash
|
||||
# HTTPS redirect on port 80
|
||||
curl -sI http://zoosteo.fr/ | grep -i location # expect Location: https://...
|
||||
curl -sI http://faunosteo.com/ | grep -i location # expect Location: https://...
|
||||
|
||||
# TLS itself
|
||||
curl -sI https://zoosteo.fr/ | head -3 # expect HTTP/2 200
|
||||
curl -sI https://faunosteo.com/ | head -3 # expect HTTP/2 200
|
||||
|
||||
# env.js shipped fresh (no caching)
|
||||
curl -sI https://zoosteo.fr/env.js | grep -i cache-control
|
||||
curl -sI https://faunosteo.com/env.js | grep -i cache-control
|
||||
# expect: Cache-Control: no-store, no-cache, must-revalidate
|
||||
|
||||
# Internal port is NOT publicly bound
|
||||
@@ -439,7 +439,7 @@ Reload + verify on a second terminal *before* closing the first one:
|
||||
|
||||
```bash
|
||||
systemctl reload ssh
|
||||
ssh deploy@zoosteo.fr 'echo ok'
|
||||
ssh deploy@faunosteo.com 'echo ok'
|
||||
```
|
||||
|
||||
### 3. (Optional) Move SSH off port 22
|
||||
@@ -451,7 +451,7 @@ ufw allow 2222/tcp # 1. UFW
|
||||
# 2. Add 2222 to cloud security group
|
||||
# 3. /etc/ssh/sshd_config: Port 2222 (keep Port 22 temporarily)
|
||||
systemctl reload ssh
|
||||
ssh -p 2222 deploy@zoosteo.fr 'echo ok' # confirm
|
||||
ssh -p 2222 deploy@faunosteo.com 'echo ok' # confirm
|
||||
# 4. Remove Port 22 from sshd_config + UFW + cloud SG
|
||||
```
|
||||
|
||||
@@ -484,7 +484,7 @@ nmap -Pn -p 22,80,443,8080,2222 <vps-public-ip>
|
||||
# 2222: open ← if SSH was moved
|
||||
|
||||
# Password-SSH attempt — should fail
|
||||
ssh -o PreferredAuthentications=password -o PubkeyAuthentication=no deploy@zoosteo.fr
|
||||
ssh -o PreferredAuthentications=password -o PubkeyAuthentication=no deploy@faunosteo.com
|
||||
# Expect: Permission denied (publickey).
|
||||
```
|
||||
|
||||
@@ -497,7 +497,7 @@ cd ~/faunosteo
|
||||
git reflog | head -20 # find the known-good SHA
|
||||
git reset --hard <known-good-sha>
|
||||
docker compose up --build -d
|
||||
curl -sI https://zoosteo.fr/ | head -1
|
||||
curl -sI https://faunosteo.com/ | head -1
|
||||
```
|
||||
|
||||
Because there is no server-side state to corrupt, rollback is purely a
|
||||
@@ -510,10 +510,10 @@ already exported are unaffected.
|
||||
|
||||
| URL | Expected |
|
||||
| --------------------------------------- | ----------------------------------------- |
|
||||
| `https://zoosteo.fr/` | HTTP/2 200, HTML containing `<div id="root">` |
|
||||
| `https://zoosteo.fr/env.js` | HTTP/2 200, `Cache-Control: no-store, no-cache, must-revalidate`, body starts with `window.__APP_CONFIG__ = {` |
|
||||
| `https://zoosteo.fr/assets/<hash>.js` | HTTP/2 200, `Cache-Control: public, max-age=31536000, immutable` |
|
||||
| `https://zoosteo.fr/nonexistent` | HTTP/2 200 (SPA fallback serves `index.html`) |
|
||||
| `https://faunosteo.com/` | HTTP/2 200, HTML containing `<div id="root">` |
|
||||
| `https://faunosteo.com/env.js` | HTTP/2 200, `Cache-Control: no-store, no-cache, must-revalidate`, body starts with `window.__APP_CONFIG__ = {` |
|
||||
| `https://faunosteo.com/assets/<hash>.js` | HTTP/2 200, `Cache-Control: public, max-age=31536000, immutable` |
|
||||
| `https://faunosteo.com/nonexistent` | HTTP/2 200 (SPA fallback serves `index.html`) |
|
||||
| `http://127.0.0.1:8080/` (on VPS) | HTTP/1.1 200 |
|
||||
|
||||
There is no `/health` endpoint — the container only serves static assets.
|
||||
|
||||
@@ -12,7 +12,7 @@ window.__APP_CONFIG__ = {
|
||||
siteName: "${APP_SITE_NAME:-Faunosteo}",
|
||||
brandName: "${APP_BRAND_NAME:-Faunosteo}",
|
||||
footerName: "${APP_FOOTER_NAME:-Faunosteo}",
|
||||
tagline: "${APP_TAGLINE:-Bilans d'ostéopathie animalière}"
|
||||
tagline: "${APP_TAGLINE:-Outils pour ostéopathes animaliers}"
|
||||
};
|
||||
EOF
|
||||
|
||||
|
||||
@@ -3,8 +3,9 @@
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta name="description" content="Bilans d'ostéopathie animalière" />
|
||||
<meta name="description" content="Outils pour ostéopathes animaliers" />
|
||||
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
||||
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
|
||||
<title>Faunosteo</title>
|
||||
<!--
|
||||
Runtime config injected by docker/entrypoint.sh at container start.
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 512 512" width="512" height="512"><rect x="0" y="0" width="512" height="512" rx="112.64" fill="#f4f1ea"/><defs><linearGradient id="gFav" gradientUnits="userSpaceOnUse" x1="52.13201904296875" y1="636.4270629882812" x2="387.0840148925781" y2="317.4869689941406"><stop offset="0" stop-color="#4a5938"/><stop offset="0.3" stop-color="#7a8c5a"/><stop offset="0.55" stop-color="#869863"/><stop offset="0.8" stop-color="#b9824f"/><stop offset="1" stop-color="#a8754a"/></linearGradient></defs><g transform="translate(31.8,-231.0) scale(1.0210)"><path fill="url(#gFav)" d="M95.8582 567.17C116.252 575.172 127.044 573.335 147.592 567.074C147.262 568.962 146.923 570.859 146.692 572.762C145.985 578.593 146.935 584.466 150.794 589.06C155.788 595.005 162.582 591.266 169.002 592.003C171.986 592.346 174.796 593.68 176.608 596.129C179.519 600.061 180.747 608.207 179.878 612.996C177.729 624.835 157.49 619.963 148.93 622.161C142.904 623.708 137.928 627.289 132.843 630.707C120.813 638.21 105.11 638.452 93.1622 630.72C87.8398 627.275 82.9517 622.354 76.8349 620.334C72.1409 618.784 66.3464 619.708 61.4725 619.988C58.8981 618.371 56.5211 616.512 54.8437 613.933C51.8337 609.304 51.6201 602.879 52.7965 597.626C53.752 593.36 56.3394 588.106 60.2343 585.804C66.0891 582.343 72.5136 587.568 78.2079 588.957C81.149 589.674 84.2362 589.5 86.8289 587.83C93.0851 583.8 94.4868 573.91 95.8582 567.17Z"/><path d="M88.7686 602.489C93.7989 604.815 95.7096 609.065 102.802 611.444C121.365 617.672 140.8 604.14 143.657 604.971L143.928 605.977C139.696 608.545 134.871 610.516 130.169 612.035C119.299 615.547 106.985 616.498 96.5983 610.919C93.2741 609.133 89.8517 606.2 88.7686 602.489Z"/><path fill="url(#gFav)" d="M112.372 497.821C127.709 509.775 138.004 510.692 156.908 510.57C156.264 514.546 155.423 518.782 156.139 522.8C158.538 536.259 173.488 528.881 181.409 534.611C184.367 536.751 185.74 540.113 186.319 543.613C187.023 547.868 187.477 554.486 184.647 558.006C178.458 565.703 165.124 555.667 157.348 556.974C153.096 557.689 150.743 561.296 148.422 564.549L138.259 568.072C122.93 572.313 110.559 570.629 95.7925 565.118C95.595 562.5 95.4304 559.612 94.6639 557.092C91.3509 546.202 78.082 552.073 69.5061 547.222C66.3813 545.454 64.4735 542.198 63.6089 538.791C62.0086 532.484 63.6923 525.048 67.191 519.651C76.4781 505.325 85.1328 516.695 96.0155 513.965C103.89 511.99 108.565 504.338 112.372 497.821Z"/><path d="M93.7436 533.754C97.2398 534.582 100.589 538.372 103.598 540.409C108.198 543.523 113.827 545.557 119.295 546.415C124.628 547.252 130.056 547.065 135.409 546.522C139.042 546.153 147.485 543.771 150.655 544.665L150.73 545.369C138.715 549.457 123.96 550.486 111.795 546.475C105.335 544.346 96.9132 540.04 93.7436 533.754Z"/><path fill="url(#gFav)" d="M148.738 432.177C151.465 433.784 154.08 436.565 156.646 438.548C166.081 445.842 174.732 449.736 186.52 451.946C185.544 453.155 184.641 454.44 183.774 455.729C180.661 460.354 178.271 467.202 179.539 472.775C181.272 480.391 190.567 478.604 195.761 482.203C198.347 483.995 199.717 486.748 200.22 489.8C201.037 494.757 200.485 501.325 197.45 505.444C190.799 514.47 177.162 500.234 168.071 501.654C163.537 502.363 161.335 505.003 158.781 508.481L149.047 508.97C135.301 508.297 123.85 505.396 113.706 495.715C114.152 492.924 114.653 489.953 113.748 487.198C111.398 480.044 102.593 481.558 97.1565 478.675C94.6132 477.327 92.9208 475.192 92.087 472.445C90.4121 466.926 91.5847 459.404 94.2432 454.382C96.0221 451.022 98.4813 447.852 101.645 445.702C113.197 437.855 121.803 453.754 133.669 449.706C141.263 447.116 145.346 438.805 148.738 432.177Z"/><path d="M117.927 467.885C120.288 468.88 122.533 471.194 124.495 472.832C132.137 479.212 139.216 484.413 149.064 486.832C156.216 488.589 163.876 485.863 170.873 487.264L171.463 488.247C159.915 489.887 149.277 490.045 138.54 484.851C132.169 481.769 120.289 474.688 117.927 467.885Z"/><path fill="url(#gFav)" d="M148.594 380.083C162.51 379.07 161.899 384.958 171.963 388.403C181.147 391.547 192.456 384.206 200.331 380.106C200.738 382.753 201.091 385.471 201.834 388.049C204.911 398.732 212.351 404.454 221.565 409.639C217.615 413.014 213.098 417.397 212.079 422.745C210.234 432.428 223.594 436.38 228.066 443.22C228.188 443.406 228.306 443.595 228.426 443.783C228.837 448.728 228.046 452.197 226.057 456.674C224.812 458.461 223.358 460.169 221.372 461.157C213.627 465.007 205.555 454.957 199.841 451.041C197.953 449.747 195.93 448.97 193.798 448.189C191.044 449.098 188.705 449.641 185.763 449.545C172.625 449.118 158.814 439.252 150.154 430.055C149.117 410.155 138.63 414.84 133.988 403.408C132.454 399.63 133.558 395.667 135.206 392.129C138.049 386.026 142.381 382.445 148.594 380.083Z"/><path d="M162.491 405.282C165.968 406.725 170.761 417.52 173.478 421.072C176.285 424.786 179.737 427.964 183.669 430.456C187.004 432.597 190.621 434.189 194.514 434.993C196.563 435.417 201.022 434.935 202.568 435.934C203.037 436.2Line truncated
|
||||
|
After Width: | Height: | Size: 8.0 KiB |
|
After Width: | Height: | Size: 9.6 KiB |
@@ -0,0 +1,2 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 512 512" width="512" height="512"><circle cx="256.0" cy="256.0" r="256.0" fill="#f4f1ea"/><defs><linearGradient id="gFav" gradientUnits="userSpaceOnUse" x1="52.13201904296875" y1="636.4270629882812" x2="387.0840148925781" y2="317.4869689941406"><stop offset="0" stop-color="#4a5938"/><stop offset="0.3" stop-color="#7a8c5a"/><stop offset="0.55" stop-color="#869863"/><stop offset="0.8" stop-color="#b9824f"/><stop offset="1" stop-color="#a8754a"/></linearGradient></defs><g transform="translate(31.8,-231.0) scale(1.0210)"><path fill="url(#gFav)" d="M95.8582 567.17C116.252 575.172 127.044 573.335 147.592 567.074C147.262 568.962 146.923 570.859 146.692 572.762C145.985 578.593 146.935 584.466 150.794 589.06C155.788 595.005 162.582 591.266 169.002 592.003C171.986 592.346 174.796 593.68 176.608 596.129C179.519 600.061 180.747 608.207 179.878 612.996C177.729 624.835 157.49 619.963 148.93 622.161C142.904 623.708 137.928 627.289 132.843 630.707C120.813 638.21 105.11 638.452 93.1622 630.72C87.8398 627.275 82.9517 622.354 76.8349 620.334C72.1409 618.784 66.3464 619.708 61.4725 619.988C58.8981 618.371 56.5211 616.512 54.8437 613.933C51.8337 609.304 51.6201 602.879 52.7965 597.626C53.752 593.36 56.3394 588.106 60.2343 585.804C66.0891 582.343 72.5136 587.568 78.2079 588.957C81.149 589.674 84.2362 589.5 86.8289 587.83C93.0851 583.8 94.4868 573.91 95.8582 567.17Z"/><path d="M88.7686 602.489C93.7989 604.815 95.7096 609.065 102.802 611.444C121.365 617.672 140.8 604.14 143.657 604.971L143.928 605.977C139.696 608.545 134.871 610.516 130.169 612.035C119.299 615.547 106.985 616.498 96.5983 610.919C93.2741 609.133 89.8517 606.2 88.7686 602.489Z"/><path fill="url(#gFav)" d="M112.372 497.821C127.709 509.775 138.004 510.692 156.908 510.57C156.264 514.546 155.423 518.782 156.139 522.8C158.538 536.259 173.488 528.881 181.409 534.611C184.367 536.751 185.74 540.113 186.319 543.613C187.023 547.868 187.477 554.486 184.647 558.006C178.458 565.703 165.124 555.667 157.348 556.974C153.096 557.689 150.743 561.296 148.422 564.549L138.259 568.072C122.93 572.313 110.559 570.629 95.7925 565.118C95.595 562.5 95.4304 559.612 94.6639 557.092C91.3509 546.202 78.082 552.073 69.5061 547.222C66.3813 545.454 64.4735 542.198 63.6089 538.791C62.0086 532.484 63.6923 525.048 67.191 519.651C76.4781 505.325 85.1328 516.695 96.0155 513.965C103.89 511.99 108.565 504.338 112.372 497.821Z"/><path d="M93.7436 533.754C97.2398 534.582 100.589 538.372 103.598 540.409C108.198 543.523 113.827 545.557 119.295 546.415C124.628 547.252 130.056 547.065 135.409 546.522C139.042 546.153 147.485 543.771 150.655 544.665L150.73 545.369C138.715 549.457 123.96 550.486 111.795 546.475C105.335 544.346 96.9132 540.04 93.7436 533.754Z"/><path fill="url(#gFav)" d="M148.738 432.177C151.465 433.784 154.08 436.565 156.646 438.548C166.081 445.842 174.732 449.736 186.52 451.946C185.544 453.155 184.641 454.44 183.774 455.729C180.661 460.354 178.271 467.202 179.539 472.775C181.272 480.391 190.567 478.604 195.761 482.203C198.347 483.995 199.717 486.748 200.22 489.8C201.037 494.757 200.485 501.325 197.45 505.444C190.799 514.47 177.162 500.234 168.071 501.654C163.537 502.363 161.335 505.003 158.781 508.481L149.047 508.97C135.301 508.297 123.85 505.396 113.706 495.715C114.152 492.924 114.653 489.953 113.748 487.198C111.398 480.044 102.593 481.558 97.1565 478.675C94.6132 477.327 92.9208 475.192 92.087 472.445C90.4121 466.926 91.5847 459.404 94.2432 454.382C96.0221 451.022 98.4813 447.852 101.645 445.702C113.197 437.855 121.803 453.754 133.669 449.706C141.263 447.116 145.346 438.805 148.738 432.177Z"/><path d="M117.927 467.885C120.288 468.88 122.533 471.194 124.495 472.832C132.137 479.212 139.216 484.413 149.064 486.832C156.216 488.589 163.876 485.863 170.873 487.264L171.463 488.247C159.915 489.887 149.277 490.045 138.54 484.851C132.169 481.769 120.289 474.688 117.927 467.885Z"/><path fill="url(#gFav)" d="M148.594 380.083C162.51 379.07 161.899 384.958 171.963 388.403C181.147 391.547 192.456 384.206 200.331 380.106C200.738 382.753 201.091 385.471 201.834 388.049C204.911 398.732 212.351 404.454 221.565 409.639C217.615 413.014 213.098 417.397 212.079 422.745C210.234 432.428 223.594 436.38 228.066 443.22C228.188 443.406 228.306 443.595 228.426 443.783C228.837 448.728 228.046 452.197 226.057 456.674C224.812 458.461 223.358 460.169 221.372 461.157C213.627 465.007 205.555 454.957 199.841 451.041C197.953 449.747 195.93 448.97 193.798 448.189C191.044 449.098 188.705 449.641 185.763 449.545C172.625 449.118 158.814 439.252 150.154 430.055C149.117 410.155 138.63 414.84 133.988 403.408C132.454 399.63 133.558 395.667 135.206 392.129C138.049 386.026 142.381 382.445 148.594 380.083Z"/><path d="M162.491 405.282C165.968 406.725 170.761 417.52 173.478 421.072C176.285 424.786 179.737 427.964 183.669 430.456C187.004 432.597 190.621 434.189 194.514 434.993C196.563 435.417 201.022 434.935 202.568 435.934C203.037 436.237 203.345 436.Line truncated
|
||||
|
After Width: | Height: | Size: 8.0 KiB |
|
After Width: | Height: | Size: 39 KiB |
@@ -0,0 +1,2 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="5 15 1070 410" width="1070" height="410"><defs><linearGradient id="gradColonne" gradientUnits="userSpaceOnUse" x1="52.13201904296875" y1="636.4270629882812" x2="694.60888671875" y2="317.4869689941406"><stop offset="0" stop-color="#4a5938"/><stop offset="0.35" stop-color="#7a8c5a"/><stop offset="0.6" stop-color="#869863"/><stop offset="0.8" stop-color="#b9824f"/><stop offset="1" stop-color="#a8754a"/></linearGradient><linearGradient id="gradTexte" gradientUnits="userSpaceOnUse" x1="233.47947692871094" y1="0" x2="975.4950561523438" y2="0"><stop offset="0" stop-color="#4a5938"/><stop offset="0.28" stop-color="#7a8c5a"/><stop offset="0.42" stop-color="#869863"/><stop offset="0.55" stop-color="#b9824f"/><stop offset="1" stop-color="#a8754a"/></linearGradient></defs><g transform="translate(-0.1,-252.9) scale(0.9921)"><path d="M297.442 315.613C301.319 315.207 305.339 315.394 308.914 317.091C313.732 319.377 315.545 323.302 317.123 328.069C315.62 334.394 314.384 339.894 314.654 346.457C323.982 346.392 335.072 348.977 344.119 347.438C355.73 345.332 354.522 332.032 359.819 324.314C365.278 316.361 377.264 320.417 383.373 325.55C396.627 336.685 378.427 342.749 378.618 354.515C378.806 355.973 379.525 356.66 380.68 357.338C392.807 364.459 400.207 354.115 404.894 344.199C406.496 340.811 409.24 336.793 413.265 336.078C417.252 335.37 421.929 337.729 425.253 339.753C434.576 346.175 427.523 357.359 424.361 364.852C420.363 374.328 429.982 379.976 438.315 377.623C446.807 375.224 447.417 366.363 451.079 359.8C454.661 353.407 461.252 353.868 466.788 357.472C475.26 363.526 464.156 374.72 465.815 382.498C467.228 389.122 476.253 392.923 482.436 391.769C496.027 389.491 485.929 367.562 499.405 365.988C512.536 364.455 505.839 379.792 506.498 386.78C507.362 396.934 516.957 398.931 525.429 397.754C531.431 396.903 534.988 393.507 536.632 387.774C538.021 382.93 537.176 371.097 544.323 370.992C560.191 370.757 551.609 387.094 559.571 394.363C561.84 396.435 566.018 397.042 568.98 396.782C581.306 395.203 573.68 378.077 580.296 370.892C582.736 368.242 585.589 369.265 588.369 370.413C597.225 374.095 592.188 386.496 598.861 392.284C602.096 395.372 610.937 395.641 613.591 391.796C620.017 382.485 604.314 363.015 624.621 363.763C629.19 363.931 630.585 365.267 633.734 368.468C634.177 372.6 634.909 382.015 640.881 381.337C659.066 379.27 640.163 360.213 652.598 351.066C664.091 342.612 665.341 356.087 675.512 353.844C679.343 352.999 688.757 341.289 693.761 350.295C697.101 357.943 686.927 365.024 684.021 373.507L686.635 378.615C695.559 383.417 701.695 388.771 690.021 398.52C683.064 402.117 674.193 394.124 667.643 392.208C660.734 390.187 647.984 394.32 646.273 400.962C647.04 406.687 656.498 407.37 659.606 411.308C666.956 420.623 658.959 432.323 647.485 430.952C636.566 429.646 636.945 422.73 630.888 416.094C625.172 414.769 612.512 415.174 609.118 421.673C606.616 426.463 614.017 433.305 615.851 439.268C614.365 444.229 613.411 446.9 608.898 450.141C605.688 452.446 600.518 453.712 596.622 452.843C585.434 450.347 587.168 439.946 582.17 432.329C579.188 428.179 574.867 424.827 569.798 424.15C557.848 422.553 552.718 427.777 556.884 439.359C558.109 442.765 559.794 447.78 559.342 451.47C558.413 459.51 548.885 461.055 542.354 459.942C535.673 458.809 532.798 452.686 531.326 446.691C529.241 438.203 525.668 427.325 515.753 425.566C512.357 424.964 506.142 425.673 503.186 427.609C499.631 430.402 501.564 435.035 502.841 438.528C505.012 444.47 506.954 451.458 500.354 455.43C495.595 458.295 490.947 459.292 485.47 457.778C474.166 454.652 476.788 442.346 476.769 433.491C476.74 426.28 473.179 418.923 465.496 417.606C461.731 416.961 458.51 416.671 455.16 418.822C449.755 422.56 453.22 427.101 452.193 433.061C449.849 446.665 429.27 451.583 421.474 440.564C418.438 436.273 423.806 427.802 425.639 422.89C428.609 414.933 424.248 407.245 416.137 404.557C408.785 402.297 407.433 417.117 405.447 421.4C402.833 427.037 398.388 432.209 392.061 432.628C370.736 434.039 387.639 410.632 381.371 400.03C379.27 396.479 374.207 391.121 370.179 389.982C364.69 390.729 366.042 401.206 365.627 405.885C362.825 416.603 345.887 422.062 338.811 412.95C334.714 407.673 342.858 399.884 343.657 393.744C345.379 380.506 333.047 377.916 322.901 375.85C320.829 375.429 319.849 375.846 318.339 377.045C315.962 382.781 323.556 390.447 323.557 396.301C323.56 407.279 313.039 414.755 302.622 413.617C299.596 413.594 295.983 409.538 295.448 406.724C293.181 394.798 290.959 380.733 275.214 381.512C268.684 381.604 253.081 384.158 262.843 393.521C273.2 403.455 276.013 411.664 265.272 423.077C262.732 425.776 257.848 427.792 254.041 427.911C244.907 428.197 242.709 417.851 237.362 412.662C229.095 404.23 212.553 415.082 213.749 425.596C214.686 433.835 227.058 435.43 229.529 443.106C231.46 449.105 229.215 455.526 225.323 460.206C223.213 462.744 220.382 464.053 217.164 463.744C206.578 463.207 196.399 441.482 186.214 454.473C182.67 459.93 180.Line truncated
|
||||
|
After Width: | Height: | Size: 28 KiB |
@@ -0,0 +1,2 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 1024 1024" width="1024" height="1024"><defs><linearGradient id="gradColonne" gradientUnits="userSpaceOnUse" x1="52.13201904296875" y1="636.4270629882812" x2="694.60888671875" y2="317.4869689941406"><stop offset="0" stop-color="#4a5938"/><stop offset="0.35" stop-color="#7a8c5a"/><stop offset="0.6" stop-color="#869863"/><stop offset="0.8" stop-color="#b9824f"/><stop offset="1" stop-color="#a8754a"/></linearGradient><linearGradient id="gradTexte" gradientUnits="userSpaceOnUse" x1="233.47947692871094" y1="0" x2="975.4950561523438" y2="0"><stop offset="0" stop-color="#4a5938"/><stop offset="0.28" stop-color="#7a8c5a"/><stop offset="0.42" stop-color="#869863"/><stop offset="0.55" stop-color="#b9824f"/><stop offset="1" stop-color="#a8754a"/></linearGradient></defs><g transform="translate(89.9,247.1)"><g><g transform="translate(-65.9,-412.1) scale(1.3066)"><path d="M297.442 315.613C301.319 315.207 305.339 315.394 308.914 317.091C313.732 319.377 315.545 323.302 317.123 328.069C315.62 334.394 314.384 339.894 314.654 346.457C323.982 346.392 335.072 348.977 344.119 347.438C355.73 345.332 354.522 332.032 359.819 324.314C365.278 316.361 377.264 320.417 383.373 325.55C396.627 336.685 378.427 342.749 378.618 354.515C378.806 355.973 379.525 356.66 380.68 357.338C392.807 364.459 400.207 354.115 404.894 344.199C406.496 340.811 409.24 336.793 413.265 336.078C417.252 335.37 421.929 337.729 425.253 339.753C434.576 346.175 427.523 357.359 424.361 364.852C420.363 374.328 429.982 379.976 438.315 377.623C446.807 375.224 447.417 366.363 451.079 359.8C454.661 353.407 461.252 353.868 466.788 357.472C475.26 363.526 464.156 374.72 465.815 382.498C467.228 389.122 476.253 392.923 482.436 391.769C496.027 389.491 485.929 367.562 499.405 365.988C512.536 364.455 505.839 379.792 506.498 386.78C507.362 396.934 516.957 398.931 525.429 397.754C531.431 396.903 534.988 393.507 536.632 387.774C538.021 382.93 537.176 371.097 544.323 370.992C560.191 370.757 551.609 387.094 559.571 394.363C561.84 396.435 566.018 397.042 568.98 396.782C581.306 395.203 573.68 378.077 580.296 370.892C582.736 368.242 585.589 369.265 588.369 370.413C597.225 374.095 592.188 386.496 598.861 392.284C602.096 395.372 610.937 395.641 613.591 391.796C620.017 382.485 604.314 363.015 624.621 363.763C629.19 363.931 630.585 365.267 633.734 368.468C634.177 372.6 634.909 382.015 640.881 381.337C659.066 379.27 640.163 360.213 652.598 351.066C664.091 342.612 665.341 356.087 675.512 353.844C679.343 352.999 688.757 341.289 693.761 350.295C697.101 357.943 686.927 365.024 684.021 373.507L686.635 378.615C695.559 383.417 701.695 388.771 690.021 398.52C683.064 402.117 674.193 394.124 667.643 392.208C660.734 390.187 647.984 394.32 646.273 400.962C647.04 406.687 656.498 407.37 659.606 411.308C666.956 420.623 658.959 432.323 647.485 430.952C636.566 429.646 636.945 422.73 630.888 416.094C625.172 414.769 612.512 415.174 609.118 421.673C606.616 426.463 614.017 433.305 615.851 439.268C614.365 444.229 613.411 446.9 608.898 450.141C605.688 452.446 600.518 453.712 596.622 452.843C585.434 450.347 587.168 439.946 582.17 432.329C579.188 428.179 574.867 424.827 569.798 424.15C557.848 422.553 552.718 427.777 556.884 439.359C558.109 442.765 559.794 447.78 559.342 451.47C558.413 459.51 548.885 461.055 542.354 459.942C535.673 458.809 532.798 452.686 531.326 446.691C529.241 438.203 525.668 427.325 515.753 425.566C512.357 424.964 506.142 425.673 503.186 427.609C499.631 430.402 501.564 435.035 502.841 438.528C505.012 444.47 506.954 451.458 500.354 455.43C495.595 458.295 490.947 459.292 485.47 457.778C474.166 454.652 476.788 442.346 476.769 433.491C476.74 426.28 473.179 418.923 465.496 417.606C461.731 416.961 458.51 416.671 455.16 418.822C449.755 422.56 453.22 427.101 452.193 433.061C449.849 446.665 429.27 451.583 421.474 440.564C418.438 436.273 423.806 427.802 425.639 422.89C428.609 414.933 424.248 407.245 416.137 404.557C408.785 402.297 407.433 417.117 405.447 421.4C402.833 427.037 398.388 432.209 392.061 432.628C370.736 434.039 387.639 410.632 381.371 400.03C379.27 396.479 374.207 391.121 370.179 389.982C364.69 390.729 366.042 401.206 365.627 405.885C362.825 416.603 345.887 422.062 338.811 412.95C334.714 407.673 342.858 399.884 343.657 393.744C345.379 380.506 333.047 377.916 322.901 375.85C320.829 375.429 319.849 375.846 318.339 377.045C315.962 382.781 323.556 390.447 323.557 396.301C323.56 407.279 313.039 414.755 302.622 413.617C299.596 413.594 295.983 409.538 295.448 406.724C293.181 394.798 290.959 380.733 275.214 381.512C268.684 381.604 253.081 384.158 262.843 393.521C273.2 403.455 276.013 411.664 265.272 423.077C262.732 425.776 257.848 427.792 254.041 427.911C244.907 428.197 242.709 417.851 237.362 412.662C229.095 404.23 212.553 415.082 213.749 425.596C214.686 433.835 227.058 435.43 229.529 443.106C231.46 449.105 229.215 455.526 225.323 460.206C223.213 462.744 220.382 464.053 217.164 463.744C206.578 463.207 196.399 Line truncated
|
||||
|
After Width: | Height: | Size: 62 KiB |
@@ -46,14 +46,14 @@
|
||||
align-items: center;
|
||||
}
|
||||
.pe-header-brand {
|
||||
font-family: var(--font-serif);
|
||||
font-size: 1.5rem;
|
||||
font-weight: 600;
|
||||
color: var(--color-ink);
|
||||
display: inline-block;
|
||||
text-decoration: none;
|
||||
letter-spacing: -0.01em;
|
||||
}
|
||||
.pe-header-brand:hover { color: var(--color-accent); }
|
||||
.pe-header-brand img {
|
||||
height: 2.75rem;
|
||||
width: auto;
|
||||
}
|
||||
.pe-header-brand:hover { opacity: 0.8; }
|
||||
.pe-header-tagline {
|
||||
font-size: 0.875rem;
|
||||
color: var(--color-ink-muted);
|
||||
@@ -518,7 +518,7 @@
|
||||
<body>
|
||||
<header class="pe-header" id="pe-header">
|
||||
<div class="pe-header-left">
|
||||
<a href="/" class="pe-header-brand">Faunosteo</a>
|
||||
<a href="/" class="pe-header-brand"><img src="/logo-horizontal.svg" alt="Faunosteo"></a>
|
||||
<span class="pe-header-tagline" id="pe-header-tagline"></span>
|
||||
</div>
|
||||
<div class="pe-lang-toggle" id="pe-lang-toggle">
|
||||
@@ -555,7 +555,7 @@
|
||||
|
||||
var TRANSLATIONS = {
|
||||
fr: {
|
||||
'tagline': 'Outil de pathologies',
|
||||
'tagline': 'Outils pour ostéopathes animaliers',
|
||||
'title': 'Éditeur de pathologies',
|
||||
'subtitle': 'Sélectionnez une zone sur le SVG pour éditer ses pathologies',
|
||||
'export_json': 'Télécharger JSON',
|
||||
@@ -633,7 +633,7 @@
|
||||
'small_screen': 'Veuillez utiliser un écran plus large (min. 900px) pour cet outil.'
|
||||
},
|
||||
en: {
|
||||
'tagline': 'Pathology tool',
|
||||
'tagline': 'Tools for animal osteopaths',
|
||||
'title': 'Pathology Editor',
|
||||
'subtitle': 'Select a zone on the SVG to edit its pathologies',
|
||||
'export_json': 'Download JSON',
|
||||
|
||||
|
After Width: | Height: | Size: 9.6 KiB |
@@ -0,0 +1,2 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 512 512" width="512" height="512"><circle cx="256.0" cy="256.0" r="256.0" fill="#f4f1ea"/><defs><linearGradient id="gFav" gradientUnits="userSpaceOnUse" x1="52.13201904296875" y1="636.4270629882812" x2="387.0840148925781" y2="317.4869689941406"><stop offset="0" stop-color="#4a5938"/><stop offset="0.3" stop-color="#7a8c5a"/><stop offset="0.55" stop-color="#869863"/><stop offset="0.8" stop-color="#b9824f"/><stop offset="1" stop-color="#a8754a"/></linearGradient></defs><g transform="translate(31.8,-231.0) scale(1.0210)"><path fill="url(#gFav)" d="M95.8582 567.17C116.252 575.172 127.044 573.335 147.592 567.074C147.262 568.962 146.923 570.859 146.692 572.762C145.985 578.593 146.935 584.466 150.794 589.06C155.788 595.005 162.582 591.266 169.002 592.003C171.986 592.346 174.796 593.68 176.608 596.129C179.519 600.061 180.747 608.207 179.878 612.996C177.729 624.835 157.49 619.963 148.93 622.161C142.904 623.708 137.928 627.289 132.843 630.707C120.813 638.21 105.11 638.452 93.1622 630.72C87.8398 627.275 82.9517 622.354 76.8349 620.334C72.1409 618.784 66.3464 619.708 61.4725 619.988C58.8981 618.371 56.5211 616.512 54.8437 613.933C51.8337 609.304 51.6201 602.879 52.7965 597.626C53.752 593.36 56.3394 588.106 60.2343 585.804C66.0891 582.343 72.5136 587.568 78.2079 588.957C81.149 589.674 84.2362 589.5 86.8289 587.83C93.0851 583.8 94.4868 573.91 95.8582 567.17Z"/><path d="M88.7686 602.489C93.7989 604.815 95.7096 609.065 102.802 611.444C121.365 617.672 140.8 604.14 143.657 604.971L143.928 605.977C139.696 608.545 134.871 610.516 130.169 612.035C119.299 615.547 106.985 616.498 96.5983 610.919C93.2741 609.133 89.8517 606.2 88.7686 602.489Z"/><path fill="url(#gFav)" d="M112.372 497.821C127.709 509.775 138.004 510.692 156.908 510.57C156.264 514.546 155.423 518.782 156.139 522.8C158.538 536.259 173.488 528.881 181.409 534.611C184.367 536.751 185.74 540.113 186.319 543.613C187.023 547.868 187.477 554.486 184.647 558.006C178.458 565.703 165.124 555.667 157.348 556.974C153.096 557.689 150.743 561.296 148.422 564.549L138.259 568.072C122.93 572.313 110.559 570.629 95.7925 565.118C95.595 562.5 95.4304 559.612 94.6639 557.092C91.3509 546.202 78.082 552.073 69.5061 547.222C66.3813 545.454 64.4735 542.198 63.6089 538.791C62.0086 532.484 63.6923 525.048 67.191 519.651C76.4781 505.325 85.1328 516.695 96.0155 513.965C103.89 511.99 108.565 504.338 112.372 497.821Z"/><path d="M93.7436 533.754C97.2398 534.582 100.589 538.372 103.598 540.409C108.198 543.523 113.827 545.557 119.295 546.415C124.628 547.252 130.056 547.065 135.409 546.522C139.042 546.153 147.485 543.771 150.655 544.665L150.73 545.369C138.715 549.457 123.96 550.486 111.795 546.475C105.335 544.346 96.9132 540.04 93.7436 533.754Z"/><path fill="url(#gFav)" d="M148.738 432.177C151.465 433.784 154.08 436.565 156.646 438.548C166.081 445.842 174.732 449.736 186.52 451.946C185.544 453.155 184.641 454.44 183.774 455.729C180.661 460.354 178.271 467.202 179.539 472.775C181.272 480.391 190.567 478.604 195.761 482.203C198.347 483.995 199.717 486.748 200.22 489.8C201.037 494.757 200.485 501.325 197.45 505.444C190.799 514.47 177.162 500.234 168.071 501.654C163.537 502.363 161.335 505.003 158.781 508.481L149.047 508.97C135.301 508.297 123.85 505.396 113.706 495.715C114.152 492.924 114.653 489.953 113.748 487.198C111.398 480.044 102.593 481.558 97.1565 478.675C94.6132 477.327 92.9208 475.192 92.087 472.445C90.4121 466.926 91.5847 459.404 94.2432 454.382C96.0221 451.022 98.4813 447.852 101.645 445.702C113.197 437.855 121.803 453.754 133.669 449.706C141.263 447.116 145.346 438.805 148.738 432.177Z"/><path d="M117.927 467.885C120.288 468.88 122.533 471.194 124.495 472.832C132.137 479.212 139.216 484.413 149.064 486.832C156.216 488.589 163.876 485.863 170.873 487.264L171.463 488.247C159.915 489.887 149.277 490.045 138.54 484.851C132.169 481.769 120.289 474.688 117.927 467.885Z"/><path fill="url(#gFav)" d="M148.594 380.083C162.51 379.07 161.899 384.958 171.963 388.403C181.147 391.547 192.456 384.206 200.331 380.106C200.738 382.753 201.091 385.471 201.834 388.049C204.911 398.732 212.351 404.454 221.565 409.639C217.615 413.014 213.098 417.397 212.079 422.745C210.234 432.428 223.594 436.38 228.066 443.22C228.188 443.406 228.306 443.595 228.426 443.783C228.837 448.728 228.046 452.197 226.057 456.674C224.812 458.461 223.358 460.169 221.372 461.157C213.627 465.007 205.555 454.957 199.841 451.041C197.953 449.747 195.93 448.97 193.798 448.189C191.044 449.098 188.705 449.641 185.763 449.545C172.625 449.118 158.814 439.252 150.154 430.055C149.117 410.155 138.63 414.84 133.988 403.408C132.454 399.63 133.558 395.667 135.206 392.129C138.049 386.026 142.381 382.445 148.594 380.083Z"/><path d="M162.491 405.282C165.968 406.725 170.761 417.52 173.478 421.072C176.285 424.786 179.737 427.964 183.669 430.456C187.004 432.597 190.621 434.189 194.514 434.993C196.563 435.417 201.022 434.935 202.568 435.934C203.037 436.237 203.345 436.Line truncated
|
||||
|
After Width: | Height: | Size: 8.0 KiB |
@@ -0,0 +1,2 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="5 15 1070 410" width="1070" height="410"><defs><linearGradient id="gradColonne" gradientUnits="userSpaceOnUse" x1="52.13201904296875" y1="636.4270629882812" x2="694.60888671875" y2="317.4869689941406"><stop offset="0" stop-color="#4a5938"/><stop offset="0.35" stop-color="#7a8c5a"/><stop offset="0.6" stop-color="#869863"/><stop offset="0.8" stop-color="#b9824f"/><stop offset="1" stop-color="#a8754a"/></linearGradient><linearGradient id="gradTexte" gradientUnits="userSpaceOnUse" x1="233.47947692871094" y1="0" x2="975.4950561523438" y2="0"><stop offset="0" stop-color="#4a5938"/><stop offset="0.28" stop-color="#7a8c5a"/><stop offset="0.42" stop-color="#869863"/><stop offset="0.55" stop-color="#b9824f"/><stop offset="1" stop-color="#a8754a"/></linearGradient></defs><g transform="translate(-0.1,-252.9) scale(0.9921)"><path d="M297.442 315.613C301.319 315.207 305.339 315.394 308.914 317.091C313.732 319.377 315.545 323.302 317.123 328.069C315.62 334.394 314.384 339.894 314.654 346.457C323.982 346.392 335.072 348.977 344.119 347.438C355.73 345.332 354.522 332.032 359.819 324.314C365.278 316.361 377.264 320.417 383.373 325.55C396.627 336.685 378.427 342.749 378.618 354.515C378.806 355.973 379.525 356.66 380.68 357.338C392.807 364.459 400.207 354.115 404.894 344.199C406.496 340.811 409.24 336.793 413.265 336.078C417.252 335.37 421.929 337.729 425.253 339.753C434.576 346.175 427.523 357.359 424.361 364.852C420.363 374.328 429.982 379.976 438.315 377.623C446.807 375.224 447.417 366.363 451.079 359.8C454.661 353.407 461.252 353.868 466.788 357.472C475.26 363.526 464.156 374.72 465.815 382.498C467.228 389.122 476.253 392.923 482.436 391.769C496.027 389.491 485.929 367.562 499.405 365.988C512.536 364.455 505.839 379.792 506.498 386.78C507.362 396.934 516.957 398.931 525.429 397.754C531.431 396.903 534.988 393.507 536.632 387.774C538.021 382.93 537.176 371.097 544.323 370.992C560.191 370.757 551.609 387.094 559.571 394.363C561.84 396.435 566.018 397.042 568.98 396.782C581.306 395.203 573.68 378.077 580.296 370.892C582.736 368.242 585.589 369.265 588.369 370.413C597.225 374.095 592.188 386.496 598.861 392.284C602.096 395.372 610.937 395.641 613.591 391.796C620.017 382.485 604.314 363.015 624.621 363.763C629.19 363.931 630.585 365.267 633.734 368.468C634.177 372.6 634.909 382.015 640.881 381.337C659.066 379.27 640.163 360.213 652.598 351.066C664.091 342.612 665.341 356.087 675.512 353.844C679.343 352.999 688.757 341.289 693.761 350.295C697.101 357.943 686.927 365.024 684.021 373.507L686.635 378.615C695.559 383.417 701.695 388.771 690.021 398.52C683.064 402.117 674.193 394.124 667.643 392.208C660.734 390.187 647.984 394.32 646.273 400.962C647.04 406.687 656.498 407.37 659.606 411.308C666.956 420.623 658.959 432.323 647.485 430.952C636.566 429.646 636.945 422.73 630.888 416.094C625.172 414.769 612.512 415.174 609.118 421.673C606.616 426.463 614.017 433.305 615.851 439.268C614.365 444.229 613.411 446.9 608.898 450.141C605.688 452.446 600.518 453.712 596.622 452.843C585.434 450.347 587.168 439.946 582.17 432.329C579.188 428.179 574.867 424.827 569.798 424.15C557.848 422.553 552.718 427.777 556.884 439.359C558.109 442.765 559.794 447.78 559.342 451.47C558.413 459.51 548.885 461.055 542.354 459.942C535.673 458.809 532.798 452.686 531.326 446.691C529.241 438.203 525.668 427.325 515.753 425.566C512.357 424.964 506.142 425.673 503.186 427.609C499.631 430.402 501.564 435.035 502.841 438.528C505.012 444.47 506.954 451.458 500.354 455.43C495.595 458.295 490.947 459.292 485.47 457.778C474.166 454.652 476.788 442.346 476.769 433.491C476.74 426.28 473.179 418.923 465.496 417.606C461.731 416.961 458.51 416.671 455.16 418.822C449.755 422.56 453.22 427.101 452.193 433.061C449.849 446.665 429.27 451.583 421.474 440.564C418.438 436.273 423.806 427.802 425.639 422.89C428.609 414.933 424.248 407.245 416.137 404.557C408.785 402.297 407.433 417.117 405.447 421.4C402.833 427.037 398.388 432.209 392.061 432.628C370.736 434.039 387.639 410.632 381.371 400.03C379.27 396.479 374.207 391.121 370.179 389.982C364.69 390.729 366.042 401.206 365.627 405.885C362.825 416.603 345.887 422.062 338.811 412.95C334.714 407.673 342.858 399.884 343.657 393.744C345.379 380.506 333.047 377.916 322.901 375.85C320.829 375.429 319.849 375.846 318.339 377.045C315.962 382.781 323.556 390.447 323.557 396.301C323.56 407.279 313.039 414.755 302.622 413.617C299.596 413.594 295.983 409.538 295.448 406.724C293.181 394.798 290.959 380.733 275.214 381.512C268.684 381.604 253.081 384.158 262.843 393.521C273.2 403.455 276.013 411.664 265.272 423.077C262.732 425.776 257.848 427.792 254.041 427.911C244.907 428.197 242.709 417.851 237.362 412.662C229.095 404.23 212.553 415.082 213.749 425.596C214.686 433.835 227.058 435.43 229.529 443.106C231.46 449.105 229.215 455.526 225.323 460.206C223.213 462.744 220.382 464.053 217.164 463.744C206.578 463.207 196.399 441.482 186.214 454.473C182.67 459.93 180.Line truncated
|
||||
|
After Width: | Height: | Size: 28 KiB |
@@ -1,29 +1,18 @@
|
||||
import { Link } from 'react-router-dom'
|
||||
import Brand from '@/components/brand/Brand'
|
||||
import LanguageSwitcher from '@/components/brand/LanguageSwitcher'
|
||||
import AppHeader from '@/components/brand/AppHeader'
|
||||
import Card from '@/components/ui/Card'
|
||||
import { useConfig } from '@/app/providers/ConfigProvider'
|
||||
import { useT } from '@/i18n/useT'
|
||||
|
||||
export default function EditorsRoute() {
|
||||
const cfg = useConfig()
|
||||
const t = useT()
|
||||
|
||||
return (
|
||||
<main className="flex-1 flex flex-col">
|
||||
<header className="px-6 py-4 border-b border-[var(--color-border)] flex items-center justify-between">
|
||||
<div className="flex items-baseline gap-3">
|
||||
<Link to="/" className="no-underline">
|
||||
<Brand size="lg" />
|
||||
</Link>
|
||||
<span className="text-sm text-[var(--color-ink-muted)]">{cfg.tagline}</span>
|
||||
</div>
|
||||
<LanguageSwitcher />
|
||||
</header>
|
||||
<section className="flex-1 grid place-items-center px-6">
|
||||
<AppHeader />
|
||||
<section className="flex-1 grid place-items-center px-4 sm:px-6">
|
||||
<div className="grid gap-4 md:grid-cols-2 max-w-3xl w-full">
|
||||
<Card className="p-6 space-y-4">
|
||||
<h2 className="font-serif text-2xl">{t('editors.svg.title')}</h2>
|
||||
<Card className="p-4 sm:p-6 space-y-3 sm:space-y-4">
|
||||
<h2 className="font-serif text-xl sm:text-2xl">{t('editors.svg.title')}</h2>
|
||||
<p className="text-sm text-[var(--color-ink-muted)]">
|
||||
{t('editors.svg.description')}
|
||||
</p>
|
||||
@@ -34,8 +23,8 @@ export default function EditorsRoute() {
|
||||
{t('editors.svg.cta')}
|
||||
</Link>
|
||||
</Card>
|
||||
<Card className="p-6 space-y-4">
|
||||
<h2 className="font-serif text-2xl">{t('editors.pathology.title')}</h2>
|
||||
<Card className="p-4 sm:p-6 space-y-3 sm:space-y-4">
|
||||
<h2 className="font-serif text-xl sm:text-2xl">{t('editors.pathology.title')}</h2>
|
||||
<p className="text-sm text-[var(--color-ink-muted)]">
|
||||
{t('editors.pathology.description')}
|
||||
</p>
|
||||
|
||||
@@ -1,17 +1,14 @@
|
||||
import { useNavigate } from 'react-router-dom'
|
||||
import { useRef, useState } from 'react'
|
||||
import Brand from '@/components/brand/Brand'
|
||||
import LanguageSwitcher from '@/components/brand/LanguageSwitcher'
|
||||
import AppHeader from '@/components/brand/AppHeader'
|
||||
import Button from '@/components/ui/Button'
|
||||
import Card from '@/components/ui/Card'
|
||||
import { useConfig } from '@/app/providers/ConfigProvider'
|
||||
import { importReportFromPdf, ImportError } from '@/pdf/import'
|
||||
import { useReportStore } from '@/state/reportStore'
|
||||
import { useT } from '@/i18n/useT'
|
||||
|
||||
export default function HomeRoute() {
|
||||
const navigate = useNavigate()
|
||||
const cfg = useConfig()
|
||||
const fileRef = useRef<HTMLInputElement | null>(null)
|
||||
const hydrate = useReportStore((s) => s.hydrateReport)
|
||||
const [error, setError] = useState<string | null>(null)
|
||||
@@ -53,22 +50,16 @@ export default function HomeRoute() {
|
||||
|
||||
return (
|
||||
<main className="flex-1 flex flex-col">
|
||||
<header className="px-6 py-4 border-b border-[var(--color-border)] flex items-center justify-between">
|
||||
<div className="flex items-baseline gap-3">
|
||||
<Brand size="lg" />
|
||||
<span className="text-sm text-[var(--color-ink-muted)]">{cfg.tagline}</span>
|
||||
</div>
|
||||
<LanguageSwitcher />
|
||||
</header>
|
||||
<section className="flex-1 grid place-items-center px-6">
|
||||
<AppHeader />
|
||||
<section className="flex-1 grid place-items-center px-4 sm:px-6">
|
||||
<div className="grid gap-4 md:grid-cols-2 max-w-3xl w-full">
|
||||
<Card className="p-6 space-y-4">
|
||||
<h2 className="font-serif text-2xl">{t('home.new_report.title')}</h2>
|
||||
<Card className="p-4 sm:p-6 space-y-3 sm:space-y-4">
|
||||
<h2 className="font-serif text-xl sm:text-2xl">{t('home.new_report.title')}</h2>
|
||||
<p className="text-sm text-[var(--color-ink-muted)]">{t('home.new_report.description')}</p>
|
||||
<Button onClick={() => navigate('/new')} size="lg">{t('home.new_report.cta')}</Button>
|
||||
</Card>
|
||||
<Card className="p-6 space-y-4">
|
||||
<h2 className="font-serif text-2xl">{t('home.import.title')}</h2>
|
||||
<Card className="p-4 sm:p-6 space-y-3 sm:space-y-4">
|
||||
<h2 className="font-serif text-xl sm:text-2xl">{t('home.import.title')}</h2>
|
||||
<p className="text-sm text-[var(--color-ink-muted)]">{t('home.import.description')}</p>
|
||||
<input ref={fileRef} type="file" accept="application/pdf,.pdf" className="hidden" onChange={onPickFile} />
|
||||
<Button variant="secondary" size="lg" onClick={() => fileRef.current?.click()} disabled={busy}>
|
||||
|
||||
@@ -1,22 +1,19 @@
|
||||
import { useEffect, useState } from 'react'
|
||||
import { Link, useNavigate } from 'react-router-dom'
|
||||
import { useNavigate } from 'react-router-dom'
|
||||
import PractitionerForm from '@/components/report/PractitionerForm'
|
||||
import AnimalForm from '@/components/report/AnimalForm'
|
||||
import Brand from '@/components/brand/Brand'
|
||||
import LanguageSwitcher from '@/components/brand/LanguageSwitcher'
|
||||
import AppHeader from '@/components/brand/AppHeader'
|
||||
import Button from '@/components/ui/Button'
|
||||
import Input from '@/components/ui/Input'
|
||||
import Label from '@/components/ui/Label'
|
||||
import { todayIso } from '@/lib/dates'
|
||||
import { readCachedPractitioner, writeCachedPractitioner } from '@/state/practitionerCache'
|
||||
import { useReportStore } from '@/state/reportStore'
|
||||
import { useConfig } from '@/app/providers/ConfigProvider'
|
||||
import { useT } from '@/i18n/useT'
|
||||
|
||||
export default function NewReportRoute() {
|
||||
const navigate = useNavigate()
|
||||
const initReport = useReportStore((s) => s.initReport)
|
||||
const cfg = useConfig()
|
||||
const t = useT()
|
||||
|
||||
const [practitioner, setPractitioner] = useState({ name: '' })
|
||||
@@ -48,21 +45,9 @@ export default function NewReportRoute() {
|
||||
|
||||
return (
|
||||
<main className="min-h-screen">
|
||||
<header className="px-6 py-4 border-b border-[var(--color-border)] flex items-center justify-between">
|
||||
<div className="flex items-baseline gap-3">
|
||||
<Link
|
||||
to="/"
|
||||
aria-label={t('common.back_to_home')}
|
||||
className="rounded-md px-1 py-0.5 hover:opacity-80 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-accent)]"
|
||||
>
|
||||
<Brand />
|
||||
</Link>
|
||||
<span className="text-sm text-[var(--color-ink-muted)]">{cfg.tagline}</span>
|
||||
</div>
|
||||
<LanguageSwitcher />
|
||||
</header>
|
||||
<div className="max-w-3xl mx-auto px-6 py-8 space-y-8">
|
||||
<h1 className="font-serif text-3xl">{t('new_report.title')}</h1>
|
||||
<AppHeader />
|
||||
<div className="max-w-3xl mx-auto px-4 sm:px-6 py-6 sm:py-8 space-y-6 sm:space-y-8">
|
||||
<h1 className="font-serif text-2xl sm:text-3xl">{t('new_report.title')}</h1>
|
||||
<div>
|
||||
<Label htmlFor="date">{t('new_report.date_label')}</Label>
|
||||
<Input id="date" type="date" value={date} onChange={(e) => setDate(e.target.value)} />
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
import { useEffect, useRef } from 'react'
|
||||
import { Link } from 'react-router-dom'
|
||||
import Brand from '@/components/brand/Brand'
|
||||
import LanguageSwitcher from '@/components/brand/LanguageSwitcher'
|
||||
import { useConfig } from '@/app/providers/ConfigProvider'
|
||||
import AppHeader from '@/components/brand/AppHeader'
|
||||
import { useT } from '@/i18n/useT'
|
||||
import { useLocaleStore } from '@/state/localeStore'
|
||||
import { getDict } from '@/i18n/index'
|
||||
@@ -15,7 +13,6 @@ export default function SvgEditorRoute() {
|
||||
const canvasInnerRef = useRef<HTMLDivElement>(null)
|
||||
const sidebarRef = useRef<HTMLDivElement>(null)
|
||||
const cleanupRef = useRef<(() => void) | null>(null)
|
||||
const cfg = useConfig()
|
||||
const t = useT()
|
||||
const locale = useLocaleStore((s) => s.locale)
|
||||
|
||||
@@ -45,20 +42,11 @@ export default function SvgEditorRoute() {
|
||||
cleanupRef.current = null
|
||||
}
|
||||
// Re-init when locale changes so all vanilla JS strings update
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [locale])
|
||||
|
||||
return (
|
||||
<div className="flex flex-col h-screen">
|
||||
<header className="px-4 py-2 border-b border-[var(--color-border)] flex items-center justify-between shrink-0">
|
||||
<div className="flex items-baseline gap-3">
|
||||
<Link to="/" className="no-underline">
|
||||
<Brand size="sm" />
|
||||
</Link>
|
||||
<span className="text-xs text-[var(--color-ink-muted)]">{cfg.tagline}</span>
|
||||
</div>
|
||||
<LanguageSwitcher />
|
||||
</header>
|
||||
<AppHeader />
|
||||
|
||||
<div className="svg-editor-root">
|
||||
<div
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
import { Link } from 'react-router-dom'
|
||||
import Brand from './Brand'
|
||||
import LanguageSwitcher from './LanguageSwitcher'
|
||||
import { useConfig } from '@/app/providers/ConfigProvider'
|
||||
import { useT } from '@/i18n/useT'
|
||||
|
||||
interface AppHeaderProps {
|
||||
children?: React.ReactNode
|
||||
}
|
||||
|
||||
export default function AppHeader({ children }: AppHeaderProps) {
|
||||
const cfg = useConfig()
|
||||
const t = useT()
|
||||
return (
|
||||
<header className="px-3 sm:px-6 py-2 sm:py-3 border-b border-[var(--color-border)] flex items-center justify-between bg-[var(--color-surface)]">
|
||||
<div className="flex items-center gap-3">
|
||||
<Link
|
||||
to="/"
|
||||
aria-label={t('common.home')}
|
||||
className="rounded-md px-1 py-0.5 hover:opacity-80 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-accent)]"
|
||||
>
|
||||
<Brand size="lg" />
|
||||
</Link>
|
||||
<span className="text-sm text-[var(--color-ink-muted)] hidden sm:inline">
|
||||
{cfg.tagline}
|
||||
</span>
|
||||
</div>
|
||||
<div className="flex items-center gap-2 sm:gap-4">
|
||||
{children}
|
||||
<LanguageSwitcher />
|
||||
</div>
|
||||
</header>
|
||||
)
|
||||
}
|
||||
@@ -1,11 +1,11 @@
|
||||
import { useConfig } from '@/app/providers/ConfigProvider'
|
||||
const HEIGHT = { sm: 'h-7', md: 'h-9', lg: 'h-11' } as const
|
||||
|
||||
export default function Brand({ size = 'md' }: { size?: 'sm' | 'md' | 'lg' }) {
|
||||
const cfg = useConfig()
|
||||
const cls = size === 'lg' ? 'text-3xl' : size === 'sm' ? 'text-base' : 'text-xl'
|
||||
return (
|
||||
<span className={`font-serif font-semibold tracking-tight ${cls}`}>
|
||||
{cfg.brandName}
|
||||
</span>
|
||||
<img
|
||||
src="/logo-horizontal.svg"
|
||||
alt="Faunosteo"
|
||||
className={`${HEIGHT[size]} w-auto`}
|
||||
/>
|
||||
)
|
||||
}
|
||||
@@ -7,18 +7,18 @@ export default function Footer() {
|
||||
const t = useT()
|
||||
const year = new Date().getFullYear()
|
||||
return (
|
||||
<footer className="mt-12 border-t border-neutral-200 bg-neutral-50 py-6 text-center text-sm text-neutral-600">
|
||||
<footer className="mt-8 sm:mt-12 border-t border-neutral-200 bg-neutral-50 py-4 sm:py-6 text-center text-xs sm:text-sm text-neutral-600">
|
||||
<p className="mb-3">
|
||||
© {year} {cfg.footerName}. {t('footer.all_rights_reserved')}
|
||||
</p>
|
||||
<div className="flex items-center justify-center gap-4">
|
||||
© {year} {cfg.footerName}. {t('footer.all_rights_reserved')}{' '}
|
||||
<span className="text-neutral-300">·</span>{' '}
|
||||
<Link
|
||||
to="/editors"
|
||||
className="text-[var(--color-accent)] hover:text-[var(--color-accent-strong)] transition-colors"
|
||||
>
|
||||
{t('footer.editors')}
|
||||
</Link>
|
||||
<span className="text-neutral-300">|</span>
|
||||
</p>
|
||||
<div className="flex flex-wrap items-center justify-center gap-2 sm:gap-4">
|
||||
<span className="flex items-center gap-2">
|
||||
<span>{t('footer.powered_by')}</span>
|
||||
<a
|
||||
@@ -36,9 +36,8 @@ export default function Footer() {
|
||||
/>
|
||||
</a>
|
||||
</span>
|
||||
<span className="text-neutral-300">|</span>
|
||||
<span className="flex items-center gap-1.5">
|
||||
<span>{t('footer.with_help')}</span>
|
||||
<span>{t('footer.in_partnership')}</span>
|
||||
<a
|
||||
href="https://www.instagram.com/paws.iin.harmony"
|
||||
target="_blank"
|
||||
|
||||
@@ -1,11 +1,8 @@
|
||||
import { Link } from 'react-router-dom'
|
||||
import type { Report } from '@/domain/schema/report'
|
||||
import Brand from '@/components/brand/Brand'
|
||||
import LanguageSwitcher from '@/components/brand/LanguageSwitcher'
|
||||
import AppHeader from '@/components/brand/AppHeader'
|
||||
import Button from '@/components/ui/Button'
|
||||
import { formatDate } from '@/lib/dates'
|
||||
import { useT } from '@/i18n/useT'
|
||||
import { useConfig } from '@/app/providers/ConfigProvider'
|
||||
import { useLocaleStore } from '@/state/localeStore'
|
||||
|
||||
export interface ReportHeaderProps {
|
||||
@@ -15,34 +12,20 @@ export interface ReportHeaderProps {
|
||||
|
||||
export default function ReportHeader({ report, onEditInfos }: ReportHeaderProps) {
|
||||
const t = useT()
|
||||
const cfg = useConfig()
|
||||
const locale = useLocaleStore((s) => s.locale)
|
||||
return (
|
||||
<header className="flex items-center justify-between gap-4 px-6 py-3 border-b border-[var(--color-border)] bg-[var(--color-surface)]">
|
||||
<div className="flex items-baseline gap-3">
|
||||
<Link
|
||||
to="/"
|
||||
aria-label={t('common.back_to_home')}
|
||||
className="rounded-md px-1 py-0.5 hover:opacity-80 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-accent)]"
|
||||
>
|
||||
<Brand />
|
||||
</Link>
|
||||
<span className="text-sm text-[var(--color-ink-muted)]">{cfg.tagline}</span>
|
||||
</div>
|
||||
<div className="flex items-center gap-4">
|
||||
<div className="text-sm text-right text-[var(--color-ink-muted)]">
|
||||
<div className="text-[var(--color-ink)] font-medium">
|
||||
{report.animal.name} · {report.owner.name}
|
||||
</div>
|
||||
<div>{formatDate(report.date, locale)}</div>
|
||||
<AppHeader>
|
||||
<div className="text-xs sm:text-sm text-right text-[var(--color-ink-muted)]">
|
||||
<div className="text-[var(--color-ink)] font-medium truncate max-w-[10rem] sm:max-w-none">
|
||||
{report.animal.name} · {report.owner.name}
|
||||
</div>
|
||||
{onEditInfos && (
|
||||
<Button variant="secondary" size="sm" onClick={onEditInfos}>
|
||||
{t('editor.edit_infos')}
|
||||
</Button>
|
||||
)}
|
||||
<LanguageSwitcher />
|
||||
<div className="hidden sm:block">{formatDate(report.date, locale)}</div>
|
||||
</div>
|
||||
</header>
|
||||
{onEditInfos && (
|
||||
<Button variant="secondary" size="sm" onClick={onEditInfos}>
|
||||
{t('editor.edit_infos')}
|
||||
</Button>
|
||||
)}
|
||||
</AppHeader>
|
||||
)
|
||||
}
|
||||
@@ -24,7 +24,7 @@ const DEFAULTS: AppConfig = {
|
||||
siteName: 'Faunosteo',
|
||||
brandName: 'Faunosteo',
|
||||
footerName: 'Faunosteo',
|
||||
tagline: "Bilans d'ostéopathie animalière",
|
||||
tagline: 'Outils pour ostéopathes animaliers',
|
||||
}
|
||||
|
||||
function resolveConfig(): AppConfig {
|
||||
|
||||
@@ -1,15 +1,12 @@
|
||||
import { describe, it, expect } from 'vitest'
|
||||
import { render, screen } from '@testing-library/react'
|
||||
import { ConfigProvider } from '@/app/providers/ConfigProvider'
|
||||
import Brand from '@/components/brand/Brand'
|
||||
|
||||
describe('Brand', () => {
|
||||
it('renders the brand name from config', () => {
|
||||
render(
|
||||
<ConfigProvider>
|
||||
<Brand />
|
||||
</ConfigProvider>,
|
||||
)
|
||||
expect(screen.getByText(/Faunosteo/i)).toBeInTheDocument()
|
||||
it('renders the logo image with alt text', () => {
|
||||
render(<Brand />)
|
||||
const img = screen.getByAltText('Faunosteo')
|
||||
expect(img).toBeInTheDocument()
|
||||
expect(img).toHaveAttribute('src', '/logo-horizontal.svg')
|
||||
})
|
||||
})
|
||||