Spaces:
Sleeping
Sleeping
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"/> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"/> | |
| <title>AIMS Insight – Submit Feedback</title> | |
| <link rel="preconnect" href="https://fonts.googleapis.com"> | |
| <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet"> | |
| <style> | |
| * { | |
| margin: 0; | |
| padding: 0; | |
| box-sizing: border-box; | |
| font-family: Inter, sans-serif; | |
| } | |
| body { | |
| background: #f5f0ef; | |
| min-height: 100vh; | |
| display: flex; | |
| justify-content: center; | |
| align-items: center; | |
| padding: 20px; | |
| } | |
| .card { | |
| width: 100%; | |
| max-width: 600px; | |
| background: #fff; | |
| border-radius: 16px; | |
| padding: 40px; | |
| box-shadow: 0 10px 30px rgba(0,0,0,0.08); | |
| } | |
| h1 { | |
| font-size: 24px; | |
| margin-bottom: 8px; | |
| color: #111; | |
| } | |
| p { | |
| font-size: 14px; | |
| color: #666; | |
| margin-bottom: 25px; | |
| } | |
| label { | |
| display: block; | |
| font-size: 13px; | |
| font-weight: 600; | |
| margin-bottom: 6px; | |
| color: #222; | |
| } | |
| select, textarea { | |
| width: 100%; | |
| padding: 12px; | |
| border: 1px solid #ddd; | |
| border-radius: 10px; | |
| font-size: 14px; | |
| margin-bottom: 18px; | |
| outline: none; | |
| } | |
| textarea { | |
| height: 120px; | |
| resize: none; | |
| } | |
| select:focus, textarea:focus { | |
| border-color: #800000; | |
| } | |
| button { | |
| width: 100%; | |
| padding: 14px; | |
| background: #800000; | |
| color: #fff; | |
| border: none; | |
| border-radius: 10px; | |
| font-size: 15px; | |
| font-weight: 600; | |
| cursor: pointer; | |
| } | |
| button:hover { | |
| background: #5f0000; | |
| } | |
| .success { | |
| text-align: center; | |
| } | |
| .success h2 { | |
| font-size: 20px; | |
| margin-bottom: 10px; | |
| } | |
| .success p { | |
| margin-bottom: 20px; | |
| } | |
| .link-btn { | |
| display: inline-block; | |
| margin-top: 10px; | |
| padding: 12px 20px; | |
| background: #800000; | |
| color: white; | |
| border-radius: 8px; | |
| text-decoration: none; | |
| font-size: 14px; | |
| margin-right: 10px; | |
| } | |
| .link-btn:hover { | |
| background: #5f0000; | |
| } | |
| .secondary-btn { | |
| background: #333; | |
| } | |
| .secondary-btn:hover { | |
| background: #111; | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <div class="card"> | |
| {% if success %} | |
| <div class="success"> | |
| <h2>Thank you for your feedback</h2> | |
| <p>Your feedback has been successfully submitted.</p> | |
| <a href="{{ url_for('feedback') }}" class="link-btn"> | |
| Submit another feedback | |
| </a> | |
| <a href="{{ url_for('index') }}" class="link-btn secondary-btn"> | |
| Return home | |
| </a> | |
| </div> | |
| {% else %} | |
| <h1>Submit Feedback</h1> | |
| <p>Share your experience about AIMS Insight</p> | |
| {% if error %} | |
| <p style="color:#dc3545; font-weight:600;">{{ error }}</p> | |
| {% endif %} | |
| <form method="POST" action="{{ url_for('feedback') }}"> | |
| <label>Topic</label> | |
| <select name="topic" required> | |
| <option value="" disabled selected>Select a topic</option> | |
| {% for topic in topics %} | |
| <option value="{{ topic }}">{{ topic }}</option> | |
| {% endfor %} | |
| </select> | |
| <label>Your feedback</label> | |
| <textarea name="comment" placeholder="Write your feedback here..." required></textarea> | |
| <button type="submit">Submit</button> | |
| </form> | |
| <div style="margin-top:15px; text-align:center;"> | |
| <a href="{{ url_for('index') }}" class="link-btn secondary-btn"> | |
| Return home | |
| </a> | |
| </div> | |
| {% endif %} | |
| </div> | |
| </body> | |
| </html> | |