This commit is contained in:
Alex Lion
2025-08-06 22:04:31 +02:00
parent 4d340c76e1
commit 17da89a0f3
3 changed files with 16 additions and 27 deletions

View File

@@ -1,5 +1,5 @@
<!-- Header -->
<div class="mb-8">
<div class="mb-24">
<h1 class="text-3xl font-bold">Dashboard</h1>
</div>

View File

@@ -1,9 +1,9 @@
<%= case @live_action do %>
<% :index -> %>
<div class="py-6" phx-hook="CSVDownloader" id="event-list">
<div phx-hook="CSVDownloader" id="event-list">
<div>
<div class="flex justify-between items-center">
<h1 class="text-2xl font-semibold text-gray-900">Events</h1>
<div class="flex justify-between items-center mb-24">
<h1 class="text-3xl font-bold">Events</h1>
<div class="flex space-x-3">
<.link navigate={~p"/admin/events/new"} class="btn btn-primary btn-sm">
<svg
@@ -234,10 +234,10 @@
</div>
</div>
<% :show -> %>
<div class="py-6">
<div>
<div>
<div class="flex justify-between items-center">
<h1 class="text-2xl font-semibold text-gray-900">Event Details</h1>
<div class="flex justify-between items-center mb-24">
<h1 class="text-3xl font-bold">Event details</h1>
<div class="flex gap-3">
<.link navigate={~p"/admin/events"} class="btn btn-outline btn-sm">
Back to Events
@@ -306,10 +306,10 @@
</div>
</div>
<% :new -> %>
<div class="py-6">
<div>
<div>
<div class="flex justify-between items-center">
<h1 class="text-2xl font-semibold text-gray-900">New Event</h1>
<h1 class="text-3xl font-bold">New event</h1>
</div>
</div>
@@ -329,10 +329,10 @@
</div>
</div>
<% :edit -> %>
<div class="py-6">
<div>
<div>
<div class="flex justify-between items-center">
<h1 class="text-2xl font-semibold text-gray-900">Edit Event</h1>
<h1 class="text-3xl font-bold">Edit event</h1>
</div>
</div>

View File

@@ -41,21 +41,7 @@
</div>
<div class="flex-1">
<a href={~p"/admin"} class="btn btn-ghost normal-case text-xl">
<svg class="w-6 h-6 mr-2" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"
/>
<path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"
/>
</svg>
Admin Panel
<img src="/images/logo.svg" class="h-24 mr-2" /> Admin
</a>
</div>
</div>
@@ -191,7 +177,10 @@
<div class="drawer-side">
<label for="drawer-toggle" class="drawer-overlay"></label>
<aside class="bg-base-100 min-h-full px-12">
<h1 class="text-xl font-bold !font-display p-5">Admin Panel</h1>
<div class="flex items-center p-5 gap-x-3">
<img src="/images/logo.svg" class="h-24" />
<h1 class="text-xl font-bold !font-display">Admin</h1>
</div>
<ul class="menu">
<li>
<.link