Skip to content

Commit

Permalink
feat(bildungsUrlaub): Update mermaid and draft table of content
Browse files Browse the repository at this point in the history
  • Loading branch information
Agathebadia committed Mar 2, 2024
1 parent 989623b commit 53eeb4d
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 15 deletions.
26 changes: 12 additions & 14 deletions app/components/entitlement/index.hbs
Original file line number Diff line number Diff line change
@@ -1,23 +1,21 @@
<table >
<caption class="font-extrabold">Entitlement for each German state</caption>
<div class="">
<table class="border-separate border border-slate-400">
<caption class="my-2 font-extrabold border border-slate-400">Entitlement for each German state</caption>
<tr class="">
<td class="py-3"></td>
<th class="py-3" scope="col">Entitlement per year</th>
<th class="py-3" scope="col">Entitlement of 2 years may be combined</th>
<td class="py-3 px-2"></td>
<th class="py-3 px-2 border border-slate-300" scope="col">Entitlement per year</th>
<th class="py-3 px-2 border border-slate-300" scope="col">Entitlement of 2 years may be combined</th>
</tr>
{{#each @states as |state|}}
<tr>
<th class="py-3" scope="row">{{state.stateName}}</th>
<td class="py-3">{{state.entitlementPerYear}}</td>
<td class="py-3">{{state.entitlementOfTwoYears}}</td>
<th class="py-3 px-2 border border-slate-300" scope="row">{{state.stateName}}</th>
<td class="py-3 px-2 border border-slate-300">{{state.entitlementPerYear}}</td>
<td class="py-3 px-2 border border-slate-300">{{state.entitlementOfTwoYears}}</td>
</tr>
{{/each}}
</div>
</table>

<div class="text-right">
Source: <a href="https://bildungsurlaub-approval.com/info-educators/" target="_blank"
class="underline underline-offset-2">Bildungsurlaub approval</a>
</div>
</table>
Source: <a href="https://bildungsurlaub-approval.com/info-educators/" target="_blank"
class="underline underline-offset-2">Bildungsurlaub approval</a>
</div>

2 changes: 2 additions & 0 deletions app/components/schema/mermaid.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ stateDiagram-v2
state2 --> state3
state3 --> state4
```
<!-- mmdc -i app/components/schema/mermaid.md -o mermaid.md -->
<!-- https://github.com/mermaid-js/mermaid-cli -->
10 changes: 9 additions & 1 deletion app/routes/home/template.hbs
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
<div class="flex justify-center">
<div>
<img src="/mermaid.png" alt="schema to employed until eligibility for bildungsurlaub">
<img src="mermaid.png" alt="schema to employed until eligibility for bildungsurlaub">
</div>
</div>

TABLE OF content
{{!-- TODO --}}
- Definition
- Eligibility per state
- Entitlement per state
- How to apply for a Bildungsurlaub?
-- Request to your employer
-- Look for a Bildungsurlaub/school/education

<div>
<h2><b>TODO:</b></h2>
Expand Down
1 change: 1 addition & 0 deletions mermaid-1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions mermaid.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
### Scenario eligibility for Bildungsurlaub
![diagram](./mermaid-1.svg)

0 comments on commit 53eeb4d

Please sign in to comment.