mirror of
https://github.com/perstarkse/minne.git
synced 2026-04-19 23:41:22 +02:00
frontend styling and misc fixes
This commit is contained in:
9
templates/index/signed_in/base.html
Normal file
9
templates/index/signed_in/base.html
Normal file
@@ -0,0 +1,9 @@
|
||||
<div class="flex justify-center grow mt-2 sm:mt-4 gap-6">
|
||||
<div class="container">
|
||||
{% include 'index/signed_in/searchbar.html' %}
|
||||
|
||||
{% include "index/signed_in/recent_content.html" %}
|
||||
|
||||
{% include "index/signed_in/quick_actions.html" %}
|
||||
</div>
|
||||
</div>
|
||||
7
templates/index/signed_in/quick_actions.html
Normal file
7
templates/index/signed_in/quick_actions.html
Normal file
@@ -0,0 +1,7 @@
|
||||
<div class="card bg-base-100 shadow-xl mt-4">
|
||||
<div class="card-body">
|
||||
<div class="flex gap-4">
|
||||
<a class="btn btn-primary" hx-get="/ingress-form" hx-swap="outerHTML">Add Content</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
20
templates/index/signed_in/recent_content.html
Normal file
20
templates/index/signed_in/recent_content.html
Normal file
@@ -0,0 +1,20 @@
|
||||
<div class="card bg-base-100 shadow-xl mt-4">
|
||||
<div class="card-body">
|
||||
<h2 class="card-title">Recently Added Content</h2>
|
||||
<ul class="list bg-base-100 rounded-box shadow-md">
|
||||
|
||||
<li class="list-row">
|
||||
<div><img class="size-10 rounded-box" src="https://img.daisyui.com/images/profile/demo/1@94.webp" /></div>
|
||||
<div>
|
||||
<div>Dio Lupa</div>
|
||||
<div class="text-xs uppercase font-semibold opacity-60">Remaining Reason</div>
|
||||
</div>
|
||||
<button class="btn btn-outline">
|
||||
Edit
|
||||
</button>
|
||||
<button class="btn btn-error">
|
||||
Delete </button>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
13
templates/index/signed_in/searchbar.html
Normal file
13
templates/index/signed_in/searchbar.html
Normal file
@@ -0,0 +1,13 @@
|
||||
<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>
|
||||
</div>
|
||||
Reference in New Issue
Block a user