Navbar: mark + Carino + product name, About window replaces the bar's buttons
The shared navbar (canonical CVE/carino-navbar.js) now shows the mark, the Carino wordmark and the product name, the clock, and one About button. The About window has tabs: About (one-liner, large mark, Disclaimer, version), How to use, Contact, Licence (summary, buttons, third-party), Language (grid plus the product's key words floating in Carino gold), Legal. The privacy line moved from the page into the About disclaimer.
This commit is contained in:
parent
f8a2261961
commit
894659f8c0
4 changed files with 735 additions and 287 deletions
|
|
@ -7,10 +7,12 @@
|
|||
|
||||
<script src="carino-lang.js" defer></script>
|
||||
|
||||
It injects a compact language button (a language glyph + AUTO,
|
||||
or the picked code: EN / ES / PT / 日本語 / RU) into the header's
|
||||
right cluster, left of the Sys. Status control. Clicking it opens
|
||||
a dropdown: Auto (follow the browser) plus the five languages.
|
||||
Next to the shared navbar it draws no button: the navbar's About
|
||||
window has a Language tab that calls CarinoLang.set(). Only a bespoke
|
||||
header (the hub's inline one) still gets the compact language button
|
||||
(a language glyph + AUTO, or the picked code: EN / ES / PT / 日本語 /
|
||||
RU), left of its Sys. Status control, which opens a dropdown: Auto
|
||||
(follow the browser) plus the five languages.
|
||||
|
||||
AUTOMATIC: the language resolves without any user action —
|
||||
?lang= in the URL > fleet-wide choice > browser language
|
||||
|
|
@ -336,6 +338,9 @@
|
|||
// injected navbar's .cn-right (carino-navbar.js). Sit LEFT of Sys. Status.
|
||||
function tryAttach() {
|
||||
var nav = document.getElementById('carinoNav');
|
||||
// The shared navbar shows the languages in its About window (a Language
|
||||
// tab that calls CarinoLang.set), so it gets no button here.
|
||||
if (nav && nav.hasAttribute('data-cn-lang')) return true;
|
||||
if (nav) {
|
||||
var right = nav.querySelector('.cn-right');
|
||||
if (right) { build(right, document.getElementById('cnDiagBtn') || right.querySelector('.social-row')); return true; }
|
||||
|
|
|
|||
970
carino-navbar.js
970
carino-navbar.js
File diff suppressed because it is too large
Load diff
|
|
@ -275,10 +275,15 @@
|
|||
============================================================ */
|
||||
:root[data-carino-theme="color"] #carinoNav {
|
||||
--cn-accent: var(--accent); --cn-bg: var(--bg); --cn-border: var(--border);
|
||||
--cn-text: var(--text); --cn-muted: var(--text-muted);
|
||||
--cn-text: var(--text); --cn-muted: var(--text-muted); --cn-faint: var(--accent-faint);
|
||||
background: var(--bg); border-bottom-color: var(--border);
|
||||
}
|
||||
:root[data-carino-theme="color"] #carinoNav .brand-name { background-image: var(--gold-text); }
|
||||
:root[data-carino-theme="color"] #carinoNav .brand-name,
|
||||
:root[data-carino-theme="color"] #carinoNav .cn-fl b { background-image: var(--gold-text); }
|
||||
:root[data-carino-theme="color"] #carinoNav .cn-product:hover,
|
||||
:root[data-carino-theme="color"] #carinoNav .cn-product:focus-visible { text-shadow: none; color: var(--accent); -webkit-text-fill-color: var(--accent); }
|
||||
:root[data-carino-theme="color"] #carinoNav .cn-tab:hover { background: var(--bg-elev); }
|
||||
:root[data-carino-theme="color"] #carinoNav .cn-lang[aria-checked="true"] { color: var(--accent); }
|
||||
:root[data-carino-theme="color"] #carinoNav .app-tag:hover { background: var(--accent-faint); }
|
||||
:root[data-carino-theme="color"] #carinoNav .clock-tz { color: var(--ct-on-accent); }
|
||||
:root[data-carino-theme="color"] #carinoNav .icon-btn:hover { color: var(--ct-on-accent); box-shadow: var(--ct-shadow-1); }
|
||||
|
|
|
|||
|
|
@ -81,6 +81,14 @@
|
|||
</style>
|
||||
</head>
|
||||
<body class="play-body">
|
||||
<!-- Key words: the navbar shows them, translated, under its Language tab. -->
|
||||
<ul data-carino-words hidden>
|
||||
<li>How to play</li>
|
||||
<li>Help</li>
|
||||
<li>Resume</li>
|
||||
<li>Fullscreen</li>
|
||||
</ul>
|
||||
|
||||
<div data-carino-actions>
|
||||
<button type="button" class="cs-btn" id="ccPause" aria-pressed="false">Pause</button>
|
||||
<button type="button" class="cs-btn" id="ccHelpBtn" data-priority="1" aria-haspopup="dialog" aria-controls="ccHelp">? <span data-i18n>Help</span></button>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue