Skip to content

Commit

Permalink
Updated index.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
EdmundHee committed Sep 30, 2020
1 parent e69ce7e commit d6ed241
Showing 1 changed file with 15 additions and 29 deletions.
44 changes: 15 additions & 29 deletions pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
-->
<Navigation>
<template v-slot:widget-1>
<Logo class="h-16 mt-1"/>

</template>
<template v-slot:widget-2>
<SearchInput />

</template>
<template v-slot:widget-3>
<UserMenu />

</template>
</Navigation>

Expand All @@ -20,10 +20,10 @@
-->
<LocationHeader>
<template v-slot:name>
Octagon#4 2BR/6pax, Stay in the heart of Ipoh !

</template>
<template v-slot:location>
Ipoh, Negeri Perak, Malaysia

</template>
</LocationHeader>

Expand All @@ -33,42 +33,28 @@

<DisplayImg>
<template v-slot:main>
<img class="object-cover rounded-l-lg p-1 h-full" src="https://images.pexels.com/photos/1267438/pexels-photo-1267438.jpeg?auto=compress&cs=tinysrgb&h=750&w=1260" />
</template>
<template v-slot:sub>
<img class="object-cover p-1 h-84 w-full" src="https://images.pexels.com/photos/276724/pexels-photo-276724.jpeg?auto=compress&cs=tinysrgb&h=750&w=1260" />
<img class="object-cover rounded-tr-lg p-1 h-84 w-full" src="https://images.pexels.com/photos/769585/pexels-photo-769585.jpeg?auto=compress&cs=tinysrgb&h=750&w=1260" />
<img class="object-cover p-1 h-84 w-full" src="https://images.pexels.com/photos/3356416/pexels-photo-3356416.jpeg?auto=compress&cs=tinysrgb&h=750&w=1260" />
<img class="object-cover rounded-br-lg p-1 h-84 w-full" src="https://images.pexels.com/photos/2565222/pexels-photo-2565222.jpeg?auto=compress&cs=tinysrgb&h=750&w=1260" />
</template>
</DisplayImg>

<!-- Unit information -->
<Content>
<template v-slot:content>
<div class="grid grid-cols-1 md:grid-cols-5">
<div class="flex flex-col col-span-3">
<UnitName>
<template v-slot:name>
Entire apartment hosted by Wallace
</template>
<template v-slot:description>
6 guests | 2 bedrooms | 3 beds | 2 baths
</template>
</UnitName>
<UnitInfo>
</UnitInfo>
<UnitRegulation/>
</div>
<div class="col-span-2 py-6 px-10">
<UnitBookingForm/>
</div>
</div>
</template>
</Content>
<Footer/>

<!-- Footer -->
</div>
</template>

<script>
export default {
mounted(){
let controller = new ScrollMagic.Controller();
let scene = new ScrollMagic.Scene({triggerElement: "#trigger", triggerHook:0.1})
.setPin("#bookingForm")
.addTo(controller);
}
}
</script>

0 comments on commit d6ed241

Please sign in to comment.