chore: consistent styling

This commit is contained in:
Per Stark
2025-02-01 10:13:35 +01:00
parent a9ad904063
commit bdbb23d839
5 changed files with 62 additions and 1267 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -17,10 +17,10 @@
<li>
<details>
<summary>Account</summary>
<ul class="bg-base-100 rounded-t-none p-2">
<li><a hx-boost="true" class="" href="/account">Account</a></li>
<ul class="bg-base-100 rounded-t-none p-2 z-50">
<li><a hx-boost="true" href="/account">Account</a></li>
{% if user.admin %}
<li><a hx-boost="true" class="" href="/admin">Admin</a></li>
<li><a hx-boost="true" href="/admin">Admin</a></li>
{% endif %}
<li><a hx-boost="true" href="/signout">Sign out</a></li>
</ul>

View File

@@ -1,7 +1,5 @@
<div class="card shadow mt-4">
<div class="card-body">
<div class="flex gap-4">
<button class="btn btn-primary" hx-get="/ingress-form" hx-swap="outerHTML">Add Content</button>
</div>
<div class="p-4 shadow mt-4 rounded-box">
<div class="flex gap-4">
<button class="btn btn-primary" hx-get="/ingress-form" hx-swap="outerHTML">Add Content</button>
</div>
</div>

View File

@@ -1,13 +1,10 @@
<div class="">
<!-- <div class="card bg-base-100 shadow-xl"> -->
<div class="card-body">
<h2 class="card-title">
Search your content
</h2>
<input type="text" placeholder="Search your knowledge base" class="input input-bordered w-full" name="query"
hx-get="/search" hx-target="#search-results" />
<div id="search-results" class="mt-4">
<!-- Results will be populated here by HTMX -->
</div>
<div class="p-4 shadow rounded-box">
<h2>
Search your content
</h2>
<input type="text" placeholder="Search your knowledge base" class="input input-bordered w-full" name="query"
hx-get="/search" hx-target="#search-results" />
<div id="search-results" class="mt-4">
<!-- Results will be populated here by HTMX -->
</div>
</div>

View File

@@ -18,8 +18,8 @@
<div class="form-control">
<label class="floating-label">
<span>Category</span>
<input type="text" name="category" class="input input-bordered validator w-full"
placeholder="Category for ingress" value="{{ category }}" list="category-list" required />
<input type="text" name="category" class="input input-bordered validator w-full" value="{{ category }}"
list="category-list" required />
<datalist id="category-list">
{% for category in user_categories %}
<option value="{{ category }}" />