added navbar

This commit is contained in:
unknown committed 2020-10-19 04:12:02 +08:00
1 parent 972cab01ad
commit aac3238418
1 file changed
+102 -65
+102 -65
View File
@@ -78,10 +78,9 @@
[slider] { [slider] {
position: relative; position: relative;
height: 14px;
border-radius: 10px; border-radius: 10px;
text-align: left; text-align: left;
margin: 45px 0 10px 0; margin: 13px 0 10px 0;
} }
[slider] > div { [slider] > div {
@@ -94,18 +93,18 @@
[slider] > div > [inverse-left] { [slider] > div > [inverse-left] {
position: absolute; position: absolute;
left: 0; left: 0;
height: 14px; height: 8px;
border-radius: 10px; border-radius: 10px;
background-color: #CCC; background-color: #150c2b;
margin: 0 7px; margin: 0 7px;
} }
[slider] > div > [inverse-right] { [slider] > div > [inverse-right] {
position: absolute; position: absolute;
right: 0; right: 0;
height: 14px; height: 8px;
border-radius: 10px; border-radius: 10px;
background-color: #CCC; background-color: #150c2b;
margin: 0 7px; margin: 0 7px;
} }
@@ -114,7 +113,7 @@
left: 0; left: 0;
height: 14px; height: 14px;
border-radius: 14px; border-radius: 14px;
background-color: #1ABC9C; background-color: #32ffa8;
} }
[slider] > div > [thumb] { [slider] > div > [thumb] {
@@ -127,7 +126,7 @@
margin-left: -11px; margin-left: -11px;
cursor: pointer; cursor: pointer;
box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4); box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
background-color: #FFF; background-color: #7643ea;
border-radius: 50%; border-radius: 50%;
outline: none; outline: none;
} }
@@ -213,15 +212,14 @@
[slider] > div > [sign] { [slider] > div > [sign] {
opacity: 0; opacity: 0;
position: absolute; position: absolute;
margin-left: -11px; margin-left: -17px;
top: -39px; top: -39px;
z-index:3; z-index: 3;
background-color: #1ABC9C; background-color: #32ffa8;
color: #fff; color: #1A202C;
width: 28px; width: 40px;
height: 28px; height: 28px;
border-radius: 28px; content: '';
-webkit-border-radius: 28px;
align-items: center; align-items: center;
-webkit-justify-content: center; -webkit-justify-content: center;
justify-content: center; justify-content: center;
@@ -234,11 +232,11 @@
left: 0; left: 0;
border-radius: 16px; border-radius: 16px;
top: 19px; top: 19px;
border-left: 14px solid transparent; border-left: 20px solid transparent;
border-right: 14px solid transparent; border-right: 20px solid transparent;
border-top-width: 16px; border-top-width: 16px;
border-top-style: solid; border-top-style: solid;
border-top-color: #1ABC9C; border-top-color: #32ffa8;
} }
[slider] > div > [sign] > span { [slider] > div > [sign] > span {
@@ -270,6 +268,40 @@
<button type="submit" class="absolute right-0 top-0 mt-2 sm:mt-3 md:mt-3 mr-2"> <button type="submit" class="absolute right-0 top-0 mt-2 sm:mt-3 md:mt-3 mr-2">
<img class="text-indigo-700 h-5 w-5" src="svg/icon_search.svg" alt=""> <img class="text-indigo-700 h-5 w-5" src="svg/icon_search.svg" alt="">
</button> </button>
<!-- <div class="z-10 origin-top-right absolute w-full pt-2">-->
<!-- <div class="bg-white rounded-lg py-1">-->
<!-- <a href="#"-->
<!-- class="flex items-center px-2 text-md leading-5 hover:bg-green-300 text-gray-900 hover:text-white focus:outline-none">-->
<!-- <svg class="h-7 w-5 mr-1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor">-->
<!-- <path fill-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" clip-rule="evenodd" />-->
<!-- </svg>-->
<!-- Incub8 Space, Bacoor, Kawit, Cavite</a>-->
<!-- <a href="#"-->
<!-- class="flex items-center px-2 text-md leading-5 hover:bg-green-300 text-gray-900 hover:text-white focus:outline-none">-->
<!-- <svg class="h-7 w-5 mr-1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor">-->
<!-- <path fill-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" clip-rule="evenodd" />-->
<!-- </svg>-->
<!-- Incub8 Space, Bacoor, Kawit, Cavite</a>-->
<!-- <a href="#"-->
<!-- class="flex items-center px-2 text-md leading-5 hover:bg-green-300 text-gray-900 hover:text-white focus:outline-none">-->
<!-- <svg class="h-7 w-5 mr-1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor">-->
<!-- <path fill-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" clip-rule="evenodd" />-->
<!-- </svg>-->
<!-- Incub8 Space, Bacoor, Kawit, Cavite</a>-->
<!-- <a href="#"-->
<!-- class="flex items-center px-2 text-md leading-5 hover:bg-green-300 text-gray-900 hover:text-white focus:outline-none">-->
<!-- <svg class="h-7 w-5 mr-1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor">-->
<!-- <path fill-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" clip-rule="evenodd" />-->
<!-- </svg>-->
<!-- Incub8 Space, Bacoor, Kawit, Cavite</a>-->
<!-- <a href="#"-->
<!-- class="flex items-center px-2 text-md leading-5 hover:bg-green-300 text-gray-900 hover:text-white focus:outline-none">-->
<!-- <svg class="h-7 w-5 mr-1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor">-->
<!-- <path fill-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" clip-rule="evenodd" />-->
<!-- </svg>-->
<!-- Incub8 Space, Bacoor, Kawit, Cavite</a>-->
<!-- </div>-->
<!-- </div>-->
</li> </li>
</ul> </ul>
<ul class="flex flex-row ml-auto hidden sm:block"> <ul class="flex flex-row ml-auto hidden sm:block">
@@ -377,80 +409,85 @@
<p class="font-extrabold text-gray-700">TYPE</p> <p class="font-extrabold text-gray-700">TYPE</p>
<div class="flex"> <div class="flex">
<span class="mr-4"> <span class="mr-4">
<a class="flex text-gray-700 pb-4"><img class="mr-2" src="svg/icon_checkbox_checked.svg" alt="">Coworking</a> <a class="flex text-gray-700 pb-4"><img class="mr-2" src="svg/icon_checkbox_checked.svg"
<a class="flex text-gray-700"><img class="mr-2" src="svg/icon_checkbox_unchecked.svg" alt="">Event Space</a> alt="">Coworking</a>
<a class="flex text-gray-700"><img class="mr-2" src="svg/icon_checkbox_unchecked.svg"
alt="">Event Space</a>
</span> </span>
<span class="mr-4"> <span class="mr-4">
<a class="flex text-gray-700 pb-4"><img class="mr-2" src="svg/icon_checkbox_unchecked.svg" alt="">Office Space</a> <a class="flex text-gray-700 pb-4"><img class="mr-2" src="svg/icon_checkbox_unchecked.svg"
<a class="flex text-gray-700"><img class="mr-2" src="svg/icon_checkbox_unchecked.svg" alt="">Virtual Space</a> alt="">Office Space</a>
<a class="flex text-gray-700"><img class="mr-2" src="svg/icon_checkbox_unchecked.svg"
alt="">Virtual Space</a>
</span> </span>
<span> <span>
<a class="flex text-gray-700 mr-4"><img class="mr-2" src="svg/icon_checkbox_unchecked.svg" alt="">Meeting Room</a> <a class="flex text-gray-700 mr-4"><img class="mr-2" src="svg/icon_checkbox_unchecked.svg"
alt="">Meeting Room</a>
</span> </span>
</div> </div>
</div> </div>
<div class="col-span-2"> <div class="col-span-1">
<p class="font-extrabold text-gray-700">PRICE</p> <p class="font-extrabold text-gray-700">PRICE</p>
<div slider id="slider-distance"> <div slider id="slider-distance">
<div> <div>
<div inverse-left style="width:70%;"></div> <div class="border border-gray-500" inverse-left style="width:70%;"></div>
<div inverse-right style="width:70%;"></div> <div class="border border-gray-500" inverse-right style="width:70%;"></div>
<div range style="left:30%;right:40%;"></div> <div range style="left:30%;right:40%;"></div>
<span thumb style="left:30%;"></span> <span thumb style="left:30%;"></span>
<span thumb style="left:60%;"></span> <span thumb style="left:60%;"></span>
<div sign style="left:30%;"> <div sign style="left:30%;">
<span id="value">30</span> <span id="value">P300</span>
</div> </div>
<div sign style="left:60%;"> <div sign style="left:60%;">
<span id="value">60</span> <span id="value">P600</span>
</div> </div>
</div> </div>
<input type="range" tabindex="0" value="30" max="100" min="0" step="1" oninput=" <input type="range" tabindex="0" value="300" max="1000" min="0" step="1" oninput="
this.value=Math.min(this.value,this.parentNode.childNodes[5].value-1); this.value=Math.min(this.value,this.parentNode.childNodes[5].value-1);
var value=(100/(parseInt(this.max)-parseInt(this.min)))*parseInt(this.value)-(100/(parseInt(this.max)-parseInt(this.min)))*parseInt(this.min); var value=(100/(parseInt(this.max)-parseInt(this.min)))*parseInt(this.value)-(100/(parseInt(this.max)-parseInt(this.min)))*parseInt(this.min);
var children = this.parentNode.childNodes[1].childNodes; var children = this.parentNode.childNodes[1].childNodes;
children[1].style.width=value+'%'; children[1].style.width=value+'%';
children[5].style.left=value+'%'; children[5].style.left=value+'%';
children[7].style.left=value+'%';children[11].style.left=value+'%'; children[7].style.left=value+'%';children[11].style.left=value+'%';
children[11].childNodes[1].innerHTML=this.value;" /> children[11].childNodes[1].innerHTML=this.value;"/>
<input type="range" tabindex="0" value="60" max="100" min="0" step="1" oninput=" <input type="range" tabindex="0" value="600" max="1000" min="0" step="1" oninput="
this.value=Math.max(this.value,this.parentNode.childNodes[3].value-(-1)); this.value=Math.max(this.value,this.parentNode.childNodes[3].value-(-1));
var value=(100/(parseInt(this.max)-parseInt(this.min)))*parseInt(this.value)-(100/(parseInt(this.max)-parseInt(this.min)))*parseInt(this.min); var value=(100/(parseInt(this.max)-parseInt(this.min)))*parseInt(this.value)-(100/(parseInt(this.max)-parseInt(this.min)))*parseInt(this.min);
var children = this.parentNode.childNodes[1].childNodes; var children = this.parentNode.childNodes[1].childNodes;
children[3].style.width=(100-value)+'%'; children[3].style.width=(100-value)+'%';
children[5].style.right=(100-value)+'%'; children[5].style.right=(100-value)+'%';
children[9].style.left=value+'%';children[13].style.left=value+'%'; children[9].style.left=value+'%';children[13].style.left=value+'%';
children[13].childNodes[1].innerHTML=this.value;" /> children[13].childNodes[1].innerHTML=this.value;"/>
</div> </div>
<!-- <div class="slider" id="slider-distance">--> <!-- <div class="slider" id="slider-distance">-->
<!-- <input class="bg-green-300" type="range" tabindex="0" value="30" max="100" min="0" step="1" oninput="--> <!-- <input class="bg-green-300" type="range" tabindex="0" value="30" max="100" min="0" step="1" oninput="-->
<!-- this.value=Math.min(this.value,this.parentNode.childNodes[5].value-1);--> <!-- this.value=Math.min(this.value,this.parentNode.childNodes[5].value-1);-->
<!-- var value=(100/(parseInt(this.max)-parseInt(this.min)))*parseInt(this.value)-(100/(parseInt(this.max)-parseInt(this.min)))*parseInt(this.min);--> <!-- var value=(100/(parseInt(this.max)-parseInt(this.min)))*parseInt(this.value)-(100/(parseInt(this.max)-parseInt(this.min)))*parseInt(this.min);-->
<!-- var children = this.parentNode.childNodes[1].childNodes;--> <!-- var children = this.parentNode.childNodes[1].childNodes;-->
<!-- children[1].style.width=value+'%';--> <!-- children[1].style.width=value+'%';-->
<!-- children[5].style.left=value+'%';--> <!-- children[5].style.left=value+'%';-->
<!-- children[7].style.left=value+'%';children[11].style.left=value+'%';--> <!-- children[7].style.left=value+'%';children[11].style.left=value+'%';-->
<!-- children[11].childNodes[1].innerHTML=this.value;" />--> <!-- children[11].childNodes[1].innerHTML=this.value;" />-->
<!-- <input class="bg-green-300" type="range" tabindex="0" value="60" max="100" min="0" step="1" oninput="--> <!-- <input class="bg-green-300" type="range" tabindex="0" value="60" max="100" min="0" step="1" oninput="-->
<!-- this.value=Math.max(this.value,this.parentNode.childNodes[3].value-(-1));--> <!-- this.value=Math.max(this.value,this.parentNode.childNodes[3].value-(-1));-->
<!-- var value=(100/(parseInt(this.max)-parseInt(this.min)))*parseInt(this.value)-(100/(parseInt(this.max)-parseInt(this.min)))*parseInt(this.min);--> <!-- var value=(100/(parseInt(this.max)-parseInt(this.min)))*parseInt(this.value)-(100/(parseInt(this.max)-parseInt(this.min)))*parseInt(this.min);-->
<!-- var children = this.parentNode.childNodes[1].childNodes;--> <!-- var children = this.parentNode.childNodes[1].childNodes;-->
<!-- children[3].style.width=(100-value)+'%';--> <!-- children[3].style.width=(100-value)+'%';-->
<!-- children[5].style.right=(100-value)+'%';--> <!-- children[5].style.right=(100-value)+'%';-->
<!-- children[9].style.left=value+'%';children[13].style.left=value+'%';--> <!-- children[9].style.left=value+'%';children[13].style.left=value+'%';-->
<!-- children[13].childNodes[1].innerHTML=this.value;" />--> <!-- children[13].childNodes[1].innerHTML=this.value;" />-->
<!-- </div>--> <!-- </div>-->
</div> </div>
<div class="row-span-1 col-span-1 row-start-3 col-start-4"> <div class="row-span-1 col-span-1 row-start-3 col-start-4">
<button class="w-full h-12 font-light text-md bg-indigo-700 text-gray-200 active:bg-gray-100 tracking-wide capitalize rounded-none hover:shadow-md outline-none focus:outline-none" <button class="w-full h-12 font-light text-md bg-indigo-700 text-gray-200 active:bg-gray-100 tracking-wide capitalize rounded-none hover:shadow-md outline-none focus:outline-none"
type="button"> Search type="button"> Search
</button> </button>
</div> </div>
</div> </div>
</div> </div>