openvibers/openvibe.shoes Commits

open.shoes: the right name in the navbar, and the home in the page's width (#2)

OP OpenVibers committed 13 days ago · befc7c425d · 2 files, +5 −1

Changes

ddiff --git a/server/render/layout.js b/server/render/layout.js
iindex a1c7537..bb20ade 100644
---- a/server/render/layout.js
++++ b/server/render/layout.js
@@@ -53,6 +53,8 @@ function layout(o) {
const canonical = o.canonical === undefined ? `${String(config.baseUrl).replace(/\/+$/, '')}${pathNow.split('?')[0]}` : o.canonical;
const navbar = {
service: 'shoes',
++ // open.shoes is not an openvibe.<tld> host, so the navbar cannot read the name from it (it said OpenVibe.Network).
++ brand: { tld: 'shoes', tldLabel: 'Shoes' },
apiBase: NETWORK_URL,
links: NAV.map((l) => ({ ...l, active: l.href === active || (l.href !== '/' && pathNow.startsWith(`${l.href}/`)) })),
appBar: [
ddiff --git a/server/views/index.js b/server/views/index.js
iindex 6c33844..028b490 100644
---- a/server/views/index.js
++++ b/server/views/index.js
@@@ -287,7 +287,9 @@ function home({ facets = {}, dropping = [], dropsToday = [], popular = [], curve
const railAt = body.indexOf('<section class="ovk-rail');
const sceneAt = body.indexOf('<section class="sc-room-scenes"');
const at = railAt >= 0 ? railAt : sceneAt;
-- return at < 0 ? `${body}${priceDropSection}` : `${body.slice(0, at)}${priceDropSection}${body.slice(at)}`;
++ // The home sits in the page's width like every other page (it ran edge to edge, 10-31).
++ const page = at < 0 ? `${body}${priceDropSection}` : `${body.slice(0, at)}${priceDropSection}${body.slice(at)}`;
++ return `<div class="sh-wrap sh-home">${page}</div>`;
}
// ── Search ──────────────────────────────────────────────────