feat: Update nav layout for mobile view

This commit is contained in:
Kerby Martino (aider) committed 2025-05-12 14:02:44 +08:00
1 parent 1b4be9cd7b
commit 4cc667f157
1 file changed
+9 -23
+9 -23
View File
@@ -1,18 +1,12 @@
<nav class="sticky top-0 z-50 w-full flex flex-wrap items-center justify-between h-16 md:h-auto navbar-expand-lg bg-indigo-700"> <nav class="sticky top-0 z-50 w-full flex flex-wrap items-center justify-between h-auto navbar-expand-lg bg-indigo-700">
<div class="container mx-auto md:mb-3 md:mt-3 flex flex-wrap items-center justify-between px-4 sm:px-16 md:px-10 lg:px-12 xl:px-24 xxl:px-32"> <div class="container mx-auto md:mb-3 md:mt-3 flex flex-wrap items-center justify-between px-4 sm:px-16 md:px-10 lg:px-12 xl:px-24 xxl:px-32">
<div class="relative flex justify-between w-auto static block justify-start xs:hidden"> <div class="relative flex flex-col justify-between w-auto static block justify-start xs:hidden">
<a class="inline-block py-1 whitespace-no-wrap text-gray-100 hidden md:block font-heading text-2xl" href="#"> <a class="inline-block py-1 whitespace-no-wrap text-gray-100 font-heading text-2xl" href="#">
resharespace resharespace
</a> </a>
<a class="inline-block mr-2 md:mr-8 py-1 whitespace-no-wrap text-gray-100 md:hidden font-heading text-2xl" href="#" onclick="toggleSidebar('example-collapse-sidebar2');toggleOverlay('example-collapse-overlay')"> <div class="relative w-full text-gray-200 mt-2">
resharespace
</a>
</div>
<div class="flex flex-grow items-center lg:shadow-none">
<ul class="flex flex-row list-none mr-auto">
<li class="relative w-full text-gray-200">
<input <input
class="relative w-full max-w-[18rem] sm:max-w-[20rem] md:max-w-[22rem] lg:max-w-[24rem] bg-indigo-800 opacity-75 h-8 sm:h-10 ml-2 pb-1 px-2 pr-10 rounded-lg text-sm lg:tracking-tight focus:outline-none font-sans" class="relative w-full max-w-[18rem] sm:max-w-[20rem] md:max-w-[22rem] lg:max-w-[24rem] bg-indigo-800 opacity-75 h-8 sm:h-10 pb-1 px-2 pr-10 rounded-lg text-sm lg:tracking-tight focus:outline-none font-sans"
name="search" name="search"
onclick="toggleNavbar('example-collapse-navbar');toggleOverlay('example-collapse-overlay');toggleOverlay('example-collapse-dropdown')" onclick="toggleNavbar('example-collapse-navbar');toggleOverlay('example-collapse-overlay');toggleOverlay('example-collapse-dropdown')"
placeholder="Where do you want to work today?" placeholder="Where do you want to work today?"
@@ -58,20 +52,12 @@
</div> </div>
</div> </div>
<!--end search bar dropdown--> <!--end search bar dropdown-->
</li> </div>
</ul> </div>
<div class="flex flex-grow items-center lg:shadow-none">
<ul class="flex flex-row items-center ml-auto space-x-2"> <!-- Added items-center and space-x-2 for potential spacing if needed --> <ul class="flex flex-row items-center ml-auto space-x-2"> <!-- Added items-center and space-x-2 for potential spacing if needed -->
<!-- Mobile Post Button (Icon only) -->
<li class="flex items-center sm:hidden">
<button class="bg-indigo-900 text-gray-100 rounded-lg focus:outline-none"
onclick="toggleNavbar('post-modal');toggleOverlay('collapse-overlay')"
style="transition: all .15s ease" type="button"
aria-label="Post Space">
<img src="assets/svg/icon_add.svg" alt="Post Space" class="h-5 w-5">
</button>
</li>
<!-- Desktop Post Space button --> <!-- Desktop Post Space button -->
<li class="hidden sm:flex items-center"> <li class="flex items-center">
<button class="bg-indigo-900 text-gray-100 font-heading text-lg p-2 font-semibold tracking-normal capitalize px-5 py-2 rounded-base focus:outline-none" onclick="toggleNavbar('post-modal');toggleOverlay('collapse-overlay')" style="transition: all .15s ease" type="button"> <button class="bg-indigo-900 text-gray-100 font-heading text-lg p-2 font-semibold tracking-normal capitalize px-5 py-2 rounded-base focus:outline-none" onclick="toggleNavbar('post-modal');toggleOverlay('collapse-overlay')" style="transition: all .15s ease" type="button">
Post Space Post Space
</button> </button>