AkurAI Build
Menu

Public repository / dd3ad2e91ac956af37ad83fd7ed5d8cbb4e17fc0

AkurAI-Platform / frontend/header.html

Latest change dd3ad2e91ac956af37ad83fd7ed5d8cbb4e17fc0 - refactor UI to use translation keys (t keys) and add Icelandic and English locales by Olafur Bui

<!doctype html>
<html lang="{{ __locale }}">
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <meta name="description" content="{{ summary }}" />
    <title>{{ title }}</title>
    <link rel="stylesheet" href="/styles.css" />
    <!-- Named multi-theme tokens (:root[data-theme]); must come after styles.css
         so the active theme's values win. -->
    <link rel="stylesheet" href="/themes.css" />
    <!-- Flash-guard: set the active theme before first paint. -->
    <script>
      (function () {
        try {
          var t = localStorage.getItem("akurai-theme");
          if (!t) t = matchMedia("(prefers-color-scheme: light)").matches ? "akurai-light" : "akurai";
          document.documentElement.setAttribute("data-theme", t);
        } catch (e) {}
      })();
    </script>
    <script type="module" src="/theme.js"></script>
  </head>
  <body>
    <header class="topbar">
      <a class="brand" href="/" aria-label="{{ brand }}">
        <span class="brand-mark" aria-hidden="true">A</span>
        <span>{{ brand }}</span>
      </a>
      <nav class="nav-links" aria-label="Primary">
        <a href="#suite">{{ t "nav.apps" }}</a>
        <a href="#why">{{ t "nav.why" }}</a>
        <a href="https://github.com/olibuijr">{{ t "nav.github" }}</a>
        <span class="theme-picker" data-theme-picker></span>
      </nav>
    </header>