diff --git a/assets/img/alpinejs-mark.svg b/assets/img/alpinejs-mark.svg new file mode 100644 index 0000000..fe8a206 --- /dev/null +++ b/assets/img/alpinejs-mark.svg @@ -0,0 +1,11 @@ + + + Custom Preset 4 Copy 5 + + + + + + + + \ No newline at end of file diff --git a/assets/img/tailwindcss-mark.svg b/assets/img/tailwindcss-mark.svg new file mode 100644 index 0000000..6a9ab49 --- /dev/null +++ b/assets/img/tailwindcss-mark.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/img/templ-mark.svg b/assets/img/templ-mark.svg new file mode 100644 index 0000000..bfbc630 --- /dev/null +++ b/assets/img/templ-mark.svg @@ -0,0 +1,19 @@ + + + + + + + + + </> TEMPL + + \ No newline at end of file diff --git a/go.mod b/go.mod index df79a72..7cda0b9 100644 --- a/go.mod +++ b/go.mod @@ -4,6 +4,6 @@ go 1.23.3 require ( github.com/Oudwins/tailwind-merge-go v0.2.0 - github.com/a-h/templ v0.3.819 + github.com/a-h/templ v0.3.833 github.com/joho/godotenv v1.5.1 ) diff --git a/go.sum b/go.sum index ab767ca..234b0bd 100644 --- a/go.sum +++ b/go.sum @@ -1,9 +1,7 @@ github.com/Oudwins/tailwind-merge-go v0.2.0 h1:rtVHgYmLwwae4P+K6//ceRuUdyz3Bny6fo4664fOEmo= github.com/Oudwins/tailwind-merge-go v0.2.0/go.mod h1:kkZodgOPvZQ8f7SIrlWkG/w1g9JTbtnptnePIh3V72U= -github.com/a-h/templ v0.2.793 h1:Io+/ocnfGWYO4VHdR0zBbf39PQlnzVCVVD+wEEs6/qY= -github.com/a-h/templ v0.2.793/go.mod h1:lq48JXoUvuQrU0VThrK31yFwdRjTCnIE5bcPCM9IP1w= -github.com/a-h/templ v0.3.819 h1:KDJ5jTFN15FyJnmSmo2gNirIqt7hfvBD2VXVDTySckM= -github.com/a-h/templ v0.3.819/go.mod h1:iDJKJktpttVKdWoTkRNNLcllRI+BlpopJc+8au3gOUo= +github.com/a-h/templ v0.3.833 h1:L/KOk/0VvVTBegtE0fp2RJQiBm7/52Zxv5fqlEHiQUU= +github.com/a-h/templ v0.3.833/go.mod h1:cAu4AiZhtJfBjMY0HASlyzvkrtjnHWPeEsyGK2YYmfk= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= diff --git a/internal/ui/modules/sidebar_right.templ b/internal/ui/modules/sidebar_right.templ index c7f4537..7c58f0c 100644 --- a/internal/ui/modules/sidebar_right.templ +++ b/internal/ui/modules/sidebar_right.templ @@ -10,17 +10,17 @@ type SidebarRightLItem struct { var SidebarRightLinks = []SidebarRightLItem{ { - ImageSrc: "https://templ.guide/img/logo.svg", + ImageSrc: "/assets/img/templ-mark.svg", Url: "https://templ.guide", Text: "Elevate your Go projects with type-safe, efficient HTML templating.", }, { - ImageSrc: "https://alpinejs.dev/alpine_long.svg", + ImageSrc: "/assets/img/alpinejs-mark.svg", Url: "https://alpinejs.dev", Text: "Simplify your JavaScript with a lightweight, powerful framework.", }, { - ImageSrc: "https://tailwindcss.com/_next/static/media/tailwindcss-logotype-white.944c5d0ef628083bb316f9b3d643385c86bcdb3d.svg", + ImageSrc: "/assets/img/tailwindcss-mark.svg", Url: "https://tailwindcss.com", Text: "Create beautiful, responsive designs with ease.", }, @@ -58,3 +58,4 @@ templ SidebarRight() { } + diff --git a/internal/ui/pages/how_to_use.templ b/internal/ui/pages/how_to_use.templ index 8a556cc..72ec904 100644 --- a/internal/ui/pages/how_to_use.templ +++ b/internal/ui/pages/how_to_use.templ @@ -54,7 +54,7 @@ tailwind: dev: make -j3 templ server tailwind` -var tailwindConfig = `{/** @type {import('tailwindcss').Config} */ +var tailwindConfig = `/** @type {import('tailwindcss').Config} */ const config = { darkMode: ["class"], content: ["./**/*.html", "./**/*.templ", "./**/*.go"], @@ -236,10 +236,10 @@ templ HowToUse() { @components.Code(components.CodeProps{Language: "shell", ShowCopyButton: true}) { { installGo } } -

