persist selections to Local Storage

This commit is contained in:
Gavin McDonald
2025-05-13 10:10:19 -04:00
parent 0bd39683ff
commit e6b9ed1c5d
2 changed files with 52 additions and 13 deletions

View File

@@ -74,7 +74,7 @@ defmodule LabelmakerWeb.Home do
</div>
<div class="flex flex-row justify-between" style="margin-top: 5px;">
<p class="text-xs text-gray-600 dark:text-gray-400 m-0 ml-1">
Note: not all fonts are available for preview.
Note: not all fonts and colors are available for preview.
</p>
<div class="flex flex-row gap-1">
<div
@@ -99,7 +99,13 @@ defmodule LabelmakerWeb.Home do
</div>
</div>
<form phx-change="update_label" phx-submit="make_label" class="space-y-4">
<form
id="labelmaker"
phx-hook="PersistData"
phx-change="update_label"
phx-submit="make_label"
class="space-y-4"
>
<div>
<label for="label" class="block text-sm font-medium">Label</label>
<input