Files
resharespace-static/_includes/nav.liquid
T

44 lines
2.0 KiB
Plaintext

<nav class="sticky top-0 z-50 w-full bg-indigo-700">
<div class="container mx-auto px-4 sm:px-6 lg:px-12 xl:px-24 xxl:px-32 py-3">
<!-- Mobile & Tablet: Logo + Post Button (Top Stack) -->
<!-- Desktop: Flex Row -->
<div class="flex flex-col md:flex-row md:items-center md:justify-between gap-2 md:gap-4">
<!-- Left: Logo -->
<div class="flex justify-between items-center md:w-auto w-full">
<a href="#" class="text-2xl font-heading text-gray-100">resharespace</a>
<!-- Post Space button (mobile visible only inline with logo) -->
<div class="md:hidden">
<button class="bg-indigo-900 text-gray-100 font-heading text-base px-4 py-2 rounded-base ml-auto" onclick="toggleNavbar('post-modal');toggleOverlay('collapse-overlay')">
Post Space
</button>
</div>
</div>
<!-- Search Input (Full width on mobile, center on desktop) -->
<div class="w-full md:flex-1 md:px-4">
<div class="relative">
<input
type="search"
placeholder="Where do you want to work today?"
class="w-full bg-indigo-800 opacity-75 h-10 px-3 pr-10 rounded-lg text-sm text-gray-200 focus:outline-none"
/>
<button type="submit" class="absolute right-0 top-1.5 mr-2">
<img alt="Search" src="assets/svg/icon_search.svg" class="h-5 w-5 text-indigo-700">
</button>
</div>
</div>
<!-- Right: Post Space button (desktop only) -->
<div class="hidden md:flex md:items-center">
<button class="bg-indigo-900 text-gray-100 font-heading text-lg px-5 py-2 rounded-base" onclick="toggleNavbar('post-modal');toggleOverlay('collapse-overlay')">
Post Space
</button>
</div>
</div>
</div>
</nav>