For installation instructions, visit golang.org/dl.

+

For installation instructions, visit golang.org/dl.

-

2. Templ (v0.3.819 or later)

+

2. Templ (v0.3.833 or later)

Install the Templ CLI:

@components.Code(components.CodeProps{Language: "shell", ShowCopyButton: true}) { { installTempl } @@ -386,7 +386,7 @@ templ HowToUse() {
  • Automated file watching and rebuilding
  • - The Makefile configuration is based on the Templ documentation and adapted for our use case. + The Makefile configuration is based on the Templ documentation and adapted for our use case. While there are many ways to set up your development environment, this configuration provides a solid starting point.

    @@ -441,7 +441,7 @@ templ HowToUse() {

    1. Quickstart Template (Recommended for new projects)

    - For a ready-to-go setup, check out our TemplUI Quickstart template. + For a ready-to-go setup, check out our TemplUI Quickstart template. It includes all requirements and configurations, using TemplUI as a package library by default but can be easily modified to use copied components or a mix of both approaches.

    @@ -525,9 +525,9 @@ templ HowToUse() { For advanced configuration and best practices, refer to the official documentation:

    Note: Our quickstart template includes recommended configurations for production use.

    @@ -545,3 +545,4 @@ templ HowToUse() { } } + diff --git a/internal/ui/pages/label.templ b/internal/ui/pages/label.templ index 210b5f2..ec4c5d2 100644 --- a/internal/ui/pages/label.templ +++ b/internal/ui/pages/label.templ @@ -16,9 +16,10 @@ templ Label() { Alpine: true, }) { @modules.ExampleWrapper(modules.ExampleWrapperProps{ - SectionName: "", - ShowcaseFile: showcase.CheckboxWithLabel(), - PreviewCodeFile: "checkbox_with_label.templ", + SectionName: "", + ShowcaseFile: showcase.CheckboxWithLabel(), + PreviewCodeFile: "checkbox_with_label.templ", + ComponentCodeFile: "label.templ", })
    @components.Card(components.CardProps{}) { @@ -60,3 +61,4 @@ templ Label() { } } } + diff --git a/pkg/components/accordion_templ.go b/pkg/components/accordion_templ.go index 520bea0..33e327d 100644 --- a/pkg/components/accordion_templ.go +++ b/pkg/components/accordion_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.3.819 +// templ: version: v0.3.833 package components //lint:file-ignore SA4006 This context is only used if a nested component is present. diff --git a/pkg/components/alert_templ.go b/pkg/components/alert_templ.go index 5e0267f..afa7212 100644 --- a/pkg/components/alert_templ.go +++ b/pkg/components/alert_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.3.819 +// templ: version: v0.3.833 package components //lint:file-ignore SA4006 This context is only used if a nested component is present. diff --git a/pkg/components/avatar_templ.go b/pkg/components/avatar_templ.go index a01050c..b14f581 100644 --- a/pkg/components/avatar_templ.go +++ b/pkg/components/avatar_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.3.819 +// templ: version: v0.3.833 package components //lint:file-ignore SA4006 This context is only used if a nested component is present. diff --git a/pkg/components/badge_templ.go b/pkg/components/badge_templ.go index 2332a05..8ccc5a3 100644 --- a/pkg/components/badge_templ.go +++ b/pkg/components/badge_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.3.819 +// templ: version: v0.3.833 package components //lint:file-ignore SA4006 This context is only used if a nested component is present. diff --git a/pkg/components/button_templ.go b/pkg/components/button_templ.go index 0a675ed..bbe19c8 100644 --- a/pkg/components/button_templ.go +++ b/pkg/components/button_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.3.819 +// templ: version: v0.3.833 package components //lint:file-ignore SA4006 This context is only used if a nested component is present. diff --git a/pkg/components/card_templ.go b/pkg/components/card_templ.go index cc46abf..4f76d16 100644 --- a/pkg/components/card_templ.go +++ b/pkg/components/card_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.3.819 +// templ: version: v0.3.833 package components //lint:file-ignore SA4006 This context is only used if a nested component is present. @@ -174,7 +174,7 @@ func CardImage(props CardImageProps) templ.Component { return templ_7745c5c3_Err } var templ_7745c5c3_Var7 string - templ_7745c5c3_Var7, templ_7745c5c3_Err = templ.JoinStringErrs("aspect-ratio: " + props.AspectRatio) + templ_7745c5c3_Var7, templ_7745c5c3_Err = templruntime.SanitizeStyleAttributeValues("aspect-ratio: " + props.AspectRatio) if templ_7745c5c3_Err != nil { return templ.Error{Err: templ_7745c5c3_Err, FileName: `pkg/components/card.templ`, Line: 70, Col: 47} } diff --git a/pkg/components/checkbox_templ.go b/pkg/components/checkbox_templ.go index f1d5242..c848640 100644 --- a/pkg/components/checkbox_templ.go +++ b/pkg/components/checkbox_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.3.819 +// templ: version: v0.3.833 package components //lint:file-ignore SA4006 This context is only used if a nested component is present. diff --git a/pkg/components/code_templ.go b/pkg/components/code_templ.go index bd03e76..422755d 100644 --- a/pkg/components/code_templ.go +++ b/pkg/components/code_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.3.819 +// templ: version: v0.3.833 package components //lint:file-ignore SA4006 This context is only used if a nested component is present. diff --git a/pkg/components/datepicker_templ.go b/pkg/components/datepicker_templ.go index 1113d3a..f2d9bda 100644 --- a/pkg/components/datepicker_templ.go +++ b/pkg/components/datepicker_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.3.819 +// templ: version: v0.3.833 package components //lint:file-ignore SA4006 This context is only used if a nested component is present. diff --git a/pkg/components/dropdown_menu_templ.go b/pkg/components/dropdown_menu_templ.go index 0eab622..afbacd4 100644 --- a/pkg/components/dropdown_menu_templ.go +++ b/pkg/components/dropdown_menu_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.3.819 +// templ: version: v0.3.833 package components //lint:file-ignore SA4006 This context is only used if a nested component is present. diff --git a/pkg/components/form_templ.go b/pkg/components/form_templ.go index fc0cfd8..93270eb 100644 --- a/pkg/components/form_templ.go +++ b/pkg/components/form_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.3.819 +// templ: version: v0.3.833 package components //lint:file-ignore SA4006 This context is only used if a nested component is present. diff --git a/pkg/components/input_templ.go b/pkg/components/input_templ.go index af7a50f..059b0e8 100644 --- a/pkg/components/input_templ.go +++ b/pkg/components/input_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.3.819 +// templ: version: v0.3.833 package components //lint:file-ignore SA4006 This context is only used if a nested component is present. diff --git a/pkg/components/label_templ.go b/pkg/components/label_templ.go index f1b6d01..faeab81 100644 --- a/pkg/components/label_templ.go +++ b/pkg/components/label_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.3.819 +// templ: version: v0.3.833 package components //lint:file-ignore SA4006 This context is only used if a nested component is present. diff --git a/pkg/components/modal_templ.go b/pkg/components/modal_templ.go index a66b6f4..ec794ee 100644 --- a/pkg/components/modal_templ.go +++ b/pkg/components/modal_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.3.819 +// templ: version: v0.3.833 package components //lint:file-ignore SA4006 This context is only used if a nested component is present. diff --git a/pkg/components/radio_templ.go b/pkg/components/radio_templ.go index 4fc9e93..8d8e219 100644 --- a/pkg/components/radio_templ.go +++ b/pkg/components/radio_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.3.819 +// templ: version: v0.3.833 package components //lint:file-ignore SA4006 This context is only used if a nested component is present. diff --git a/pkg/components/select_templ.go b/pkg/components/select_templ.go index 762d9ec..163e95a 100644 --- a/pkg/components/select_templ.go +++ b/pkg/components/select_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.3.819 +// templ: version: v0.3.833 package components //lint:file-ignore SA4006 This context is only used if a nested component is present. diff --git a/pkg/components/sheet_templ.go b/pkg/components/sheet_templ.go index 6fe5a2f..482b12f 100644 --- a/pkg/components/sheet_templ.go +++ b/pkg/components/sheet_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.3.819 +// templ: version: v0.3.833 package components //lint:file-ignore SA4006 This context is only used if a nested component is present. diff --git a/pkg/components/slider_templ.go b/pkg/components/slider_templ.go index d652317..02d650f 100644 --- a/pkg/components/slider_templ.go +++ b/pkg/components/slider_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.3.819 +// templ: version: v0.3.833 package components //lint:file-ignore SA4006 This context is only used if a nested component is present. diff --git a/pkg/components/tabs_templ.go b/pkg/components/tabs_templ.go index 1c18623..a52280b 100644 --- a/pkg/components/tabs_templ.go +++ b/pkg/components/tabs_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.3.819 +// templ: version: v0.3.833 package components //lint:file-ignore SA4006 This context is only used if a nested component is present. diff --git a/pkg/components/textarea_templ.go b/pkg/components/textarea_templ.go index c82486a..e8377ad 100644 --- a/pkg/components/textarea_templ.go +++ b/pkg/components/textarea_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.3.819 +// templ: version: v0.3.833 package components //lint:file-ignore SA4006 This context is only used if a nested component is present. diff --git a/pkg/components/timepicker_templ.go b/pkg/components/timepicker_templ.go index 71767d7..84fc234 100644 --- a/pkg/components/timepicker_templ.go +++ b/pkg/components/timepicker_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.3.819 +// templ: version: v0.3.833 package components //lint:file-ignore SA4006 This context is only used if a nested component is present. diff --git a/pkg/components/toast_templ.go b/pkg/components/toast_templ.go index cd8277d..fbd53df 100644 --- a/pkg/components/toast_templ.go +++ b/pkg/components/toast_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.3.819 +// templ: version: v0.3.833 package components //lint:file-ignore SA4006 This context is only used if a nested component is present. diff --git a/pkg/components/toggle_templ.go b/pkg/components/toggle_templ.go index 3239331..1a324cf 100644 --- a/pkg/components/toggle_templ.go +++ b/pkg/components/toggle_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.3.819 +// templ: version: v0.3.833 package components //lint:file-ignore SA4006 This context is only used if a nested component is present. diff --git a/pkg/components/tooltip_templ.go b/pkg/components/tooltip_templ.go index c610ec0..704bb9b 100644 --- a/pkg/components/tooltip_templ.go +++ b/pkg/components/tooltip_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.3.819 +// templ: version: v0.3.833 package components //lint:file-ignore SA4006 This context is only used if a nested component is present. diff --git a/pkg/helpers/helpers_templ.go b/pkg/helpers/helpers_templ.go index a40908c..f37c8b9 100644 --- a/pkg/helpers/helpers_templ.go +++ b/pkg/helpers/helpers_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.3.819 +// templ: version: v0.3.833 package helpers //lint:file-ignore SA4006 This context is only used if a nested component is present.