From dbe504c8105f54eee930acb55e82b35159b65101 Mon Sep 17 00:00:00 2001 From: Florian Hoss Date: Mon, 18 Mar 2024 18:21:13 +0100 Subject: [PATCH] Remove parameter --- assets/css/tailwind.css | 3 +++ handlers/app.handlers.go | 2 +- views/home/home.templ | 6 +----- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/assets/css/tailwind.css b/assets/css/tailwind.css index a8d2078..f4edb12 100644 --- a/assets/css/tailwind.css +++ b/assets/css/tailwind.css @@ -18,6 +18,9 @@ .extra-sun-icon { @apply h-4 w-4 shrink-0 -mb-1 mr-2 text-primary; } + .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; + } .extra-info { @apply text-xs truncate text-secondary; } diff --git a/handlers/app.handlers.go b/handlers/app.handlers.go index e723274..24e8fcc 100644 --- a/handlers/app.handlers.go +++ b/handlers/app.handlers.go @@ -45,5 +45,5 @@ func (bh *AppHandler) appHandler(c echo.Context) error { titlePage := bh.env.Title - return renderView(c, home.HomeIndex(titlePage, bh.env.Version, bookmarks, staticSystem, liveSystem, weather, home.Home(titlePage, bookmarks, staticSystem, liveSystem, weather))) + return renderView(c, home.HomeIndex(titlePage, bh.env.Version, home.Home(titlePage, bookmarks, staticSystem, liveSystem, weather))) } diff --git a/views/home/home.templ b/views/home/home.templ index b994566..3cbd574 100644 --- a/views/home/home.templ +++ b/views/home/home.templ @@ -30,7 +30,7 @@ templ Home(title string, bookmarks *services.Bookmarks, static *services.StaticI } -
+
for _, l := range bookmarks.Links {
if l.Category != "" { @@ -51,10 +51,6 @@ templ Home(title string, bookmarks *services.Bookmarks, static *services.StaticI templ HomeIndex( title, version string, - bookmarks *services.Bookmarks, - static *services.StaticInformation, - live *services.LiveInformation, - weather *services.OpenWeather, cmp templ.Component, ) { @layout.Base(title, version) {