openvibers/openvibe.host Commits

The bar: the main places with icons (the phone app bar), the rest under More, Search is the magnifier (#178)

OP OpenVibers committed 16 days ago · a0fc357151 · 1 file, +11 −1

Changes

ddiff --git a/server/render/layout.js b/server/render/layout.js
iindex b0285c0..65c74c0 100644
---- a/server/render/layout.js
++++ b/server/render/layout.js
@@@ -14,7 +14,16 @@ const frame = require('openvibe-shared/frame');
const shell = require('openvibe-shared/shell');
const NETWORK_URL = 'https://openvibe.network';
--const NAV_LINKS = () => [{ label: 'Compare', href: '/catalog' }, { label: 'Console', href: '/console' }, { label: 'Domains', href: '/catalog/domains' }, { label: 'Benchmarks', href: '/catalog/benchmarks' }, { label: 'Offers', href: '/catalog/offers' }, { label: 'Promotions', href: '/catalog/promos' }];
++// The product's own places: the main ones carry an icon (phones get them as the bottom tab bar), the rest fold
++// into the navbar's More (Shared 4.22). Search is the navbar's magnifier; What shipped is the footer's.
++const NAV_LINKS = () => [
++ { label: 'Compare', href: '/catalog', icon: 'fa-chart-line' },
++ { label: 'Domains', href: '/catalog/domains', icon: 'fa-globe' },
++ { label: 'Offers', href: '/catalog/offers', icon: 'fa-tag' },
++ { label: 'Console', href: '/console', icon: 'fa-gauge-high' },
++ { label: 'Benchmarks', href: '/catalog/benchmarks', icon: 'fa-gauge-high', more: true },
++ { label: 'Promotions', href: '/catalog/promos', icon: 'fa-ticket', more: true },
++];
const DESCRIPTION = 'OpenVibe.Host: hosting plans compared, every price dated and sourced.';
const SITE_NAME = 'OpenVibe.Host';
const PUBLIC_DIR = path.join(__dirname, '..', '..', 'public');
@@@ -45,6 +54,7 @@ function renderPage(o) {
service: 'host',
apiBase: NETWORK_URL,
links: NAV_LINKS(signedIn),
++ appBar: true, // phones: the places with icons as the bottom tab bar (Shared 4.20)
history: { type: 'page', title: o.title || SITE_NAME },
silentLogin: `${o.config.baseUrl}/auth/login?silent=1&next={url}`,
sessionUrl: '/auth/me',