forked from tangled.org/core
Monorepo for Tangled — https://tangled.org

Header and footer background is full page width

Signed-off-by: Jens Rømer Hesselbjerg <jh.roemer@gmail.com>

Changed files
+14 -13
appview
pages
templates
layouts
+11 -10
appview/pages/templates/layouts/base.html
··· 21 21 <title>{{ block "title" . }}{{ end }} · tangled</title> 22 22 {{ block "extrameta" . }}{{ end }} 23 23 </head> 24 - <body class="min-h-screen grid grid-cols-1 grid-rows-[min-content_auto_min-content] gap-4 bg-slate-100 dark:bg-gray-900 dark:text-white transition-colors duration-200" 25 - style="grid-template-columns: minmax(1rem, 1fr) minmax(auto, 1024px) minmax(1rem, 1fr);"> 24 + <body class="min-h-screen flex flex-col gap-4 bg-slate-100 dark:bg-gray-900 dark:text-white transition-colors duration-200"> 26 25 {{ block "topbarLayout" . }} 27 - <header class="px-1 col-span-full md:col-span-1 md:col-start-2" style="z-index: 20;"> 26 + <header class="w-full bg-white dark:bg-gray-800 col-span-full md:col-span-1 md:col-start-2" style="z-index: 20;"> 28 27 29 28 {{ if .LoggedInUser }} 30 29 <div id="upgrade-banner" ··· 38 37 {{ end }} 39 38 40 39 {{ block "mainLayout" . }} 41 - <div class="px-1 col-span-full md:col-span-1 md:col-start-2 flex flex-col gap-4"> 42 - {{ block "contentLayout" . }} 40 + <div class="flex-grow"> 41 + <div class="max-w-screen-lg px-4 mx-auto my-6 flex flex-col gap-4"> 42 + {{ block "contentLayout" . }} 43 43 <main> 44 44 {{ block "content" . }}{{ end }} 45 45 </main> 46 - {{ end }} 47 - 48 - {{ block "contentAfterLayout" . }} 46 + {{ end }} 47 + 48 + {{ block "contentAfterLayout" . }} 49 49 <main> 50 50 {{ block "contentAfter" . }}{{ end }} 51 51 </main> 52 - {{ end }} 52 + {{ end }} 53 + </div> 53 54 </div> 54 55 {{ end }} 55 56 56 57 {{ block "footerLayout" . }} 57 - <footer class="px-1 col-span-full md:col-span-1 md:col-start-2 mt-12"> 58 + <footer class="bg-white dark:bg-gray-800 mt-12"> 58 59 {{ template "layouts/fragments/footer" . }} 59 60 </footer> 60 61 {{ end }}
+2 -2
appview/pages/templates/layouts/fragments/footer.html
··· 1 1 {{ define "layouts/fragments/footer" }} 2 - <div class="w-full p-4 md:p-8 bg-white dark:bg-gray-800 rounded-t drop-shadow-sm"> 3 - <div class="container mx-auto max-w-7xl px-4"> 2 + <div class="w-full p-8"> 3 + <div class="max-w-screen-lg mx-auto px-4"> 4 4 <div class="flex flex-col lg:flex-row justify-between items-start text-gray-600 dark:text-gray-400 text-sm gap-8"> 5 5 <div class="mb-4 md:mb-0"> 6 6 <a href="/" hx-boost="true" class="flex gap-2 font-semibold italic no-underline hover:no-underline">
+1 -1
appview/pages/templates/layouts/fragments/topbar.html
··· 1 1 {{ define "layouts/fragments/topbar" }} 2 - <nav class="space-x-4 px-6 py-2 rounded-b bg-white dark:bg-gray-800 dark:text-white drop-shadow-sm"> 2 + <nav class="max-w-screen-lg mx-auto space-x-4 px-6 py-2 rounded-b dark:text-white drop-shadow-sm"> 3 3 <div class="flex justify-between p-0 items-center"> 4 4 <div id="left-items"> 5 5 <a href="/" hx-boost="true" class="text-2xl no-underline hover:no-underline flex items-center gap-2">