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
+55 -52
View File
@@ -3,70 +3,73 @@
<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">
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
<title>Suggestion</title>
<title>Feedback | Anomaly Front</title>
</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('index') }}">GUN STATS</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">Feedback channel</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('index') }}">Home</a>
<a class="af-nav-link" href="{{ url_for('calculator') }}">Calculator</a>
<a class="af-nav-link" href="{{ url_for('about_us') }}">About</a>
</nav>
</header>
<body>
<main class="background-image">
<h1>Suggestion</h1>
<h3 class="suggestion-title"><b>Welcome to Suggestions!</b><br> We encourage you to share your ideas, improvments,
or even fun comments with us, so we can develop this website further.</h3>
<article>
<label for="name">Pseudoname:</label>
<input type="text" id="name" name="name" placeholder="not required"><br><br>
<main class="af-shell">
<section class="af-card">
<div class="af-card-header">
<h1>Share your feedback</h1>
<p>
Help us shape the Anomaly Front toolkit. Share feature requests, balance ideas, or UI tweaks and we
will log them for the next iteration.
</p>
</div>
<article class="af-form">
<label class="af-field" for="name">
Pseudoname
<input class="af-input" type="text" id="name" name="name" placeholder="Optional">
</label>
<label for="rate">Rating:</label>
<input type="number" id="rate" name="rating" min="1" max="10" required><br><br>
<label class="af-field" for="rate">
Rating
<input class="af-input" type="number" id="rate" name="rating" min="1" max="10" required>
</label>
<label for="text">Text:</label>
<textarea id="text" name="text" rows="4" cols="50" placeholder="Enter your comments here..." minlength="5"
maxlength="500" required></textarea><br><br>
</article>
<button class="button1" type="button" onclick="sendMessage()">Send</button>
<p id="successMessage" style="display: none;" aria-live="polite" role="status"></p>
<p id="errorMessage" style="display: none; color: crimson;" aria-live="polite" role="status"></p>
<label class="af-field" for="text">
Feedback
<textarea class="af-input" id="text" name="text" rows="4" cols="50" placeholder="Enter your comments here..." minlength="5"
maxlength="500" required></textarea>
</label>
</article>
<div class="af-form-actions">
<button class="af-cta" type="button" onclick="sendMessage()">Send feedback</button>
</div>
<p id="successMessage" style="display: none;" aria-live="polite" role="status"></p>
<p id="errorMessage" style="display: none; color: crimson;" aria-live="polite" role="status"></p>
</section>
</main>
<script src="{{ url_for('static', filename='suggestion.js') }}"></script>
<script>
const hamburger = document.querySelector('.hamburger');
const navMenu = document.querySelector('.nav-menu');
const navToggle = document.querySelector('.af-nav-toggle');
const nav = document.getElementById('af-nav');
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);
navToggle.addEventListener('click', () => {
const isOpen = nav.classList.toggle('is-open');
navToggle.setAttribute('aria-expanded', isOpen ? 'true' : 'false');
});
document.addEventListener('keydown', (e) => {
if (e.key === 'Escape') setMenu(false);
});
navMenu.querySelectorAll('a').forEach(link =>
link.addEventListener('click', () => setMenu(false))
);
</script>
</body>
</html>