Refine browse menu styles for improved layout and accessibility

This commit is contained in:
pacnpal
2025-09-21 22:23:22 -04:00
parent 9d776aa5e3
commit 66f57448be

View File

@@ -27,12 +27,12 @@ Includes: Browse menu, advanced search, theme toggle, user dropdown, mobile menu
class="relative" class="relative"
> >
<button <button
class="flex items-center gap-2 px-3 py-2 text-sm font-medium rounded-md hover:bg-accent transition-colors" class="flex items-center gap-2 px-3 py-1.5 text-sm font-medium rounded-md hover:bg-accent transition-colors"
@click="open = !open" @click="open = !open"
> >
<i class="fas fa-compass w-4 h-4"></i> <i class="fas fa-compass w-4 h-4"></i>
Browse Browse
<i class="fas fa-chevron-down w-4 h-4"></i> <i class="fas fa-chevron-down w-3 h-3 transition-transform duration-200" :class="{ 'rotate-180': open }"></i>
</button> </button>
<!-- Browse Dropdown --> <!-- Browse Dropdown -->
@@ -45,83 +45,83 @@ Includes: Browse menu, advanced search, theme toggle, user dropdown, mobile menu
x-transition:leave-start="transform opacity-100 scale-100" x-transition:leave-start="transform opacity-100 scale-100"
x-transition:leave-end="transform opacity-0 scale-95" x-transition:leave-end="transform opacity-0 scale-95"
x-cloak x-cloak
class="absolute left-0 mt-2 w-[600px] p-6 bg-background border rounded-lg shadow-lg z-50" class="absolute left-0 mt-1 w-[560px] p-4 bg-background border rounded-lg shadow-lg z-50"
> >
<div class="grid grid-cols-2 gap-8"> <div class="grid grid-cols-2 gap-6">
<!-- Left Column --> <!-- Left Column -->
<div class="space-y-4"> <div class="space-y-2">
<a <a
href="{% url 'parks:park_list' %}" href="{% url 'parks:park_list' %}"
class="flex items-start gap-3 p-4 rounded-lg hover:bg-accent transition-colors group min-h-[4rem]" class="flex items-start gap-3 p-3 rounded-md hover:bg-accent transition-colors group"
@click="open = false" @click="open = false"
> >
<i class="fas fa-map-marker-alt w-5 h-5 mt-1 text-muted-foreground group-hover:text-foreground flex-shrink-0"></i> <i class="fas fa-map-marker-alt w-4 h-4 mt-0.5 text-muted-foreground group-hover:text-foreground flex-shrink-0"></i>
<div class="min-w-0 flex-1"> <div class="min-w-0 flex-1">
<h3 class="font-semibold text-sm mb-1.5 leading-tight">Parks</h3> <h3 class="font-medium text-sm mb-1 leading-tight">Parks</h3>
<p class="text-xs text-muted-foreground leading-relaxed break-words">Explore theme parks worldwide</p> <p class="text-xs text-muted-foreground leading-relaxed">Explore theme parks worldwide</p>
</div> </div>
</a> </a>
<a <a
href="{% url 'rides:manufacturer_list' %}" href="{% url 'rides:manufacturer_list' %}"
class="flex items-start gap-3 p-4 rounded-lg hover:bg-accent transition-colors group min-h-[4rem]" class="flex items-start gap-3 p-3 rounded-md hover:bg-accent transition-colors group"
@click="open = false" @click="open = false"
> >
<i class="fas fa-wrench w-5 h-5 mt-1 text-muted-foreground group-hover:text-foreground flex-shrink-0"></i> <i class="fas fa-wrench w-4 h-4 mt-0.5 text-muted-foreground group-hover:text-foreground flex-shrink-0"></i>
<div class="min-w-0 flex-1"> <div class="min-w-0 flex-1">
<h3 class="font-semibold text-sm mb-1.5 leading-tight">Manufacturers</h3> <h3 class="font-medium text-sm mb-1 leading-tight">Manufacturers</h3>
<p class="text-xs text-muted-foreground leading-relaxed break-words">Ride and attraction manufacturers</p> <p class="text-xs text-muted-foreground leading-relaxed">Ride and attraction manufacturers</p>
</div> </div>
</a> </a>
<a <a
href="{% url 'parks:operator_list' %}" href="{% url 'parks:operator_list' %}"
class="flex items-start gap-3 p-4 rounded-lg hover:bg-accent transition-colors group min-h-[4rem]" class="flex items-start gap-3 p-3 rounded-md hover:bg-accent transition-colors group"
@click="open = false" @click="open = false"
> >
<i class="fas fa-users w-5 h-5 mt-1 text-muted-foreground group-hover:text-foreground flex-shrink-0"></i> <i class="fas fa-users w-4 h-4 mt-0.5 text-muted-foreground group-hover:text-foreground flex-shrink-0"></i>
<div class="min-w-0 flex-1"> <div class="min-w-0 flex-1">
<h3 class="font-semibold text-sm mb-1.5 leading-tight">Operators</h3> <h3 class="font-medium text-sm mb-1 leading-tight">Operators</h3>
<p class="text-xs text-muted-foreground leading-relaxed break-words">Theme park operating companies</p> <p class="text-xs text-muted-foreground leading-relaxed">Theme park operating companies</p>
</div> </div>
</a> </a>
</div> </div>
<!-- Right Column --> <!-- Right Column -->
<div class="space-y-4"> <div class="space-y-2">
<a <a
href="{% url 'rides:global_ride_list' %}" href="{% url 'rides:global_ride_list' %}"
class="flex items-start gap-3 p-4 rounded-lg hover:bg-accent transition-colors group min-h-[4rem]" class="flex items-start gap-3 p-3 rounded-md hover:bg-accent transition-colors group"
@click="open = false" @click="open = false"
> >
<i class="fas fa-rocket w-5 h-5 mt-1 text-muted-foreground group-hover:text-foreground flex-shrink-0"></i> <i class="fas fa-rocket w-4 h-4 mt-0.5 text-muted-foreground group-hover:text-foreground flex-shrink-0"></i>
<div class="min-w-0 flex-1"> <div class="min-w-0 flex-1">
<h3 class="font-semibold text-sm mb-1.5 leading-tight">Rides</h3> <h3 class="font-medium text-sm mb-1 leading-tight">Rides</h3>
<p class="text-xs text-muted-foreground leading-relaxed break-words">Discover rides and attractions</p> <p class="text-xs text-muted-foreground leading-relaxed">Discover rides and attractions</p>
</div> </div>
</a> </a>
<a <a
href="{% url 'rides:designer_list' %}" href="{% url 'rides:designer_list' %}"
class="flex items-start gap-3 p-4 rounded-lg hover:bg-accent transition-colors group min-h-[4rem]" class="flex items-start gap-3 p-3 rounded-md hover:bg-accent transition-colors group"
@click="open = false" @click="open = false"
> >
<i class="fas fa-drafting-compass w-5 h-5 mt-1 text-muted-foreground group-hover:text-foreground flex-shrink-0"></i> <i class="fas fa-drafting-compass w-4 h-4 mt-0.5 text-muted-foreground group-hover:text-foreground flex-shrink-0"></i>
<div class="min-w-0 flex-1"> <div class="min-w-0 flex-1">
<h3 class="font-semibold text-sm mb-1.5 leading-tight">Designers</h3> <h3 class="font-medium text-sm mb-1 leading-tight">Designers</h3>
<p class="text-xs text-muted-foreground leading-relaxed break-words">Ride designers and architects</p> <p class="text-xs text-muted-foreground leading-relaxed">Ride designers and architects</p>
</div> </div>
</a> </a>
<a <a
href="#" href="#"
class="flex items-start gap-3 p-4 rounded-lg hover:bg-accent transition-colors group min-h-[4rem]" class="flex items-start gap-3 p-3 rounded-md hover:bg-accent transition-colors group"
@click="open = false" @click="open = false"
> >
<i class="fas fa-trophy w-5 h-5 mt-1 text-muted-foreground group-hover:text-foreground flex-shrink-0"></i> <i class="fas fa-trophy w-4 h-4 mt-0.5 text-muted-foreground group-hover:text-foreground flex-shrink-0"></i>
<div class="min-w-0 flex-1"> <div class="min-w-0 flex-1">
<h3 class="font-semibold text-sm mb-1.5 leading-tight">Top Lists</h3> <h3 class="font-medium text-sm mb-1 leading-tight">Top Lists</h3>
<p class="text-xs text-muted-foreground leading-relaxed break-words">Community rankings and favorites</p> <p class="text-xs text-muted-foreground leading-relaxed">Community rankings and favorites</p>
</div> </div>
</a> </a>
</div> </div>