Implemented phase 5 for the POC prototype in the Website service.
This commit is contained in:
1 parent
89a7a7b8e5
commit
31d2d98d49
46 files changed
+4039
-162
No files matched your search
@@ -30,13 +30,13 @@ struct ListingCard: HTML {
|
||||
|
||||
var body: some HTML {
|
||||
article(.class("listing-card")) {
|
||||
// Saving is a gated action: signed out, it leads to the sign-in screen.
|
||||
// Saving a copy adds a want for it; signed out, the want list leads to the sign-in screen first.
|
||||
a(
|
||||
.class("listing-card__save"),
|
||||
.href(.Route.signIn(returningTo: listing.path)),
|
||||
.href(.Route.newWant(listing: listing.slug)),
|
||||
.custom(
|
||||
name: "aria-label",
|
||||
value: "Save \(listing.title) to watchlist"
|
||||
value: "Add \(listing.title) to your want list"
|
||||
)
|
||||
) {
|
||||
Icon(.bookmark, size: 18)
|
||||
|
||||
Reference in new issue
Block a user