Spaces:
Runtime error
Runtime error
File size: 3,503 Bytes
4b63522 03f8899 4b63522 03f8899 4b63522 03f8899 4b63522 03f8899 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 | {% extends "base.html" %}
{% block title %}Resend Verification β Resume Ranker API{% endblock %}
{% block extra_head %}
{#
No extra head elements are needed here if base.html is correctly
linking to Google Fonts and your main CSS file (login.css/styles.css).
#}
{% endblock %}
{% block content %}
<header class="container sticky-header">
<div class="logo">ResumeRanker<span style="color:var(--accent)">.API</span></div>
<nav class="nav-links" id="navLinks">
<a href="{{ url_for('auth.landing') }}">Home</a>
<a href="{{ url_for('auth.landing') }}#how">How it works</a>
<a href="{{ url_for('auth.landing') }}#demo">Live Demo</a>
<a href="{{ url_for('auth.landing') }}#docs">Docs</a>
<a href="{{ url_for('auth.landing') }}#pricing">Pricing</a>
</nav>
<button class="theme-toggle" id="themeToggle" aria-label="Toggle dark mode">π</button>
<button class="hamburger" id="hamburger" aria-label="Open menu">
<span></span><span></span><span></span>
</button>
</header>
<main class="login-container"> {# Reusing .login-container for consistent layout #}
<div class="login-card"> {# Reusing .login-card for consistent card styling #}
<div class="login-header">
<h1 class="login-title">Resend Verification Email</h1>
<p class="login-subtitle">Enter your email to resend the verification link.</p>
</div>
{% if error %}
<div class="error-message">{{ error }}</div>
{% endif %}
{% if success %}
<div class="success-message">{{ success }}</div>
{% endif %}
<form method="POST">
<div class="form-group"> {# Reusing .form-group and .form-input #}
<label for="email" class="form-label">Email address</label>
<input type="email" id="email" name="email" class="form-input" placeholder="Enter your email" required>
</div>
<button type="submit" class="login-btn">Resend Email</button> {# Reusing .login-btn #}
</form>
<div class="signup-link"> {# Reusing .signup-link for the bottom text style #}
<p>Remembered your password? <a href="{{ url_for('auth.login') }}">Back to sign in</a></p>
</div>
</div>
</main>
{% endblock %}
{% block extra_scripts %}
{# The JavaScript for theme toggle and hamburger menu from login.html #}
<script>
// Light/Dark mode toggle
const themeToggle = document.getElementById('themeToggle');
const prefersDark = window.matchMedia('(prefers-color-scheme: dark)').matches;
function setTheme(theme) {
document.documentElement.setAttribute('data-theme', theme);
localStorage.setItem('theme', theme);
themeToggle.textContent = theme === 'dark' ? 'βοΈ' : 'π';
}
const savedTheme = localStorage.getItem('theme');
setTheme(savedTheme || (prefersDark ? 'dark' : 'light'));
themeToggle.onclick = () => {
const current = document.documentElement.getAttribute('data-theme');
setTheme(current === 'dark' ? 'light' : 'dark');
};
// Hamburger menu toggle
const hamburger = document.getElementById('hamburger');
const navLinks = document.getElementById('navLinks');
hamburger.onclick = function() {
navLinks.classList.toggle('open');
hamburger.classList.toggle('open');
};
// Close menu when clicking a link (on mobile)
Array.from(navLinks.getElementsByTagName('a')).forEach(link => {
link.onclick = () => {
if (window.innerWidth <= 900) {
navLinks.classList.remove('open');
hamburger.classList.remove('open');
}
};
});
</script>
{% endblock %} |