import { h } from "./jsx";
import { Sidebar } from "./components/Sidebar";
import { PaliadinWidget } from "./components/PaliadinWidget";
import { BottomNav } from "./components/BottomNav";
import { Footer } from "./components/Footer";
import { PWAHead } from "./components/PWAHead";

export function renderChangelog(): string {
  return "<!DOCTYPE html>" + (
    <html lang="de">
      <head>
        <meta charset="UTF-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
        <meta name="theme-color" content="#BFF355" />
        <meta name="apple-mobile-web-app-capable" content="yes" />
        <meta name="apple-mobile-web-app-status-bar-style" content="default" />
        <PWAHead />
        <title data-i18n="changelog.title">Neuigkeiten &mdash; Paliad</title>
        <link rel="stylesheet" href="/assets/global.css" />
      </head>
      <body className="has-sidebar">
        <Sidebar currentPath="/changelog" />
        <BottomNav currentPath="/changelog" />

        <main>
          <section className="tool-page">
            <div className="container">
              <div className="tool-header">
                <h1 data-i18n="changelog.heading">Neuigkeiten</h1>
                <p className="tool-subtitle" data-i18n="changelog.subtitle">
                  Was sich in Paliad in letzter Zeit getan hat.
                </p>
              </div>

              <ol className="changelog-list" id="changelog-list" />

              <p className="changelog-empty" id="changelog-empty" style="display:none" data-i18n="changelog.empty">
                Noch keine Einträge.
              </p>
            </div>
          </section>
        </main>

        <Footer />
        <PaliadinWidget />
        <script src="/assets/changelog.js"></script>
      </body>
    </html>
  );
}
