mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-nostr.git
synced 2026-01-25 04:13:17 +00:00
🗑️ Remove unused postcss.config.js and streamline sidebar navigation with updated Blade components
✨ Add `:currentRoute` prop bindings and update Tailwind configuration for enhanced theme customization
This commit is contained in:
@@ -60,13 +60,9 @@ new class extends Component {
|
||||
|
||||
<!-- Links -->
|
||||
<div class="space-y-8">
|
||||
{{--@include('components.layouts.navigation.meetups')--}}
|
||||
@include('components.layouts.navigation.association')
|
||||
{{--@include('components.layouts.navigation.events')
|
||||
@include('components.layouts.navigation.courses')
|
||||
@include('components.layouts.navigation.nostr')
|
||||
@include('components.layouts.navigation.legacy')--}}
|
||||
@include('components.layouts.navigation.admin')
|
||||
@dd($currentRoute)
|
||||
<x-layouts.navigation.association :currentRoute="$currentRoute"/>
|
||||
<x-layouts.navigation.admin :currentRoute="$currentRoute"/>
|
||||
</div>
|
||||
|
||||
<!-- Expand / collapse button -->
|
||||
@@ -1,4 +1,12 @@
|
||||
<!-- Admin group -->
|
||||
@props([
|
||||
'currentRoute',
|
||||
])
|
||||
@php
|
||||
$isCurrentRouteClass = 'pl-4 pr-3 py-2 rounded-lg mb-0.5 last:mb-0 bg-[linear-gradient(135deg,var(--tw-gradient-stops))] from-orange-500/12 dark:from-orange-500/24 to-orange-500/4';
|
||||
$isNotCurrentRouteClass = 'pl-4 pr-3 py-2 rounded-lg mb-0.5 last:mb-0';
|
||||
$isCurrentSubItem = 'block text-orange-500 transition truncate';
|
||||
$isNotCurrentSubItem = 'block text-gray-500/90 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-200 transition truncate';
|
||||
@endphp
|
||||
<div>
|
||||
<h3 class="text-xs uppercase text-gray-400 dark:text-gray-500 font-semibold pl-3">
|
||||
<span class="hidden lg:block lg:sidebar-expanded:hidden 2xl:hidden text-center w-6"
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
<!-- Association group -->
|
||||
@props([
|
||||
'currentRoute',
|
||||
])
|
||||
<div>
|
||||
<h3 class="text-xs uppercase text-gray-400 dark:text-gray-500 font-semibold pl-3">
|
||||
<span class="hidden lg:block lg:sidebar-expanded:hidden 2xl:hidden text-center w-6"
|
||||
|
||||
@@ -4,14 +4,11 @@
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
{!! seo($seo ?? null) !!}
|
||||
|
||||
<title>{{ $title ?? 'Page Title' }}</title>
|
||||
@livewireStyles
|
||||
@stack('scripts')
|
||||
@vite(['resources/js/app.js','resources/css/app.css'])
|
||||
@googlefonts
|
||||
<script src="https://kit.fontawesome.com/866fd3d0ab.js" crossorigin="anonymous"></script>
|
||||
@include('components.layouts.partials.styles')
|
||||
@googlefonts
|
||||
@vite(['resources/js/app.js','resources/css/app.css'])
|
||||
@livewireStyles
|
||||
@fluxAppearance
|
||||
</head>
|
||||
<body class="min-h-screen bg-white dark:bg-zinc-800 antialiased"
|
||||
@@ -79,7 +76,7 @@
|
||||
<flux:sidebar.item icon="hand-heart" :href="route('association.projectSupport')" :current="request()->routeIs('association.projectSupport')">Projekt-Unterstützungen</flux:sidebar.item>
|
||||
@endif
|
||||
|
||||
@include('components.layouts.navigation.admin')
|
||||
<x-layouts.navigation.admin :currentRoute="request()->route()->getName()"/>
|
||||
</flux:sidebar.nav>
|
||||
</flux:sidebar>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user