From a272482307c9d90404f1444e24789dd99f4f1d11 Mon Sep 17 00:00:00 2001 From: Agathe Badia Date: Sat, 2 Mar 2024 16:37:16 +0100 Subject: [PATCH] fix(bildungsurlaub): Work on a temporary fix to display mermaid flowchart --- app/components/schema/mermaid.md | 8 ++++++++ app/routes/home/template.hbs | 4 +++- mermaid-1.svg | 1 - mermaid.md | 2 -- 4 files changed, 11 insertions(+), 4 deletions(-) delete mode 100644 mermaid-1.svg delete mode 100644 mermaid.md diff --git a/app/components/schema/mermaid.md b/app/components/schema/mermaid.md index 3da01f7..7ee1c13 100644 --- a/app/components/schema/mermaid.md +++ b/app/components/schema/mermaid.md @@ -9,5 +9,13 @@ stateDiagram-v2 state2 --> state3 state3 --> state4 ``` + +### Scenario eligibilitz for Bildungsurlaub, flowchart version +```mermaid +flowchart TD + A("Employed") --> B("In the company for more than 6 months") + B --> C("Eligible for Bildungsurlaub") + C --> D("Can use up to 10 days every two years") +``` diff --git a/app/routes/home/template.hbs b/app/routes/home/template.hbs index a044353..36f9c7b 100644 --- a/app/routes/home/template.hbs +++ b/app/routes/home/template.hbs @@ -1,7 +1,9 @@
- schema to employed until eligibility for bildungsurlaub + schema to employed until eligibility for bildungsurlaub
+ {{!-- TODO: Ideally find a way to display a SVG instead, which is more accessible --}} + {{!-- Mermaid live editor: https://mermaid.live/edit#pako:eNpNkDtvwzAMhP8KwTkG6jTooKFDH0OHTtkKL4xFOwIk0dAjgRDkv1d1UFiaqA-n4-luOIpmVBgTJf4wNAdy3WU_eKhnhb2CT7dYKawbulfw5SGdGUZxC_kCkwRwErhC8vBSZ5_OsXnyXI2smc3J8ip-M1ZnP8ccLOVTIzwoeK8WOTLkBZJA_wSaSgS-cCiQrgKFKbTePXTd63-0NubKH-vbKBs-4A4dB0dG1xpuf6IB678cD6jqqHmibNOAg79XKeUkx-JHVClk3mFe9FYcqolsrLQW8iOy3VmbJOH7UfXa-P0XYap84w --}}
TABLE OF content diff --git a/mermaid-1.svg b/mermaid-1.svg deleted file mode 100644 index 6ddedb6..0000000 --- a/mermaid-1.svg +++ /dev/null @@ -1 +0,0 @@ -
Employed
In the company for more than 6 months
Eligible for Bildungsurlaub
Can use up to 10 days every two years
\ No newline at end of file diff --git a/mermaid.md b/mermaid.md deleted file mode 100644 index c5b7f1e..0000000 --- a/mermaid.md +++ /dev/null @@ -1,2 +0,0 @@ -### Scenario eligibility for Bildungsurlaub -![diagram](./mermaid-1.svg)