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

This commit is contained in:
javier committed 2026-09-21 13:32:05 +02:00
1 parent 89a7a7b8e5
commit 31d2d98d49
46 files changed
+4039 -162

No files matched your search

@@ -98,7 +98,7 @@ private extension SiteHeader {
}
}
/// The format links, plus the series and events links shown on tablet only.
/// The format links, plus the series link shown on tablet only.
var navigation: some HTML {
nav(
.class("site-nav"),
@@ -134,12 +134,6 @@ private extension SiteHeader {
) {
"Series"
}
a(
.class("site-nav__link site-nav__link--extra"),
.href(.Route.events)
) {
"Events"
}
}
}
@@ -193,7 +187,7 @@ private extension SiteHeader {
.bell,
label: "Want list",
count: viewer.newWantMatches,
unit: "new matches",
unit: viewer.newWantMatches == 1 ? "new match" : "new matches",
path: .Route.wants
)
counter(
@@ -203,13 +197,11 @@ private extension SiteHeader {
unit: "unread",
path: .Route.messages
)
if viewer.hasShop {
a(
.class("site-header__text-link site-header__text-link--strong from-tablet"),
.href(.Route.sellerDashboard)
) {
"My shop"
}
a(
.class("site-header__text-link site-header__text-link--strong from-tablet"),
.href(viewer.hasShop ? .Route.sellerDashboard : .Route.openShop)
) {
viewer.hasShop ? "My shop" : "Open a shop"
}
a(
.class("site-header__account"),
@@ -226,19 +218,6 @@ private extension SiteHeader {
viewer.initials
}
}
// Not in the design, whose sign-out lives on the account screen the prototype leaves out.
form(
.class("site-header__sign-out"),
.action(.Route.signOut),
.method(.post)
) {
button(
.class("site-header__text-link"),
.type(.submit)
) {
"Sign out"
}
}
}
/// An icon link with a count badge, omitted at zero.