openvibers/openvibe.games Commits

Navbar: Games and Leaderboard with icons; the three games under More (#185)

OP OpenVibers committed 16 days ago · 0bcc50ae27 · 1 file, +7 −5

Changes

ddiff --git a/apps/client/public/frame.js b/apps/client/public/frame.js
iindex 64064b4..30e658b 100644
---- a/apps/client/public/frame.js
++++ b/apps/client/public/frame.js
@@@ -53,12 +53,14 @@
}
var here = location.pathname + location.search
++ // The two places people go every visit carry an icon; each game folds into the navbar's More (Shared 4.22): the
++ // portal lists them all anyway, and five same-looking links read as clutter on a phone.
var links = [
-- { label: 'Games', href: PORTAL },
-- { label: 'Scraplandia', href: PLAY },
-- { label: 'Salvage Rush', href: RUSH },
-- { label: 'Vibe Heroes', href: HEROES },
-- { label: 'Leaderboard', href: BOARD },
++ { label: 'Games', href: PORTAL, icon: 'fa-gamepad' },
++ { label: 'Leaderboard', href: BOARD, icon: 'fa-trophy' },
++ { label: 'Scraplandia', href: PLAY, more: true },
++ { label: 'Salvage Rush', href: RUSH, more: true },
++ { label: 'Vibe Heroes', href: HEROES, more: true },
]
// The shared footer's items are { name, url } (label/href rendered empty links).
var footerLinks = [