Implemented phase 4 for the POC prototype in the Website service.

This commit is contained in:
javier committed 2026-09-21 12:55:35 +02:00
1 parent 95e0a455e8
commit 9403931109
42 files changed
+3407 -36

No files matched your search

@@ -62,7 +62,21 @@ extension ListingPage: Page {
breadcrumb
div(.class("listing__body")) {
div(.class("listing__media")) {
Cover(listing.cover, modifier: "cover--hero")
ListingImage(listing, modifier: "cover--hero")
if listing.photos.count > 1 {
ul(.class("listing__photos")) {
ForEach(Array(listing.photos.dropFirst())) { photo in
li {
img(
.class("photo"),
.src(photo),
.alt("Another photo of \(listing.title)"),
.custom(name: "loading", value: "lazy")
)
}
}
}
}
}
div(.class("listing__main")) {
div(.class("listing__intro")) {
@@ -300,6 +314,7 @@ private extension ListingPage {
("Printing", listing.printingDetail),
(listing.grade == nil ? "Condition" : "Grade", grade),
("Page quality", listing.pageQuality),
("Declared defects", listing.defects.isEmpty ? nil : listing.defects.joined(separator: "; ")),
("Key notes", listing.keyNotes),
("Ships", "\(listing.shop.shipsNote.prefix(1).uppercased())\(listing.shop.shipsNote.dropFirst()) · \(listing.shop.handlingDays) business days handling"),
].compactMap { term, value in