build color, font, and size lists

This commit is contained in:
Gavin McDonald
2025-05-04 18:04:43 -04:00
parent e0835dce6c
commit 8cd5f11b23
2 changed files with 17 additions and 17 deletions

View File

@@ -1,5 +1,6 @@
defmodule LabelmakerWeb.Label do
use LabelmakerWeb, :live_view
alias LabelmakerWeb.Constants
@label_dir Path.join(:code.priv_dir(:labelmaker), "static/labels")
File.mkdir_p!(@label_dir)
@@ -40,6 +41,12 @@ defmodule LabelmakerWeb.Label do
end
def render(assigns) do
IO.inspect(Constants.color_count())
IO.inspect(Constants.colors())
IO.inspect(Constants.font_count())
IO.inspect(Constants.fonts())
~H"""
<div>
<h1>Label: {@label}</h1>