feat: Add space type and update card rendering

This commit is contained in:
Kerby Martino (aider) committed 2025-05-12 23:38:30 +08:00
1 parent 5494567474
commit d15ffd5bd2
5 files changed
+36 -30

No files matched your search

+12 -1
View File
@@ -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 }}">
<!-- 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">
<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>
</a>
</div>
+6 -7
View File
@@ -1,9 +1,8 @@
---
layout: card
title: "Modern coworking space with great amenities"
price: "P 1,500 / monthly"
address: "123 Main St, Brgy. San Roque, Makati City"
timestamp: "2 hrs ago"
url: "#"
image: "assets/img/SAMPLE1.png"
title: "Cozy coworking space in the heart of the south"
address: "Incub8 space, Centennial Road, Brgy. Batong Dalig, Kawit, Cavite"
timestamp: "Posted 5 hrs ago"
price: "₱1,200 / Daily"
image: "/assets/img/SAMPLE3.png"
type: "Desk"
---
+6 -8
View File
@@ -1,10 +1,8 @@
---
layout: card
title: "Charming coworking space with a garden"
price: "P 1,350 / monthly"
address: "707 Willow St, Brgy. San Rafael, Caloocan City"
timestamp: "12 hrs ago"
url: "#"
image: "assets/img/SAMPLE1.png"
title: "Private Office in Makati"
address: "123 Makati Avenue, Makati City"
timestamp: "Posted 2 hrs ago"
price: "₱5,000 / Monthly"
image: "/assets/img/SAMPLE4.png"
type: "Private Office"
---
+6 -7
View File
@@ -1,9 +1,8 @@
---
layout: card
title: "Stylish coworking space with a café"
price: "P 1,450 / monthly"
address: "808 Cherry St, Brgy. San Agustin, Parañaque City"
timestamp: "13 hrs ago"
url: "#"
image: "assets/img/SAMPLE2.png"
title: "Meeting Room in Bonifacio Global City"
address: "456 Bonifacio Street, Bonifacio Global City"
timestamp: "Posted 1 hr ago"
price: "₱3,000 / Hourly"
image: "/assets/img/SAMPLE5.png"
type: "Meeting Room"
---
+6 -7
View File
@@ -1,9 +1,8 @@
---
layout: card
title: "Bright coworking space with a terrace"
price: "P 1,550 / monthly"
address: "909 Poplar St, Brgy. San Bartolome, Las Piñas City"
timestamp: "14 hrs ago"
url: "#"
image: "assets/img/SAMPLE3.png"
title: "Workshop Area in Ortigas"
address: "789 Ortigas Avenue, Ortigas Center"
timestamp: "Posted 30 mins ago"
price: "₱2,000 / Daily"
image: "/assets/img/SAMPLE6.png"
type: "Workshop Area"
---