diff --git a/assets/css/tailwind.css b/assets/css/tailwind.css index 3d8d198..a8d2078 100644 --- a/assets/css/tailwind.css +++ b/assets/css/tailwind.css @@ -21,13 +21,10 @@ .extra-info { @apply text-xs truncate text-secondary; } - .grid-apps { - @apply grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 xl:grid-cols-6 gap-4 - } .hover-effect { - @apply no-underline md:hover:underline underline-offset-2 decoration-primary text-sm text-slate-700 dark:text-slate-300 hover:text-slate-900 dark:hover:text-slate-50 transition-all ease-linear duration-150 + @apply no-underline md:hover:underline underline-offset-2 decoration-primary text-sm text-slate-700 dark:text-slate-300 hover:text-slate-900 dark:hover:text-slate-50 transition-all ease-linear duration-150; } - .heading{ - @apply text-lg text-secondary select-none truncate underline decoration-primary underline-offset-4 + .heading { + @apply text-lg text-secondary select-none truncate underline decoration-primary underline-offset-4; } } diff --git a/components/application/application.templ b/components/application.templ similarity index 66% rename from components/application/application.templ rename to components/application.templ index b0835f0..06fdd79 100644 --- a/components/application/application.templ +++ b/components/application.templ @@ -1,11 +1,13 @@ -package application +package components -import "gitlab.unjx.de/flohoss/godash/services" -import "html/template" +import ( + "gitlab.unjx.de/flohoss/godash/services" + "html/template" +) var ImageTemplate = template.Must(template.New("bar").Parse("
")) -type Bar struct { +type Image struct { Background string Icon string } @@ -26,7 +28,13 @@ func backgroundColor(config string) string { templ Application(application services.Application) { - @templ.FromGoHTML(ImageTemplate, Bar{Background: backgroundColor(application.Background), Icon: application.Icon}) + @templ.FromGoHTML(ImageTemplate, Image{Background: backgroundColor(application.Background), Icon: application.Icon})