From d22f9a7ff3f865fd4fb26bef700adfe6dbba603f Mon Sep 17 00:00:00 2001 From: Hayden Hargreaves Date: Wed, 20 Aug 2025 21:33:21 -0700 Subject: [PATCH] (FIX): Added directions for create page. It was brought to my attention that the menu was hard to understand. Now there are some simple directions. --- internal/templates/components/banner_templ.go | 2 +- internal/templates/components/cards_templ.go | 2 +- .../templates/components/dropdowns_templ.go | 2 +- internal/templates/components/navbar_templ.go | 2 +- .../templates/components/search_bar_templ.go | 2 +- .../templates/layouts/app_layout_templ.go | 2 +- internal/templates/pages/create.templ | 51 +++++++++++++++---- internal/templates/pages/create_templ.go | 8 +-- internal/templates/pages/favorites_templ.go | 2 +- internal/templates/pages/home_templ.go | 2 +- internal/templates/pages/list_templ.go | 2 +- internal/templates/pages/login_templ.go | 2 +- internal/templates/pages/notFound_templ.go | 2 +- internal/templates/pages/profile_templ.go | 2 +- internal/templates/pages/recipe_templ.go | 2 +- internal/templates/pages/search_templ.go | 2 +- web/static/css/tailwind.css | 12 +++-- 17 files changed, 68 insertions(+), 31 deletions(-) diff --git a/internal/templates/components/banner_templ.go b/internal/templates/components/banner_templ.go index 39dd247..9c9d198 100644 --- a/internal/templates/components/banner_templ.go +++ b/internal/templates/components/banner_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.3.924 +// templ: version: v0.3.937 package components //lint:file-ignore SA4006 This context is only used if a nested component is present. diff --git a/internal/templates/components/cards_templ.go b/internal/templates/components/cards_templ.go index e5a7372..da80511 100644 --- a/internal/templates/components/cards_templ.go +++ b/internal/templates/components/cards_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.3.924 +// templ: version: v0.3.937 package components //lint:file-ignore SA4006 This context is only used if a nested component is present. diff --git a/internal/templates/components/dropdowns_templ.go b/internal/templates/components/dropdowns_templ.go index 7f1c7d8..b73df5a 100644 --- a/internal/templates/components/dropdowns_templ.go +++ b/internal/templates/components/dropdowns_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.3.924 +// templ: version: v0.3.937 package components //lint:file-ignore SA4006 This context is only used if a nested component is present. diff --git a/internal/templates/components/navbar_templ.go b/internal/templates/components/navbar_templ.go index 42f7a39..2365195 100644 --- a/internal/templates/components/navbar_templ.go +++ b/internal/templates/components/navbar_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.3.924 +// templ: version: v0.3.937 package components //lint:file-ignore SA4006 This context is only used if a nested component is present. diff --git a/internal/templates/components/search_bar_templ.go b/internal/templates/components/search_bar_templ.go index b67bc8d..958d685 100644 --- a/internal/templates/components/search_bar_templ.go +++ b/internal/templates/components/search_bar_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.3.924 +// templ: version: v0.3.937 package components //lint:file-ignore SA4006 This context is only used if a nested component is present. diff --git a/internal/templates/layouts/app_layout_templ.go b/internal/templates/layouts/app_layout_templ.go index e5cff7f..8e40f3e 100644 --- a/internal/templates/layouts/app_layout_templ.go +++ b/internal/templates/layouts/app_layout_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.3.924 +// templ: version: v0.3.937 package templates //lint:file-ignore SA4006 This context is only used if a nested component is present. diff --git a/internal/templates/pages/create.templ b/internal/templates/pages/create.templ index 309f40c..c0fc7ae 100644 --- a/internal/templates/pages/create.templ +++ b/internal/templates/pages/create.templ @@ -32,10 +32,13 @@ templ Page() { hx-encoding="multipart/form-data" >
-
-

Please provide a unique title for your recipe. This is the most important part!

Please enter a title. Between 1-128 characters.

Please provide a description for your recipe. This can be short and sweet or long and detailed!

Please enter a description. Between 1-1000 characters.

