feat: Update nav layout for mobile view
This commit is contained in:
1 parent
1b4be9cd7b
commit
4cc667f157
1 file changed
+53
-67
+53
-67
@@ -1,77 +1,63 @@
|
|||||||
<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
|
|
||||||
</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')">
|
|
||||||
resharespace
|
resharespace
|
||||||
</a>
|
</a>
|
||||||
|
<div class="relative w-full text-gray-200 mt-2">
|
||||||
|
<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 pb-1 px-2 pr-10 rounded-lg text-sm lg:tracking-tight focus:outline-none font-sans"
|
||||||
|
name="search"
|
||||||
|
onclick="toggleNavbar('example-collapse-navbar');toggleOverlay('example-collapse-overlay');toggleOverlay('example-collapse-dropdown')"
|
||||||
|
placeholder="Where do you want to work today?"
|
||||||
|
style="transition: all .15s ease"
|
||||||
|
type="search"
|
||||||
|
/>
|
||||||
|
<button class="absolute right-0 top-0 mt-2 sm:mt-3 md:mt-3 mr-2" onclick="toggleDropdown('example-collapse-dropdown')" type="submit">
|
||||||
|
<img alt="" class="text-indigo-700 h-5 w-5" src="assets/svg/icon_search.svg">
|
||||||
|
</button>
|
||||||
|
<!--search bar dropdown-->
|
||||||
|
<div class="z-10 origin-top-right absolute w-full pt-2 hidden" id="example-collapse-dropdown">
|
||||||
|
<div class="bg-white rounded-lg py-1">
|
||||||
|
<a class="flex items-center px-2 text-md leading-5 hover:bg-green-300 text-gray-900 hover:text-white focus:outline-none" href="#">
|
||||||
|
<svg class="h-7 w-5 mr-1" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<path clip-rule="evenodd" d="M5.05 4.05a7 7 0 119.9 9.9L10 18.9l-4.95-4.95a7 7 0 010-9.9zM10 11a2 2 0 100-4 2 2 0 000 4z" fill-rule="evenodd"/>
|
||||||
|
</svg>
|
||||||
|
Incub8 Space, Bacoor, Kawit, Cavite
|
||||||
|
</a>
|
||||||
|
<a class="flex items-center px-2 text-md leading-5 hover:bg-green-300 text-gray-900 hover:text-white focus:outline-none" href="#">
|
||||||
|
<svg class="h-7 w-5 mr-1" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<path clip-rule="evenodd" d="M5.05 4.05a7 7 0 119.9 9.9L10 18.9l-4.95-4.95a7 7 0 010-9.9zM10 11a2 2 0 100-4 2 2 0 000 4z" fill-rule="evenodd"/>
|
||||||
|
</svg>
|
||||||
|
Incub8 Space, Bacoor, Kawit, Cavite
|
||||||
|
</a>
|
||||||
|
<a class="flex items-center px-2 text-md leading-5 hover:bg-green-300 text-gray-900 hover:text-white focus:outline-none" href="#">
|
||||||
|
<svg class="h-7 w-5 mr-1" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<path clip-rule="evenodd" d="M5.05 4.05a7 7 0 119.9 9.9L10 18.9l-4.95-4.95a7 7 0 010-9.9zM10 11a2 2 0 100-4 2 2 0 000 4z" fill-rule="evenodd"/>
|
||||||
|
</svg>
|
||||||
|
Incub8 Space, Bacoor, Kawit, Cavite
|
||||||
|
</a>
|
||||||
|
<a class="flex items-center px-2 text-md leading-5 hover:bg-green-300 text-gray-900 hover:text-white focus:outline-none" href="#">
|
||||||
|
<svg class="h-7 w-5 mr-1" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<path clip-rule="evenodd" d="M5.05 4.05a7 7 0 119.9 9.9L10 18.9l-4.95-4.95a7 7 0 010-9.9zM10 11a2 2 0 100-4 2 2 0 000 4z" fill-rule="evenodd"/>
|
||||||
|
</svg>
|
||||||
|
Incub8 Space, Bacoor, Kawit, Cavite
|
||||||
|
</a>
|
||||||
|
<a class="flex items-center px-2 text-md leading-5 hover:bg-green-300 text-gray-900 hover:text-white focus:outline-none" href="#">
|
||||||
|
<svg class="h-7 w-5 mr-1" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<path clip-rule="evenodd" d="M5.05 4.05a7 7 0 119.9 9.9L10 18.9l-4.95-4.95a7 7 0 010-9.9zM10 11a2 2 0 100-4 2 2 0 000 4z" fill-rule="evenodd"/>
|
||||||
|
</svg>
|
||||||
|
Incub8 Space, Bacoor, Kawit, Cavite
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!--end search bar dropdown-->
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex flex-grow items-center lg:shadow-none">
|
<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
|
|
||||||
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"
|
|
||||||
name="search"
|
|
||||||
onclick="toggleNavbar('example-collapse-navbar');toggleOverlay('example-collapse-overlay');toggleOverlay('example-collapse-dropdown')"
|
|
||||||
placeholder="Where do you want to work today?"
|
|
||||||
style="transition: all .15s ease"
|
|
||||||
type="search"
|
|
||||||
/>
|
|
||||||
<button class="absolute right-0 top-0 mt-2 sm:mt-3 md:mt-3 mr-2" onclick="toggleDropdown('example-collapse-dropdown')" type="submit">
|
|
||||||
<img alt="" class="text-indigo-700 h-5 w-5" src="assets/svg/icon_search.svg">
|
|
||||||
</button>
|
|
||||||
<!--search bar dropdown-->
|
|
||||||
<div class="z-10 origin-top-right absolute w-full pt-2 hidden" id="example-collapse-dropdown">
|
|
||||||
<div class="bg-white rounded-lg py-1">
|
|
||||||
<a class="flex items-center px-2 text-md leading-5 hover:bg-green-300 text-gray-900 hover:text-white focus:outline-none" href="#">
|
|
||||||
<svg class="h-7 w-5 mr-1" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
|
|
||||||
<path clip-rule="evenodd" d="M5.05 4.05a7 7 0 119.9 9.9L10 18.9l-4.95-4.95a7 7 0 010-9.9zM10 11a2 2 0 100-4 2 2 0 000 4z" fill-rule="evenodd"/>
|
|
||||||
</svg>
|
|
||||||
Incub8 Space, Bacoor, Kawit, Cavite
|
|
||||||
</a>
|
|
||||||
<a class="flex items-center px-2 text-md leading-5 hover:bg-green-300 text-gray-900 hover:text-white focus:outline-none" href="#">
|
|
||||||
<svg class="h-7 w-5 mr-1" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
|
|
||||||
<path clip-rule="evenodd" d="M5.05 4.05a7 7 0 119.9 9.9L10 18.9l-4.95-4.95a7 7 0 010-9.9zM10 11a2 2 0 100-4 2 2 0 000 4z" fill-rule="evenodd"/>
|
|
||||||
</svg>
|
|
||||||
Incub8 Space, Bacoor, Kawit, Cavite
|
|
||||||
</a>
|
|
||||||
<a class="flex items-center px-2 text-md leading-5 hover:bg-green-300 text-gray-900 hover:text-white focus:outline-none" href="#">
|
|
||||||
<svg class="h-7 w-5 mr-1" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
|
|
||||||
<path clip-rule="evenodd" d="M5.05 4.05a7 7 0 119.9 9.9L10 18.9l-4.95-4.95a7 7 0 010-9.9zM10 11a2 2 0 100-4 2 2 0 000 4z" fill-rule="evenodd"/>
|
|
||||||
</svg>
|
|
||||||
Incub8 Space, Bacoor, Kawit, Cavite
|
|
||||||
</a>
|
|
||||||
<a class="flex items-center px-2 text-md leading-5 hover:bg-green-300 text-gray-900 hover:text-white focus:outline-none" href="#">
|
|
||||||
<svg class="h-7 w-5 mr-1" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
|
|
||||||
<path clip-rule="evenodd" d="M5.05 4.05a7 7 0 119.9 9.9L10 18.9l-4.95-4.95a7 7 0 010-9.9zM10 11a2 2 0 100-4 2 2 0 000 4z" fill-rule="evenodd"/>
|
|
||||||
</svg>
|
|
||||||
Incub8 Space, Bacoor, Kawit, Cavite
|
|
||||||
</a>
|
|
||||||
<a class="flex items-center px-2 text-md leading-5 hover:bg-green-300 text-gray-900 hover:text-white focus:outline-none" href="#">
|
|
||||||
<svg class="h-7 w-5 mr-1" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
|
|
||||||
<path clip-rule="evenodd" d="M5.05 4.05a7 7 0 119.9 9.9L10 18.9l-4.95-4.95a7 7 0 010-9.9zM10 11a2 2 0 100-4 2 2 0 000 4z" fill-rule="evenodd"/>
|
|
||||||
</svg>
|
|
||||||
Incub8 Space, Bacoor, Kawit, Cavite
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!--end search bar dropdown-->
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
<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>
|
||||||
|
|||||||
Reference in new issue
Block a user