mirror of
git://f0xx.org/android_cast
synced 2026-07-29 04:38:53 +03:00
Add static Android Cast project hub landing page.
Three card links (reports, git, tickets) match crash console styling with stronger hover lift; nginx serves index.html at /app/androidcast_project/ instead of redirecting to crashes. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
70
examples/app_hub/index.html
Normal file
70
examples/app_hub/index.html
Normal file
@@ -0,0 +1,70 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en" data-theme="dark">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>Android Cast — Project hub</title>
|
||||
<script>
|
||||
(function () {
|
||||
var t = localStorage.getItem('crash_console_theme');
|
||||
if (t === 'light' || t === 'dark') document.documentElement.setAttribute('data-theme', t);
|
||||
})();
|
||||
</script>
|
||||
<link rel="stylesheet" href="/app/androidcast_project/crashes/assets/css/app.css">
|
||||
<link rel="stylesheet" href="/app/androidcast_project/hub.css">
|
||||
</head>
|
||||
<body class="hub-page">
|
||||
<div class="shell hub-shell">
|
||||
<main class="main-pane hub-main">
|
||||
<header class="hub-header">
|
||||
<h1 class="hub-title">Android Cast</h1>
|
||||
<p class="muted hub-subtitle">Project hub</p>
|
||||
<label class="toolbar-select hub-theme">
|
||||
<span>Theme</span>
|
||||
<select id="theme-select" aria-label="UI theme">
|
||||
<option value="dark">Dark</option>
|
||||
<option value="light">Light</option>
|
||||
</select>
|
||||
</label>
|
||||
</header>
|
||||
<nav class="hub-cards cards cards--lift" aria-label="Android Cast apps">
|
||||
<a class="hub-card card card--lift"
|
||||
href="https://apps.f0xx.org/app/androidcast_project/crashes/?view=reports">
|
||||
<span class="hub-card-icon" aria-hidden="true">
|
||||
<span class="nav-icon nav-icon--reports"></span>
|
||||
</span>
|
||||
<span class="hub-card-label">AndroidCast reports</span>
|
||||
</a>
|
||||
<a class="hub-card card card--lift"
|
||||
href="https://apps.f0xx.org/app/androidcast_project/git/">
|
||||
<span class="hub-card-icon" aria-hidden="true">
|
||||
<span class="nav-icon nav-icon--git"></span>
|
||||
</span>
|
||||
<span class="hub-card-label">AndroidCast git</span>
|
||||
</a>
|
||||
<a class="hub-card card card--lift"
|
||||
href="https://apps.f0xx.org/app/androidcast_project/crashes/?view=tickets">
|
||||
<span class="hub-card-icon" aria-hidden="true">
|
||||
<span class="nav-icon nav-icon--tickets"></span>
|
||||
</span>
|
||||
<span class="hub-card-label">AndroidCast tickets</span>
|
||||
</a>
|
||||
</nav>
|
||||
</main>
|
||||
</div>
|
||||
<footer class="bottom-bar">(c) Anton Afanaasyeu</footer>
|
||||
<script>
|
||||
(function () {
|
||||
var sel = document.getElementById('theme-select');
|
||||
if (!sel) return;
|
||||
var cur = document.documentElement.getAttribute('data-theme') || 'dark';
|
||||
sel.value = cur;
|
||||
sel.addEventListener('change', function () {
|
||||
var v = sel.value;
|
||||
document.documentElement.setAttribute('data-theme', v);
|
||||
try { localStorage.setItem('crash_console_theme', v); } catch (e) {}
|
||||
});
|
||||
})();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user