Please provide a list of tags. e.g., easy, dairy-free, gluten-free, high protein.

    Please enter a time (minutes).

    Please enter a time (minutes).

    Please enter a serving size.

    Please select a category.

    Please select a difficulty.

    • Please enter at least one ingredient.

      Please provide a quantity.

    Please enter at least one step.

    ") + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 5, "\" maxlength=\"32\" hx-trigger=\"keyup[keyCode==13]\" hx-on::after-request=\"this.value=''\" hx-swap=\"innerHTML\" hx-target=\"#tag-list\" enterkeyhint=\"done\" type=\"text\" id=\"tag\" name=\"tag\" placeholder=\"e.g., Healthy\">

    Please provide the estimated prep time (minutes).

    Please enter a time (minutes).

    Please provide the estimated cook time (minutes).

    Please enter a time (minutes).

    Please provide the estimated serving size.

    Please enter a serving size.

    Please provide the meal category.

    Please select a category.

    Please provide a baseline difficulty.

    Please select a difficulty.

    Please provide a list of ingredients and their quantities.

    Please provide a list of instructions. You do not need to include step number, they will be added automatically!

    Please enter at least one step.

    Please provide an image of your creation. This is optional but is a nice touch!

    ") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } diff --git a/internal/templates/pages/favorites_templ.go b/internal/templates/pages/favorites_templ.go index 4fbb7ed..7788752 100644 --- a/internal/templates/pages/favorites_templ.go +++ b/internal/templates/pages/favorites_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.3.924 +// templ: version: v0.3.937 package templates //lint:file-ignore SA4006 This context is only used if a nested component is present. diff --git a/internal/templates/pages/home_templ.go b/internal/templates/pages/home_templ.go index 668a9e5..eb134b0 100644 --- a/internal/templates/pages/home_templ.go +++ b/internal/templates/pages/home_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.3.924 +// templ: version: v0.3.937 package templates //lint:file-ignore SA4006 This context is only used if a nested component is present. diff --git a/internal/templates/pages/list_templ.go b/internal/templates/pages/list_templ.go index 8bc3a18..9218f27 100644 --- a/internal/templates/pages/list_templ.go +++ b/internal/templates/pages/list_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.3.924 +// templ: version: v0.3.937 package templates //lint:file-ignore SA4006 This context is only used if a nested component is present. diff --git a/internal/templates/pages/login_templ.go b/internal/templates/pages/login_templ.go index 8fbefb8..1c378a8 100644 --- a/internal/templates/pages/login_templ.go +++ b/internal/templates/pages/login_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.3.924 +// templ: version: v0.3.937 package templates //lint:file-ignore SA4006 This context is only used if a nested component is present. diff --git a/internal/templates/pages/notFound_templ.go b/internal/templates/pages/notFound_templ.go index e4723dd..a94b872 100644 --- a/internal/templates/pages/notFound_templ.go +++ b/internal/templates/pages/notFound_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.3.924 +// templ: version: v0.3.937 package templates //lint:file-ignore SA4006 This context is only used if a nested component is present. diff --git a/internal/templates/pages/profile_templ.go b/internal/templates/pages/profile_templ.go index b3ac659..7b8b061 100644 --- a/internal/templates/pages/profile_templ.go +++ b/internal/templates/pages/profile_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.3.924 +// templ: version: v0.3.937 package templates //lint:file-ignore SA4006 This context is only used if a nested component is present. diff --git a/internal/templates/pages/recipe_templ.go b/internal/templates/pages/recipe_templ.go index a3e403b..8f60f3e 100644 --- a/internal/templates/pages/recipe_templ.go +++ b/internal/templates/pages/recipe_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.3.924 +// templ: version: v0.3.937 package templates //lint:file-ignore SA4006 This context is only used if a nested component is present. diff --git a/internal/templates/pages/search_templ.go b/internal/templates/pages/search_templ.go index 275bd90..80f9942 100644 --- a/internal/templates/pages/search_templ.go +++ b/internal/templates/pages/search_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.3.924 +// templ: version: v0.3.937 package templates //lint:file-ignore SA4006 This context is only used if a nested component is present. diff --git a/web/static/css/tailwind.css b/web/static/css/tailwind.css index fe3d6ea..f7bd052 100644 --- a/web/static/css/tailwind.css +++ b/web/static/css/tailwind.css @@ -1,4 +1,4 @@ -/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */ +/*! tailwindcss v4.1.12 | MIT License | https://tailwindcss.com */ @layer properties; @layer theme, base, components, utilities; @layer theme { @@ -204,6 +204,9 @@ ::-webkit-datetime-edit, ::-webkit-datetime-edit-year-field, ::-webkit-datetime-edit-month-field, ::-webkit-datetime-edit-day-field, ::-webkit-datetime-edit-hour-field, ::-webkit-datetime-edit-minute-field, ::-webkit-datetime-edit-second-field, ::-webkit-datetime-edit-millisecond-field, ::-webkit-datetime-edit-meridiem-field { padding-block: 0; } + ::-webkit-calendar-picker-indicator { + line-height: 1; + } :-moz-ui-invalid { box-shadow: none; } @@ -748,6 +751,9 @@ .py-8 { padding-block: calc(var(--spacing) * 8); } + .pt-1 { + padding-top: calc(var(--spacing) * 1); + } .pt-2 { padding-top: calc(var(--spacing) * 2); } @@ -757,8 +763,8 @@ .pb-1 { padding-bottom: calc(var(--spacing) * 1); } - .pl-4 { - padding-left: calc(var(--spacing) * 4); + .pb-2 { + padding-bottom: calc(var(--spacing) * 2); } .pl-10 { padding-left: calc(var(--spacing) * 10);