Overhaul of stylegen

This commit is contained in:
2025-03-23 03:23:45 -06:00
parent cff4c4715e
commit 2267706737
7 changed files with 224 additions and 51 deletions

View File

@ -8,9 +8,9 @@
<title>{{template "title" .}}</title>
<meta name="description" content="{{template "description" .}}">
<script defer src="https://analytics.atri.dad/script.js" data-website-id="0206740c-245f-402a-b433-125d6d48945a"></script>
<link href="/public/css/styles.css" rel="stylesheet" type="text/css" />
<link href="/public/css/daisyui.css" rel="stylesheet" type="text/css" />
<link href="/public/css/themes.css" rel="stylesheet" type="text/css" />
<link href="/public/css/styles.css" rel="stylesheet" type="text/css" />
{{template "head" .}}
</head>

View File

@ -9,19 +9,20 @@
<title>{{template "title" .}}</title>
<meta name="description" content="{{template "description" .}}">
<script defer src="https://analytics.atri.dad/script.js" data-website-id="0206740c-245f-402a-b433-125d6d48945a"></script>
<link href="/public/css/styles.css" rel="stylesheet" type="text/css" />
<link href="/public/css/daisyui.css" rel="stylesheet" type="text/css" />
<link href="/public/css/styles.css" rel="stylesheet" type="text/css" />
<link href="/public/css/themes.css" rel="stylesheet" type="text/css" />
<link href="/public/css/markdown.css" rel="stylesheet" type="text/css" />
{{template "head" .}}
</head>
<body class="block h-[100%]">
{{template "header" .}}
<main class="prose prose-invert mx-auto p-4">
<main class="mx-auto p-4 max-w-3xl">
<article>
<h1 class="title">{{.Name}}</h1>
<div class="flex flex-row flex-wrap gap-4">
<h1 class="mx-auto text-2xl sm:text-4xl font-bold tracking-tight text-center mb-4 max-w-[65ch]">{{.Name}}</h1>
<div class="flex flex-row flex-wrap justify-center gap-4 mb-6">
{{if .Date}}
<p>
<div class="flex flex-row flex-wrap items-center gap-1 text-md">
@ -74,9 +75,10 @@
Back
</a>
</div>
<hr />
{{template "main" .}}
<hr class="my-6 border-t border-white w-full max-w-2xl mx-auto" />
<div class="markdown text-left mx-auto max-w-2xl">
{{template "main" .}}
</div>
</article>
</main>
<script src="/public/js/htmx.base.js"></script>

View File

@ -31,7 +31,7 @@
role="button"
href={{.Href}}
aria-label={{.Name}}
class="btn btn-circle btn-base-100 text-primary hover:btn-accent hover:text-neutral"
class="btn btn-circle btn-base-100 btn-outline"
preload="mouseover"
>
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-arrow-right"><path d="M5 12h14"/><path d="m12 5 7 7-7 7"/></svg>
@ -41,7 +41,7 @@
role="button"
href={{.Href}}
aria-label={{.Name}}
class="btn btn-circle btn-base-100 text-primary hover:btn-accent hover:text-neutral"
class="btn btn-circle btn-base-100 btn-outline"
target="_blank"
rel="noopener noreferrer"
>