feat: dark mode switch and svg logo

This commit is contained in:
Itsigo committed 2024-04-15 17:27:44 +02:00
1 parent b0b9af408f
commit dd548e36a3
8 files changed
+282 -43

No files matched your search

+9 -4
View File
@@ -70,7 +70,10 @@ templ Show(hx bool, td TrackerData) {
@Mana(md)
</div>
</div>
<button type="button" hx-get="/hp-mana-tracker/reset" hx-target="main" hx-swap="innerHTML">Reset</button>
<details>
<summary>Extras</summary>
<button type="button" hx-get="/hp-mana-tracker/reset" hx-target="main" hx-swap="innerHTML">Reset</button>
</details>
</div>
}
}
@@ -169,9 +172,11 @@ templ Hp(dd DamageData) {
}
<fieldset>
<label for="savingthrow">
<input id="savingthrow" name="savingthrow" type="checkbox" role="switch" if dd.SavingThrow !="" {
checked
}/>
<input id="savingthrow" name="savingthrow" type="checkbox" role="switch"
if dd.SavingThrow != "" {
checked
}
/>
Verteidigungswurf
</label>
</fieldset>