Merge pull request #2 from Fretuks/overhaul-calculator-for-anomaly-front
Refresh Anomaly Front pages, nav and calculator UI; fix input focus
This commit is contained in:
+155
-21
@@ -282,9 +282,9 @@ input[type="text"], input[type="number"], textarea {
|
||||
}
|
||||
|
||||
input[type="text"]:focus, input[type="number"]:focus, textarea:focus {
|
||||
border-color: black;
|
||||
box-shadow: 0 0 5px darkred;
|
||||
background-color: #fff;
|
||||
border-color: #60a5fa;
|
||||
box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.35);
|
||||
background-color: #0f172a;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
@@ -1073,9 +1073,9 @@ th, td {
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 24px;
|
||||
background: rgba(15, 23, 42, 0.7);
|
||||
border: 1px solid rgba(148, 163, 184, 0.2);
|
||||
border-radius: 20px;
|
||||
background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(30, 41, 59, 0.6));
|
||||
border: 1px solid rgba(148, 163, 184, 0.25);
|
||||
border-radius: 24px;
|
||||
padding: 20px 28px;
|
||||
margin-bottom: 24px;
|
||||
position: relative;
|
||||
@@ -1083,22 +1083,50 @@ th, td {
|
||||
backdrop-filter: blur(12px);
|
||||
}
|
||||
|
||||
.af-header::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
border-radius: 24px;
|
||||
padding: 1px;
|
||||
background: linear-gradient(120deg, rgba(56, 189, 248, 0.6), rgba(59, 130, 246, 0.2), rgba(14, 116, 144, 0.5));
|
||||
-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
|
||||
-webkit-mask-composite: xor;
|
||||
mask-composite: exclude;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.af-brand {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.af-badge {
|
||||
font-size: 0.9rem;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
background: rgba(59, 130, 246, 0.2);
|
||||
color: #bae6fd;
|
||||
padding: 6px 12px;
|
||||
border-radius: 999px;
|
||||
border: 1px solid rgba(59, 130, 246, 0.35);
|
||||
.af-logo {
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
grid-template-rows: repeat(2, 1fr);
|
||||
gap: 4px;
|
||||
padding: 6px;
|
||||
border-radius: 14px;
|
||||
background: rgba(15, 23, 42, 0.8);
|
||||
border: 1px solid rgba(148, 163, 184, 0.35);
|
||||
box-shadow: 0 8px 20px rgba(2, 6, 23, 0.45);
|
||||
}
|
||||
|
||||
.af-logo span {
|
||||
border-radius: 6px;
|
||||
background: linear-gradient(135deg, rgba(56, 189, 248, 0.9), rgba(59, 130, 246, 0.6));
|
||||
}
|
||||
|
||||
.af-logo span:nth-child(2) {
|
||||
background: linear-gradient(135deg, rgba(14, 116, 144, 0.9), rgba(2, 132, 199, 0.6));
|
||||
}
|
||||
|
||||
.af-logo span:nth-child(3) {
|
||||
background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(15, 23, 42, 0.6));
|
||||
}
|
||||
|
||||
.af-title {
|
||||
@@ -1114,27 +1142,63 @@ th, td {
|
||||
font-size: 0.95rem;
|
||||
}
|
||||
|
||||
.af-nav-toggle {
|
||||
display: none;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 8px 14px;
|
||||
border-radius: 999px;
|
||||
background: rgba(15, 23, 42, 0.6);
|
||||
border: 1px solid rgba(148, 163, 184, 0.35);
|
||||
color: #e2e8f0;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.af-nav {
|
||||
display: flex;
|
||||
gap: 16px;
|
||||
flex-wrap: wrap;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.af-nav a {
|
||||
.af-nav-link {
|
||||
position: relative;
|
||||
color: #e2e8f0;
|
||||
font-weight: 500;
|
||||
padding: 8px 14px;
|
||||
padding: 8px 16px;
|
||||
border-radius: 999px;
|
||||
border: 1px solid rgba(148, 163, 184, 0.2);
|
||||
border: 1px solid rgba(148, 163, 184, 0.3);
|
||||
background: rgba(15, 23, 42, 0.4);
|
||||
transition: transform 0.2s ease, box-shadow 0.2s ease;
|
||||
}
|
||||
|
||||
.af-nav a:hover {
|
||||
.af-nav-link::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
left: 16px;
|
||||
right: 16px;
|
||||
bottom: 6px;
|
||||
height: 2px;
|
||||
border-radius: 999px;
|
||||
background: linear-gradient(90deg, rgba(56, 189, 248, 0), rgba(56, 189, 248, 0.9), rgba(56, 189, 248, 0));
|
||||
opacity: 0;
|
||||
transition: opacity 0.2s ease;
|
||||
}
|
||||
|
||||
.af-nav-link:hover {
|
||||
color: #fff;
|
||||
background: rgba(59, 130, 246, 0.3);
|
||||
box-shadow: 0 10px 20px rgba(14, 116, 144, 0.2);
|
||||
transform: translateY(-1px);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.af-nav-link:hover::after {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.af-shell {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@@ -1201,6 +1265,29 @@ th, td {
|
||||
box-shadow: 0 16px 30px rgba(2, 6, 23, 0.35);
|
||||
}
|
||||
|
||||
.af-card-actions {
|
||||
margin-top: 18px;
|
||||
}
|
||||
|
||||
.af-cta {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 10px 18px;
|
||||
border-radius: 999px;
|
||||
background: linear-gradient(120deg, rgba(56, 189, 248, 0.9), rgba(59, 130, 246, 0.85));
|
||||
color: #f8fafc;
|
||||
font-weight: 600;
|
||||
border: 1px solid rgba(56, 189, 248, 0.6);
|
||||
box-shadow: 0 12px 24px rgba(14, 116, 144, 0.35);
|
||||
}
|
||||
|
||||
.af-cta:hover {
|
||||
color: #fff;
|
||||
text-decoration: none;
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.af-card-header h2 {
|
||||
margin-top: 0;
|
||||
color: #f8fafc;
|
||||
@@ -1229,6 +1316,31 @@ th, td {
|
||||
color: #f8fafc;
|
||||
}
|
||||
|
||||
.af-form input:focus,
|
||||
.af-notes:focus,
|
||||
.af-input:focus {
|
||||
border-color: rgba(56, 189, 248, 0.7);
|
||||
box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.35);
|
||||
background: rgba(15, 23, 42, 0.92);
|
||||
color: #f8fafc;
|
||||
}
|
||||
|
||||
.af-field {
|
||||
display: grid;
|
||||
gap: 6px;
|
||||
color: #e2e8f0;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.af-input {
|
||||
width: 100%;
|
||||
padding: 12px 14px;
|
||||
border-radius: 12px;
|
||||
background: rgba(15, 23, 42, 0.8);
|
||||
border: 1px solid rgba(148, 163, 184, 0.3);
|
||||
color: #f8fafc;
|
||||
}
|
||||
|
||||
.af-form-actions {
|
||||
display: flex;
|
||||
gap: 12px;
|
||||
@@ -1325,6 +1437,17 @@ th, td {
|
||||
resize: vertical;
|
||||
}
|
||||
|
||||
.af-copy-grid {
|
||||
display: grid;
|
||||
gap: 18px;
|
||||
color: #cbd5f5;
|
||||
}
|
||||
|
||||
.af-copy-grid ul {
|
||||
padding-left: 18px;
|
||||
margin: 8px 0 0;
|
||||
}
|
||||
|
||||
@media (max-width: 720px) {
|
||||
.af-body {
|
||||
padding: 20px;
|
||||
@@ -1335,8 +1458,19 @@ th, td {
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.af-nav-toggle {
|
||||
display: inline-flex;
|
||||
}
|
||||
|
||||
.af-nav {
|
||||
width: 100%;
|
||||
justify-content: flex-start;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: 10px;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.af-nav.is-open {
|
||||
display: flex;
|
||||
}
|
||||
}
|
||||
|
||||
+78
-94
@@ -3,114 +3,98 @@
|
||||
<head>
|
||||
<meta charset="UTF-8"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||
<title>About Us - TRL Stats</title>
|
||||
<title>About | Anomaly Front Toolkit</title>
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}"/>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<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('index') }}">GUN STATS</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">About the 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('index') }}">Home</a>
|
||||
<a class="af-nav-link" href="{{ url_for('calculator') }}">Calculator</a>
|
||||
<a class="af-nav-link" href="{{ url_for('suggestion') }}">Feedback</a>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
<main class="about_us_main">
|
||||
<h1 class="about_us_h1">About Us</h1>
|
||||
|
||||
<h3 class="about_us_h3"><b>Hey there!</b> You found the TRL Stats Page by <b>Fretux</b> and <b>Losernoob124</b></h3>
|
||||
|
||||
<h2 class="about_us_h2">Our Mission</h2>
|
||||
<p class="about_us_text">
|
||||
We created this platform to help the TRL community quickly and easily calculate gun DPS and DPM. No
|
||||
spreadsheets, no hassle. Whether you're theorycrafting a Deathwish loadout or comparing your sidearms, our
|
||||
tool’s built to support your grind.
|
||||
</p>
|
||||
<p class="about_us_text">
|
||||
Got ideas or stat suggestions? Hit us up on Discord or submit feedback via our <a
|
||||
href="{{ url_for('suggestion') }}">Suggestions Page</a>.
|
||||
</p>
|
||||
|
||||
<h2 class="about_us_h2">Our Story</h2>
|
||||
<p class="about_us_text">
|
||||
It started with a spreadsheet... and frustration. Calculating DPS manually was tedious and we knew we could do
|
||||
better. What began as a side hobby by Losernoob124 was reignited by Fretux and evolved into a full web app
|
||||
through plenty of bug fixing, community help, and caffeine.
|
||||
</p>
|
||||
|
||||
<h2 class="about_us_h2">The Team</h2>
|
||||
<div class="team-section">
|
||||
<div class="team-member">
|
||||
<b>Fretux</b> – Frontend Developer & Data Specialist. Designs the UI and ensures stat accuracy.
|
||||
<main class="af-shell">
|
||||
<section class="af-card">
|
||||
<div class="af-card-header">
|
||||
<h1>About the Anomaly Front toolkit</h1>
|
||||
<p>
|
||||
This site is the staging ground for an unreleased experience. We are rebuilding every tool from the
|
||||
ground up to avoid legacy stats, old branding, or outdated data.
|
||||
</p>
|
||||
</div>
|
||||
<div class="team-member">
|
||||
<b>Losernoob124</b> – Backend Developer. Handles everything under the hood and makes sure the calculators
|
||||
work.
|
||||
<div class="af-copy-grid">
|
||||
<div>
|
||||
<h2>Purpose</h2>
|
||||
<p>
|
||||
Provide a shared workspace for balancing weapons, capturing loadout notes, and testing combat pacing
|
||||
long before the official numbers land.
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
<h2>What is live today</h2>
|
||||
<ul>
|
||||
<li>Baseline combat calculator</li>
|
||||
<li>Notes and modifier placeholders</li>
|
||||
<li>Feedback capture workflow</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div>
|
||||
<h2>What comes next</h2>
|
||||
<ul>
|
||||
<li>Shared weapon library for early drafts</li>
|
||||
<li>Attachment tuning stacks</li>
|
||||
<li>Operative perks and passive effects</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<h2 class="about_us_h2">Frequently Asked Questions</h2>
|
||||
<div class="faq">
|
||||
<p><b>How do you calculate DPS and DPM?</b></p>
|
||||
<p class="about_us_text">
|
||||
We use data from <a
|
||||
href="https://docs.google.com/spreadsheets/d/1hGGLMOKB5Tj3FSo38HX7WbIvOmMbgfE5ZApTSOZgnS8/edit?gid=0#gid=0"
|
||||
target="_blank">Lanz1021's Stat Sheet</a>, convert it into a JSON structure, and use it with formulas
|
||||
similar to what’s on the sheet.
|
||||
</p>
|
||||
|
||||
<p><b>How often are stats updated?</b></p>
|
||||
<p class="about_us_text">
|
||||
We update our database every time TRL releases a gameplay patch or changes weapon stats.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<h2 class="about_us_h2">Special Thanks</h2>
|
||||
<div class="thanks-section">
|
||||
<p><b>gameknight90999 (holdenn)</b>: Helped with various stat and weapon data and ideas</p>
|
||||
<p><b>Kris HD</b>: Motivation + bug hunting</p>
|
||||
<p><b>Lanz1021</b>: Feedback & review</p>
|
||||
<p><b>YOU</b>: For visiting — thank you!</p>
|
||||
</div>
|
||||
|
||||
<h3 class="about_us_text" style="text-align: center; margin-top: 2rem;">
|
||||
Thanks for using <b>TRL Stats</b>
|
||||
</h3>
|
||||
<section class="af-grid">
|
||||
<div class="af-card">
|
||||
<div class="af-card-header">
|
||||
<h2>Team notes</h2>
|
||||
<p>
|
||||
This is a community-driven project. Use the feedback channel to share balancing ideas, feature
|
||||
requests, and UI improvements.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="af-card">
|
||||
<div class="af-card-header">
|
||||
<h2>Release posture</h2>
|
||||
<p>
|
||||
Anomaly Front is unreleased. Everything shown here is a placeholder designed to help us think
|
||||
through combat pacing before the official data arrives.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</main>
|
||||
|
||||
<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>
|
||||
|
||||
@@ -9,16 +9,23 @@
|
||||
<body class="af-body">
|
||||
<header class="af-header">
|
||||
<div class="af-brand">
|
||||
<span class="af-badge">Anomaly Front</span>
|
||||
<div class="af-logo" aria-hidden="true">
|
||||
<span></span>
|
||||
<span></span>
|
||||
<span></span>
|
||||
</div>
|
||||
<div>
|
||||
<p class="af-title">Combat Calculator</p>
|
||||
<p class="af-subtitle">Pre-release layout for internal balancing and community planning.</p>
|
||||
<p class="af-title">Anomaly Front</p>
|
||||
<p class="af-subtitle">Combat Calculator</p>
|
||||
</div>
|
||||
</div>
|
||||
<nav class="af-nav" aria-label="Primary">
|
||||
<a href="{{ url_for('index') }}">Home</a>
|
||||
<a href="{{ url_for('suggestion') }}">Feedback</a>
|
||||
<a href="{{ url_for('about_us') }}">About</a>
|
||||
<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('suggestion') }}">Feedback</a>
|
||||
<a class="af-nav-link" href="{{ url_for('about_us') }}">About</a>
|
||||
</nav>
|
||||
</header>
|
||||
<main class="af-shell">
|
||||
@@ -151,5 +158,14 @@
|
||||
</section>
|
||||
</main>
|
||||
<script src="{{ url_for('static', filename='filterWeapons.js') }}"></script>
|
||||
<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>
|
||||
|
||||
+82
-63
@@ -3,75 +3,94 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<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>
|
||||
|
||||
+55
-51
@@ -4,68 +4,72 @@
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<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>
|
||||
|
||||
Reference in New Issue
Block a user