feat: Add space type and update card rendering
This commit is contained in:
1 parent
5494567474
commit
d15ffd5bd2
5 files changed
+36
-30
No files matched your search
+12
-1
@@ -7,7 +7,18 @@
|
|||||||
<img alt="" class="h-full w-full object-cover cursor-pointer rounded-tl-card rounded-tr-card" onclick="toggleSidebar('inquiry-modal');toggleOverlay('collapse-overlay')" src="{{ listing.image }}">
|
<img alt="" class="h-full w-full object-cover cursor-pointer rounded-tl-card rounded-tr-card" onclick="toggleSidebar('inquiry-modal');toggleOverlay('collapse-overlay')" src="{{ listing.image }}">
|
||||||
<!-- Type of Space -->
|
<!-- Type of Space -->
|
||||||
<div class="absolute bottom-2 right-2 w-10 h-10 bg-green-900 rounded-full flex items-center justify-center cursor-pointer hover:border-green-300 hover:outline hover:outline-2 hover:outline-green-300" title="Add to Favorites">
|
<div class="absolute bottom-2 right-2 w-10 h-10 bg-green-900 rounded-full flex items-center justify-center cursor-pointer hover:border-green-300 hover:outline hover:outline-2 hover:outline-green-300" title="Add to Favorites">
|
||||||
<img src="assets/svg/icon_desk_alt.svg" class="w-5 h-5" alt="Like">
|
{% case listing.type %}
|
||||||
|
{% when "Desk" %}
|
||||||
|
<img src="assets/svg/icon_desk_alt.svg" class="w-5 h-5" alt="Desk">
|
||||||
|
{% when "Private Office" %}
|
||||||
|
<img src="assets/svg/icon_room_alt.svg" class="w-5 h-5" alt="Private Office">
|
||||||
|
{% when "Meeting Room" %}
|
||||||
|
<img src="assets/svg/icon_meeting_alt.svg" class="w-5 h-5" alt="Meeting Room">
|
||||||
|
{% when "Workshop Area" %}
|
||||||
|
<img src="assets/svg/icon_workshop_alt.svg" class="w-5 h-5" alt="Workshop Area">
|
||||||
|
{% else %}
|
||||||
|
<img src="assets/svg/icon_desk_alt.svg" class="w-5 h-5" alt="Desk">
|
||||||
|
{% endcase %}
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,9 +1,8 @@
|
|||||||
---
|
---
|
||||||
layout: card
|
title: "Cozy coworking space in the heart of the south"
|
||||||
title: "Modern coworking space with great amenities"
|
address: "Incub8 space, Centennial Road, Brgy. Batong Dalig, Kawit, Cavite"
|
||||||
price: "P 1,500 / monthly"
|
timestamp: "Posted 5 hrs ago"
|
||||||
address: "123 Main St, Brgy. San Roque, Makati City"
|
price: "₱1,200 / Daily"
|
||||||
timestamp: "2 hrs ago"
|
image: "/assets/img/SAMPLE3.png"
|
||||||
url: "#"
|
type: "Desk"
|
||||||
image: "assets/img/SAMPLE1.png"
|
|
||||||
---
|
---
|
||||||
@@ -1,10 +1,8 @@
|
|||||||
---
|
---
|
||||||
layout: card
|
title: "Private Office in Makati"
|
||||||
title: "Charming coworking space with a garden"
|
address: "123 Makati Avenue, Makati City"
|
||||||
price: "P 1,350 / monthly"
|
timestamp: "Posted 2 hrs ago"
|
||||||
address: "707 Willow St, Brgy. San Rafael, Caloocan City"
|
price: "₱5,000 / Monthly"
|
||||||
timestamp: "12 hrs ago"
|
image: "/assets/img/SAMPLE4.png"
|
||||||
url: "#"
|
type: "Private Office"
|
||||||
image: "assets/img/SAMPLE1.png"
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -1,9 +1,8 @@
|
|||||||
---
|
---
|
||||||
layout: card
|
title: "Meeting Room in Bonifacio Global City"
|
||||||
title: "Stylish coworking space with a café"
|
address: "456 Bonifacio Street, Bonifacio Global City"
|
||||||
price: "P 1,450 / monthly"
|
timestamp: "Posted 1 hr ago"
|
||||||
address: "808 Cherry St, Brgy. San Agustin, Parañaque City"
|
price: "₱3,000 / Hourly"
|
||||||
timestamp: "13 hrs ago"
|
image: "/assets/img/SAMPLE5.png"
|
||||||
url: "#"
|
type: "Meeting Room"
|
||||||
image: "assets/img/SAMPLE2.png"
|
|
||||||
---
|
---
|
||||||
@@ -1,9 +1,8 @@
|
|||||||
---
|
---
|
||||||
layout: card
|
title: "Workshop Area in Ortigas"
|
||||||
title: "Bright coworking space with a terrace"
|
address: "789 Ortigas Avenue, Ortigas Center"
|
||||||
price: "P 1,550 / monthly"
|
timestamp: "Posted 30 mins ago"
|
||||||
address: "909 Poplar St, Brgy. San Bartolome, Las Piñas City"
|
price: "₱2,000 / Daily"
|
||||||
timestamp: "14 hrs ago"
|
image: "/assets/img/SAMPLE6.png"
|
||||||
url: "#"
|
type: "Workshop Area"
|
||||||
image: "assets/img/SAMPLE3.png"
|
|
||||||
---
|
---
|
||||||
Reference in new issue
Block a user