🛠️ Refactor Blade templates: improve formatting, streamline HTML structure, and update modal implementation for better maintainability.

This commit is contained in:
HolgerHatGarKeineNode
2026-01-18 21:11:36 +01:00
parent 42e7d7af8e
commit 7db9c04505
3 changed files with 120 additions and 121 deletions

View File

@@ -19,10 +19,7 @@
@if($shouldDisplay) @if($shouldDisplay)
<article <flux:card class="flex overflow-hidden" wire:key="project_{{ $project->id }}">
wire:key="project_{{ $project->id }}"
wire:key="project_{{ $project->id }}"
<flux:card class="flex overflow-hidden">
@if(!$project->sats_paid) @if(!$project->sats_paid)
<a class="relative block w-24 sm:w-56 xl:sidebar-expanded:w-40 2xl:sidebar-expanded:w-56 shrink-0" <a class="relative block w-24 sm:w-56 xl:sidebar-expanded:w-40 2xl:sidebar-expanded:w-56 shrink-0"
href="{{ route('association.projectSupport.item', ['projectProposal' => $project]) }}"> href="{{ route('association.projectSupport.item', ['projectProposal' => $project]) }}">
@@ -51,7 +48,8 @@
<div class="grow p-5 flex flex-col"> <div class="grow p-5 flex flex-col">
<div class="grow"> <div class="grow">
<div class="text-sm font-semibold text-amber-500 uppercase mb-2"> <div class="text-sm font-semibold text-amber-500 uppercase mb-2">
Eingereicht von: {{ $project->einundzwanzigPleb->profile?->name ?? str($project->einundzwanzigPleb->npub)->limit(32) }} Eingereicht
von: {{ $project->einundzwanzigPleb->profile?->name ?? str($project->einundzwanzigPleb->npub)->limit(32) }}
</div> </div>
<div class="inline-flex mb-2"> <div class="inline-flex mb-2">
<h3 class="text-lg font-bold text-gray-800 dark:text-gray-100"> <h3 class="text-lg font-bold text-gray-800 dark:text-gray-100">

View File

@@ -23,7 +23,7 @@
<body class="min-h-screen bg-white dark:bg-zinc-800 antialiased" <body class="min-h-screen bg-white dark:bg-zinc-800 antialiased"
x-data="nostrLogin" x-data="nostrLogin"
> >
<flux:header container class="bg-zinc-50 dark:bg-zinc-900 border-b border-zinc-200 dark:border-zinc-700"> <flux:header class="bg-zinc-50 dark:bg-zinc-900 border-b border-zinc-200 dark:border-zinc-700">
<flux:sidebar.toggle class="lg:hidden" icon="bars-2" inset="left" /> <flux:sidebar.toggle class="lg:hidden" icon="bars-2" inset="left" />
<flux:brand href="/" name="Einundzwanzig" class="max-lg:hidden dark:hidden"> <flux:brand href="/" name="Einundzwanzig" class="max-lg:hidden dark:hidden">
@@ -116,7 +116,7 @@
</flux:sidebar.nav> </flux:sidebar.nav>
</flux:sidebar> </flux:sidebar>
<flux:main container> <flux:main>
{{ $slot }} {{ $slot }}
</flux:main> </flux:main>

View File

@@ -166,7 +166,7 @@ new class extends Component {
<x-project-card :project="$project" :currentPleb="$currentPleb" :section="$activeFilter"/> <x-project-card :project="$project" :currentPleb="$currentPleb" :section="$activeFilter"/>
@endforeach @endforeach
</div> </div>
</div>
<!-- Confirmation modal --> <!-- Confirmation modal -->
<flux:modal name="delete-project" class="min-w-88"> <flux:modal name="delete-project" class="min-w-88">
<div class="space-y-6"> <div class="space-y-6">
@@ -186,4 +186,5 @@ new class extends Component {
</div> </div>
</div> </div>
</flux:modal> </flux:modal>
</div>
</div> </div>