From accd293f9d11a7af5341a4232dfa6686294b1188 Mon Sep 17 00:00:00 2001 From: vovastelmashchuk Date: Tue, 1 Oct 2024 21:59:24 +0300 Subject: [PATCH] add create button podcast and small ui fix --- src/public/styles.css | 16 ++++++++++++++++ src/routers/admin/dashboard.js | 3 +++ src/styles.css | 4 ++++ src/templates/layouts/admin.html | 11 +++++++++-- .../pages/admin/admin_podcast_list.html | 2 ++ src/templates/pages/podcastDetails.html | 2 +- src/templates/widgets/btn_create_podcast.html | 4 ++++ 7 files changed, 39 insertions(+), 3 deletions(-) create mode 100644 src/templates/widgets/btn_create_podcast.html diff --git a/src/public/styles.css b/src/public/styles.css index 134d053..ce01d4b 100644 --- a/src/public/styles.css +++ b/src/public/styles.css @@ -710,6 +710,10 @@ input { margin-top: 1rem; } +.mt-auto { + margin-top: auto; +} + .line-clamp-3 { overflow: hidden; display: -webkit-box; @@ -764,6 +768,10 @@ input { height: 100%; } +.min-h-screen { + min-height: 100vh; +} + .w-1\/2 { width: 50%; } @@ -796,6 +804,10 @@ input { flex: 1 1 0%; } +.flex-grow { + flex-grow: 1; +} + .cursor-pointer { cursor: pointer; } @@ -1090,6 +1102,10 @@ html { overflow-y: scroll; } +html, body { + height: 100%; +} + .selected { --tw-bg-opacity: 1; background-color: rgb(34 197 94 / var(--tw-bg-opacity)); diff --git a/src/routers/admin/dashboard.js b/src/routers/admin/dashboard.js index 0a91f6a..17083d8 100644 --- a/src/routers/admin/dashboard.js +++ b/src/routers/admin/dashboard.js @@ -44,6 +44,9 @@ async function adminPodcastList(request, h) { { pageTitle: pageTitle, posts: uiPosts, + createPodcastButton: { + title: 'Create Podcast', + } }, { layout: 'admin' diff --git a/src/styles.css b/src/styles.css index dfd0cdb..4765de6 100644 --- a/src/styles.css +++ b/src/styles.css @@ -45,6 +45,10 @@ html { @apply overflow-y-scroll; } +html, body { + height: 100%; +} + .selected { @apply bg-green-500 text-white; } diff --git a/src/templates/layouts/admin.html b/src/templates/layouts/admin.html index d6e6f60..c328771 100644 --- a/src/templates/layouts/admin.html +++ b/src/templates/layouts/admin.html @@ -8,11 +8,18 @@ - + {{> admin_head}} -
+ +
{{{ content }}}
+ +
+ +
+

© 2024 DIY podcast hosting

+
diff --git a/src/templates/pages/admin/admin_podcast_list.html b/src/templates/pages/admin/admin_podcast_list.html index 6fe1d8a..d75ee23 100644 --- a/src/templates/pages/admin/admin_podcast_list.html +++ b/src/templates/pages/admin/admin_podcast_list.html @@ -1,3 +1,5 @@ +{{> btn_create_podcast createPodcastButton}} +