Files
anomaly-front-stats/templates/suggestion.html
T

76 lines
2.9 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<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>Feedback | Anomaly Front</title>
</head>
<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">Radio Tower</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>
<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 Calculator. Share feature requests, new ideas, or bug fixes 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 class="af-field" for="rate">
Rating
<input class="af-input" type="number" id="rate" name="rating" min="1" max="10" required>
</label>
<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 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>