Refresh Anomaly Front pages and nav

This commit is contained in:
2026-01-14 20:12:40 +01:00
parent 328f872588
commit a7108bdc20
10 changed files with 875 additions and 1030 deletions
+82 -64
View File
@@ -3,76 +3,94 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/x-icon" href="/trlstats/static/img/TRL_Logo_Custom.jpg">
<title>Gun Stats</title>
<title>Anomaly Front | Operations Hub</title>
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
</head>
<header>
<nav>
<button class="hamburger" aria-label="Toggle menu" aria-expanded="false" aria-controls="nav-menu">
<span class="bar"></span>
<span class="bar"></span>
<span class="bar"></span>
</button>
<div class="nav-menu" id="nav-menu">
<a href="{{ url_for('calculator') }}">DPS/DPM CALCULATOR</a>
<a href="{{ url_for('about_us') }}">ABOUT US</a>
<a href="{{ url_for('suggestion') }}">SUGGESTIONS & FEEDBACK</a>
<a href="https://www.roblox.com/games/5766084948/SCP-The-Red-Lake-EVENT">PLAY THE RED LAKE</a>
<a href="https://discord.gg/2jDevH8aTd">OUR DISCORD</a>
<body class="af-body">
<header class="af-header">
<div class="af-brand">
<div class="af-logo" aria-hidden="true">
<span></span>
<span></span>
<span></span>
</div>
<div>
<p class="af-title">Anomaly Front</p>
<p class="af-subtitle">Operations hub for the unreleased toolkit.</p>
</div>
</div>
<button class="af-nav-toggle" type="button" aria-expanded="false" aria-controls="af-nav">
Menu
</button>
<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>
</header>
<body class="background-image">
<main>
<h1>Gun Stats</h1>
<div class="search-container">
<input type="text" id="search" placeholder="Search by name" onkeyup="filterTable()">
</div>
<table id="gun-stats" class="background-roster">
<thead>
<tr>
<th>Name</th>
<th>Damage</th>
<th>Rounds per minute</th>
<th>Magazine Size</th>
<th>Reload time</th>
<th>RPS</th>
<th>DPS</th>
<th>DPM</th>
<th>Avg DPS</th>
</tr>
</thead>
<tbody>
<!-- Gun stats will be populated here -->
</tbody>
</table>
<script src="{{ url_for('static', filename='populateTable.js') }}"></script>
<script src="{{ url_for('static', filename='filterTable.js') }}"></script>
<script>
const hamburger = document.querySelector('.hamburger');
const navMenu = document.querySelector('.nav-menu');
<main class="af-shell">
<section class="af-hero">
<div>
<h1>Welcome to the Anomaly Front planning space</h1>
<p>
This hub replaces the legacy stats pages with a clean foundation for a new game. Start with the
calculator, capture balancing ideas, and iterate as official data arrives.
</p>
</div>
<div class="af-status">
<div>
<p class="af-status-label">Core modules</p>
<p class="af-status-value">Calculator • Notes • Roadmap</p>
</div>
<div>
<p class="af-status-label">Data state</p>
<p class="af-status-value">Prototype-only</p>
</div>
<div>
<p class="af-status-label">Next release</p>
<p class="af-status-value">Loadout library</p>
</div>
</div>
</section>
function setMenu(open) {
hamburger.classList.toggle('active', open);
navMenu.classList.toggle('active', open);
document.body.classList.toggle('menu-open', open);
hamburger.setAttribute('aria-expanded', open ? 'true' : 'false');
}
hamburger.addEventListener('click', () => {
const isOpen = hamburger.classList.contains('active');
setMenu(!isOpen);
});
document.addEventListener('keydown', (e) => {
if (e.key === 'Escape') setMenu(false);
});
navMenu.querySelectorAll('a').forEach(link =>
link.addEventListener('click', () => setMenu(false))
);
</script>
<section class="af-grid">
<div class="af-card">
<div class="af-card-header">
<h2>Start a baseline build</h2>
<p>Jump into the combat calculator and block out a weapon profile in minutes.</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 early feedback</h2>
<p>Use the feedback page to log concepts, UI tweaks, and balancing 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>Align on the vision</h2>
<p>Keep the team on the same page with the updated Anomaly Front background.</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');
navToggle.addEventListener('click', () => {
const isOpen = nav.classList.toggle('is-open');
navToggle.setAttribute('aria-expanded', isOpen ? 'true' : 'false');
});
</script>
</body>
</html>