117 lines
4.4 KiB
HTML
117 lines
4.4 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Anomaly Front | Operations Hub</title>
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
|
|
</head>
|
|
<body class="af-body">
|
|
<header class="af-header">
|
|
<div class="af-brand">
|
|
<div>
|
|
<p class="af-title">Anomaly Front</p>
|
|
<p class="af-subtitle">Operations hub</p>
|
|
</div>
|
|
</div>
|
|
<nav class="af-nav" id="af-nav" aria-label="Primary">
|
|
<a class="af-nav-link" href="{{ url_for('calculator') }}">Calculator</a>
|
|
<a class="af-nav-link" href="{{ url_for('suggestion') }}">Feedback</a>
|
|
<a class="af-nav-link" href="{{ url_for('about_us') }}">About</a>
|
|
</nav>
|
|
<div class="af-header-actions">
|
|
<button class="af-theme-toggle" type="button" aria-pressed="false">
|
|
<span class="af-theme-toggle-label">Dark mode</span>
|
|
</button>
|
|
<button class="af-nav-toggle" type="button" aria-expanded="false" aria-controls="af-nav">
|
|
Menu
|
|
</button>
|
|
</div>
|
|
</header>
|
|
<main class="af-shell">
|
|
<section class="af-hero">
|
|
<div>
|
|
<h1>Welcome to the Anomaly Front Calculator!</h1>
|
|
<p>
|
|
This hub allows simple and quick loadout planning. Start with the
|
|
calculator, capture balancing ideas, and iterate as your operative and weapon kit evolves.
|
|
</p>
|
|
</div>
|
|
<div class="af-status">
|
|
<div>
|
|
<p class="af-status-label">Current Version</p>
|
|
<p class="af-status-value">v0.2</p>
|
|
</div>
|
|
<div>
|
|
<p class="af-status-label">Data state</p>
|
|
<p class="af-status-value">Draft</p>
|
|
</div>
|
|
<div>
|
|
<p class="af-status-label">Next release</p>
|
|
<p class="af-status-value">Loadout library</p>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<section class="af-grid">
|
|
<div class="af-card">
|
|
<div class="af-card-header">
|
|
<h2>Build <b>your</b> ideal loadout</h2>
|
|
<p>Jump into the Weapon Factory and find what weapon fits your playstyle.</p>
|
|
</div>
|
|
<div class="af-card-actions">
|
|
<a class="af-cta" href="{{ url_for('calculator') }}">Open calculator</a>
|
|
</div>
|
|
</div>
|
|
<div class="af-card">
|
|
<div class="af-card-header">
|
|
<h2>Capture personal feedback</h2>
|
|
<p>Use the Radio Tower to share thoughts, feedback, and ideas.</p>
|
|
</div>
|
|
<div class="af-card-actions">
|
|
<a class="af-cta" href="{{ url_for('suggestion') }}">Leave feedback</a>
|
|
</div>
|
|
</div>
|
|
<div class="af-card">
|
|
<div class="af-card-header">
|
|
<h2>Learn about the founders</h2>
|
|
<p>Find out more about this place and the origins.</p>
|
|
</div>
|
|
<div class="af-card-actions">
|
|
<a class="af-cta" href="{{ url_for('about_us') }}">Read the brief</a>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</main>
|
|
<script>
|
|
const navToggle = document.querySelector('.af-nav-toggle');
|
|
const nav = document.getElementById('af-nav');
|
|
const themeToggle = document.querySelector('.af-theme-toggle');
|
|
const themeLabel = document.querySelector('.af-theme-toggle-label');
|
|
const THEME_KEY = 'af-theme';
|
|
|
|
const setTheme = (theme) => {
|
|
document.body.classList.toggle('theme-dark', theme === 'dark');
|
|
document.body.classList.toggle('theme-light', theme === 'light');
|
|
themeToggle.setAttribute('aria-pressed', theme === 'dark');
|
|
themeLabel.textContent = theme === 'dark' ? 'Light mode' : 'Dark mode';
|
|
localStorage.setItem(THEME_KEY, theme);
|
|
};
|
|
|
|
const storedTheme = localStorage.getItem(THEME_KEY);
|
|
const prefersDark = window.matchMedia('(prefers-color-scheme: dark)').matches;
|
|
setTheme(storedTheme || (prefersDark ? 'dark' : 'light'));
|
|
|
|
themeToggle.addEventListener('click', () => {
|
|
const isDark = document.body.classList.contains('theme-dark');
|
|
setTheme(isDark ? 'light' : 'dark');
|
|
});
|
|
|
|
navToggle.addEventListener('click', () => {
|
|
const isOpen = nav.classList.toggle('is-open');
|
|
navToggle.setAttribute('aria-expanded', isOpen ? 'true' : 'false');
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|