diff --git a/doc/TechnicalSpecification.md b/doc/TechnicalSpecification.md index 0ad9d2f..0a2ed9e 100644 --- a/doc/TechnicalSpecification.md +++ b/doc/TechnicalSpecification.md @@ -41,20 +41,20 @@ well as view lists of recently made recipes, recently viewed and trending recipe - [x] Welcome Banner - [x] Video display with large text overhead - [x] Sub text below the video with a "Call to Action" - - [ ] Interactive banner that can be hidden with a "Got it!" or "X" + - [ ] ~Interactive banner that can be hidden with a "Got it!" or "X"~ -- [ ] Message & Pills Banner - - [ ] Message with text like "Craving Something Specific?" - - [ ] Pill buttons below which allow for a direct search for meal type +- [x] Message & Pills Banner + - [x] Message with text like "Craving Something Specific?" + - [ ] ~Pill buttons below which allow for a direct search for meal type~ -- [ ] Search bar - - [ ] Ability to search for recipes, meals, and tags +- [x] Search bar + - [x] Ability to search for recipes, meals, and tags -- [ ] Filter drop down - - [ ] **Filter by meal** - *E_Meal enum type* - - [ ] **Filter by time requirements** - *15min, 30min, 1hr, 1.5hr, +1.5hr* - - [ ] **Filter by difficulty** - *1 to 5 stars* - - [ ] **Filter by serving size** - *1 to 16* +- [x] Filter drop down + - [x] **Filter by meal** - *E_Meal enum type* + - [x] **Filter by time requirements** - *15min, 30min, 1hr, 1.5hr, +1.5hr* + - [x] **Filter by difficulty** - *1 to 5 stars* + - [x] **Filter by serving size** - *1 to 16* - [x] Recipe of The Week - [x] **Single recipe display** of the best performing recipe, with spotlight effect diff --git a/internal/templates/components/banner.templ b/internal/templates/components/banner.templ new file mode 100644 index 0000000..997106b --- /dev/null +++ b/internal/templates/components/banner.templ @@ -0,0 +1,7 @@ +package components + +templ BannerText(content string) { +
+ { author } +
++ { meal } +
+ @likeButton(liked) ++ Hayden Hargreaves +
++ Avocado toast is a delicious and simple breakfast, snack or light meal! Learn how to + make the BEST avocado toast with this recipe, plus fun variations. + Avocado toast is a delicious and simple breakfast, snack or light meal! Learn how to + make the BEST avocado toast with this recipe, plus fun variations. + Avocado toast is a delicious and simple breakfast, snack or light meal! Learn how to + make the BEST avocado toast with this recipe, plus fun variations. +
++ Breakfast - 15 min +
+ @likeButton(liked) +") + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + var templ_7745c5c3_Var4 string + templ_7745c5c3_Var4, templ_7745c5c3_Err = templ.JoinStringErrs(author) + if templ_7745c5c3_Err != nil { + return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/templates/components/cards.templ`, Line: 28, Col: 14} + } + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var4)) + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 7, "
") + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + var templ_7745c5c3_Var5 string + templ_7745c5c3_Var5, templ_7745c5c3_Err = templ.JoinStringErrs(meal) + if templ_7745c5c3_Err != nil { + return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/templates/components/cards.templ`, Line: 32, Col: 14} + } + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var5)) + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 8, "
") + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + templ_7745c5c3_Err = likeButton(liked).Render(ctx, templ_7745c5c3_Buffer) + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 9, "Hayden Hargreaves
Avocado toast is a delicious and simple breakfast, snack or light meal! Learn how to make the BEST avocado toast with this recipe, plus fun variations. Avocado toast is a delicious and simple breakfast, snack or light meal! Learn how to make the BEST avocado toast with this recipe, plus fun variations. Avocado toast is a delicious and simple breakfast, snack or light meal! Learn how to make the BEST avocado toast with this recipe, plus fun variations.
Breakfast - 15 min
") + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + templ_7745c5c3_Err = likeButton(liked).Render(ctx, templ_7745c5c3_Buffer) + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 11, "Our 'Recipe of the Week' is the cream of the crop! We handpick it by looking at what recipes our community loves most. This isn't just about how many people view a recipe; it's also about @@ -95,101 +75,32 @@ templ highlightSection(liked bool) { resonate with our users!
- Hayden Hargreaves -
-- Avocado toast is a delicious and simple breakfast, snack or light meal! Learn how to - make the BEST avocado toast with this recipe, plus fun variations. - Avocado toast is a delicious and simple breakfast, snack or light meal! Learn how to - make the BEST avocado toast with this recipe, plus fun variations. - Avocado toast is a delicious and simple breakfast, snack or light meal! Learn how to - make the BEST avocado toast with this recipe, plus fun variations. -
-- Breakfast - 15 min -
- @likeButton(liked) -- { author } -
-- { meal } -
- @likeButton(liked) -