feat(showcase): add temporary language switcher for visitors with cookie persistence

This commit is contained in:
2026-07-07 09:57:20 +08:00
parent 02269417a9
commit a619b919be
3 changed files with 33 additions and 2 deletions

View File

@@ -39,6 +39,7 @@ a:hover { text-decoration: underline; }
.lang-option { display: block; width: 100%; padding: .35rem .75rem; border: none; background: none; text-align: left; font-size: .8rem; color: var(--text); cursor: pointer; white-space: nowrap; }
.lang-option:hover { background: var(--bg); color: var(--primary); }
.lang-option.active { color: var(--primary); font-weight: 600; }
.showcase-lang-bar { position: fixed; top: 1rem; right: 1.5rem; z-index: 100; }
/* Container */
.container { max-width: 960px; margin: 2rem auto; padding: 0 1.5rem; }