feat: visual polish, nav login link, pricing badge fix, cursor fix, button contrast
- Hero mockup: enhanced 3D perspective and shadow - Testimonials: illustrated SVG avatars - Growth pricing card: visual prominence (scale, gradient, badge) - Most Popular badge: repositioned to avoid overlapping heading - Nav: added Log In link next to Start Free Trial - Fixed btn-primary text colour on anchor tags (white on blue) - Fixed cursor: default on all non-interactive elements - Disabled user-select on non-form content to prevent text caret
This commit is contained in:
578
public/signup.html
Normal file
578
public/signup.html
Normal file
@@ -0,0 +1,578 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="description" content="Sign up for TenderRadar - AI-powered UK public sector tender intelligence">
|
||||
<title>Sign Up | TenderRadar</title>
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" rel="stylesheet">
|
||||
<link rel="icon" href="/favicon.ico" type="image/x-icon">
|
||||
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
|
||||
<link rel="stylesheet" href="styles.css">
|
||||
<style>
|
||||
body {
|
||||
background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
.auth-wrapper {
|
||||
min-height: calc(100vh - 72px);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 2rem 0;
|
||||
}
|
||||
|
||||
.signup-container {
|
||||
max-width: 1100px;
|
||||
margin: 0 auto;
|
||||
background: white;
|
||||
border-radius: 1rem;
|
||||
box-shadow: var(--shadow-xl);
|
||||
overflow: hidden;
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
}
|
||||
|
||||
.signup-left {
|
||||
background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
|
||||
color: white;
|
||||
padding: 3rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.signup-left h2 {
|
||||
font-size: 2rem;
|
||||
font-weight: 800;
|
||||
margin-bottom: 1.5rem;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.value-props {
|
||||
list-style: none;
|
||||
margin: 2rem 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1.25rem;
|
||||
}
|
||||
|
||||
.value-prop {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.value-prop-icon {
|
||||
flex-shrink: 0;
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
color: #10b981;
|
||||
}
|
||||
|
||||
.value-prop-text {
|
||||
font-size: 1.0625rem;
|
||||
line-height: 1.5;
|
||||
opacity: 0.95;
|
||||
}
|
||||
|
||||
.testimonial-box {
|
||||
margin-top: 3rem;
|
||||
padding: 1.5rem;
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
border-radius: 0.75rem;
|
||||
border: 1px solid rgba(255, 255, 255, 0.2);
|
||||
}
|
||||
|
||||
.testimonial-quote {
|
||||
font-size: 1rem;
|
||||
font-style: italic;
|
||||
margin-bottom: 1rem;
|
||||
line-height: 1.6;
|
||||
opacity: 0.95;
|
||||
}
|
||||
|
||||
.testimonial-author {
|
||||
font-size: 0.875rem;
|
||||
font-weight: 600;
|
||||
opacity: 0.9;
|
||||
}
|
||||
|
||||
.social-proof {
|
||||
margin-top: 2rem;
|
||||
font-size: 0.9375rem;
|
||||
opacity: 0.9;
|
||||
}
|
||||
|
||||
.signup-right {
|
||||
padding: 3rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.signup-header {
|
||||
text-align: center;
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
.signup-header h1 {
|
||||
font-size: 1.875rem;
|
||||
font-weight: 800;
|
||||
color: var(--text-primary);
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.signup-header p {
|
||||
color: var(--text-secondary);
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.form-group {
|
||||
margin-bottom: 1.25rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.form-group label {
|
||||
font-weight: 600;
|
||||
margin-bottom: 0.5rem;
|
||||
color: var(--text-primary);
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.form-group input {
|
||||
width: 100%;
|
||||
padding: 0.875rem 1rem;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 0.5rem;
|
||||
font-family: 'Inter', sans-serif;
|
||||
font-size: 1rem;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
.form-group input:focus {
|
||||
outline: none;
|
||||
border-color: var(--primary);
|
||||
box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
|
||||
}
|
||||
|
||||
.password-group {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.password-toggle {
|
||||
position: absolute;
|
||||
right: 0.75rem;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
background: none;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
color: var(--text-secondary);
|
||||
padding: 0.5rem;
|
||||
}
|
||||
|
||||
.error {
|
||||
color: #dc2626;
|
||||
font-size: 0.875rem;
|
||||
margin-top: 0.25rem;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.error.show {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.form-group.error-state input {
|
||||
border-color: #dc2626;
|
||||
}
|
||||
|
||||
.submit-btn {
|
||||
width: 100%;
|
||||
padding: 1rem;
|
||||
font-size: 1.0625rem;
|
||||
font-weight: 700;
|
||||
margin-top: 1rem;
|
||||
background: var(--primary);
|
||||
color: white;
|
||||
border: none;
|
||||
border-radius: 0.5rem;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
.submit-btn:hover {
|
||||
background: var(--primary-dark);
|
||||
transform: translateY(-1px);
|
||||
box-shadow: var(--shadow-md);
|
||||
}
|
||||
|
||||
.trust-indicators {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
gap: 1.5rem;
|
||||
margin-top: 1rem;
|
||||
padding-top: 1rem;
|
||||
border-top: 1px solid var(--border);
|
||||
font-size: 0.875rem;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.trust-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.375rem;
|
||||
}
|
||||
|
||||
.trust-icon {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
color: #10b981;
|
||||
}
|
||||
|
||||
.terms {
|
||||
font-size: 0.8125rem;
|
||||
color: var(--text-secondary);
|
||||
margin-top: 1.5rem;
|
||||
text-align: center;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.terms a {
|
||||
color: var(--primary);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.terms a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.auth-footer {
|
||||
text-align: center;
|
||||
margin-top: 1.5rem;
|
||||
}
|
||||
|
||||
.auth-footer p {
|
||||
color: var(--text-secondary);
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.auth-footer a {
|
||||
color: var(--primary);
|
||||
text-decoration: none;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.auth-footer a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.success-message,
|
||||
.error-message {
|
||||
padding: 0.875rem;
|
||||
border-radius: 0.5rem;
|
||||
margin-bottom: 1rem;
|
||||
display: none;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.success-message {
|
||||
background: #ecfdf5;
|
||||
color: #065f46;
|
||||
}
|
||||
|
||||
.error-message {
|
||||
background: #fef2f2;
|
||||
color: #7f1d1d;
|
||||
}
|
||||
|
||||
.success-message.show,
|
||||
.error-message.show {
|
||||
display: block;
|
||||
}
|
||||
|
||||
@media (max-width: 968px) {
|
||||
.signup-container {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.signup-left {
|
||||
padding: 2rem;
|
||||
}
|
||||
|
||||
.signup-left h2 {
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
|
||||
.testimonial-box {
|
||||
margin-top: 2rem;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 600px) {
|
||||
.signup-right {
|
||||
padding: 2rem 1.5rem;
|
||||
}
|
||||
|
||||
.trust-indicators {
|
||||
flex-direction: column;
|
||||
gap: 0.75rem;
|
||||
align-items: flex-start;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<!-- Header/Navigation -->
|
||||
<header class="header">
|
||||
<nav class="nav container">
|
||||
<a href="/" class="nav-brand">
|
||||
<img src="/logo.png" alt="TenderRadar" class="logo-icon">
|
||||
</a>
|
||||
<ul class="nav-menu">
|
||||
<li><a href="/#features">Features</a></li>
|
||||
<li><a href="/#pricing">Pricing</a></li>
|
||||
<li><a href="login.html" class="btn btn-secondary">Sign In</a></li>
|
||||
</ul>
|
||||
<button class="mobile-toggle" aria-label="Toggle menu">
|
||||
<span></span>
|
||||
<span></span>
|
||||
<span></span>
|
||||
</button>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
<!-- Signup Form -->
|
||||
<section class="auth-wrapper">
|
||||
<div class="container">
|
||||
<div class="signup-container">
|
||||
<!-- Left Side: Value Proposition -->
|
||||
<div class="signup-left">
|
||||
<h2>Start finding better tenders in minutes</h2>
|
||||
|
||||
<ul class="value-props">
|
||||
<li class="value-prop">
|
||||
<svg class="value-prop-icon" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"/>
|
||||
</svg>
|
||||
<span class="value-prop-text">AI matches you with relevant UK public sector tenders daily</span>
|
||||
</li>
|
||||
<li class="value-prop">
|
||||
<svg class="value-prop-icon" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"/>
|
||||
</svg>
|
||||
<span class="value-prop-text">Monitor all major UK procurement portals in one dashboard</span>
|
||||
</li>
|
||||
<li class="value-prop">
|
||||
<svg class="value-prop-icon" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"/>
|
||||
</svg>
|
||||
<span class="value-prop-text">Get instant alerts when opportunities match your profile</span>
|
||||
</li>
|
||||
<li class="value-prop">
|
||||
<svg class="value-prop-icon" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"/>
|
||||
</svg>
|
||||
<span class="value-prop-text">Deadline tracking & bid writing tools included</span>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<div class="testimonial-box">
|
||||
<p class="testimonial-quote">"TenderRadar has transformed how we find opportunities. We're now bidding on contracts we would have never found manually."</p>
|
||||
<p class="testimonial-author">— Sarah Mitchell, Director, TechServe Solutions</p>
|
||||
</div>
|
||||
|
||||
<p class="social-proof"><strong>Join 500+ UK businesses</strong> already using TenderRadar</p>
|
||||
</div>
|
||||
|
||||
<!-- Right Side: Form -->
|
||||
<div class="signup-right">
|
||||
<div class="signup-header">
|
||||
<h1>Create Your Account</h1>
|
||||
<p>14-day free trial • No credit card required</p>
|
||||
</div>
|
||||
|
||||
<div class="success-message" id="successMessage">
|
||||
Account created successfully! Redirecting to dashboard...
|
||||
</div>
|
||||
|
||||
<div class="error-message" id="errorMessage"></div>
|
||||
|
||||
<form id="signupForm" class="signup-form">
|
||||
<div class="form-group">
|
||||
<label for="companyName">Company Name *</label>
|
||||
<input type="text" id="companyName" name="companyName" placeholder="Your company name" required>
|
||||
<div class="error" id="companyNameError"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="email">Work Email *</label>
|
||||
<input type="email" id="email" name="email" placeholder="you@company.com" required>
|
||||
<div class="error" id="emailError"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group password-group">
|
||||
<label for="password">Password *</label>
|
||||
<input type="password" id="password" name="password" placeholder="At least 8 characters" required>
|
||||
<button type="button" class="password-toggle" id="togglePassword">
|
||||
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
||||
<path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"/>
|
||||
<circle cx="12" cy="12" r="3"/>
|
||||
</svg>
|
||||
</button>
|
||||
<div class="error" id="passwordError"></div>
|
||||
</div>
|
||||
|
||||
<button type="submit" class="submit-btn" id="submitBtn">Start Your Free 14-Day Trial</button>
|
||||
|
||||
<div class="trust-indicators">
|
||||
<div class="trust-item">
|
||||
<svg class="trust-icon" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"/>
|
||||
</svg>
|
||||
<span>No credit card required</span>
|
||||
</div>
|
||||
<div class="trust-item">
|
||||
<svg class="trust-icon" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"/>
|
||||
</svg>
|
||||
<span>Cancel anytime</span>
|
||||
</div>
|
||||
<div class="trust-item">
|
||||
<svg class="trust-icon" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"/>
|
||||
</svg>
|
||||
<span>14-day free trial</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="terms">
|
||||
By creating an account, you agree to our <a href="#">Terms of Service</a> and <a href="#">Privacy Policy</a>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div class="auth-footer">
|
||||
<p>Already have an account? <a href="login.html">Sign in here</a></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<script>
|
||||
const form = document.getElementById('signupForm');
|
||||
const submitBtn = document.getElementById('submitBtn');
|
||||
const errorMessage = document.getElementById('errorMessage');
|
||||
const successMessage = document.getElementById('successMessage');
|
||||
|
||||
// Password visibility toggle
|
||||
document.getElementById('togglePassword').addEventListener('click', function(e) {
|
||||
e.preventDefault();
|
||||
const input = document.getElementById('password');
|
||||
input.type = input.type === 'password' ? 'text' : 'password';
|
||||
});
|
||||
|
||||
// Form validation
|
||||
function validateForm() {
|
||||
const errors = {};
|
||||
const companyName = document.getElementById('companyName').value.trim();
|
||||
const email = document.getElementById('email').value.trim();
|
||||
const password = document.getElementById('password').value;
|
||||
|
||||
// Clear previous errors
|
||||
document.querySelectorAll('.form-group.error-state').forEach(el => {
|
||||
el.classList.remove('error-state');
|
||||
});
|
||||
document.querySelectorAll('.error').forEach(el => {
|
||||
el.classList.remove('show');
|
||||
el.textContent = '';
|
||||
});
|
||||
|
||||
if (!companyName) {
|
||||
errors.companyName = 'Company name is required';
|
||||
}
|
||||
|
||||
if (!email) {
|
||||
errors.email = 'Email is required';
|
||||
} else if (!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email)) {
|
||||
errors.email = 'Please enter a valid email address';
|
||||
}
|
||||
|
||||
if (!password) {
|
||||
errors.password = 'Password is required';
|
||||
} else if (password.length < 8) {
|
||||
errors.password = 'Password must be at least 8 characters';
|
||||
}
|
||||
|
||||
// Display errors
|
||||
Object.keys(errors).forEach(field => {
|
||||
const errorEl = document.getElementById(field + 'Error');
|
||||
const formGroup = errorEl.closest('.form-group');
|
||||
formGroup.classList.add('error-state');
|
||||
errorEl.textContent = errors[field];
|
||||
errorEl.classList.add('show');
|
||||
});
|
||||
|
||||
return Object.keys(errors).length === 0;
|
||||
}
|
||||
|
||||
form.addEventListener('submit', async (e) => {
|
||||
e.preventDefault();
|
||||
|
||||
if (!validateForm()) {
|
||||
return;
|
||||
}
|
||||
|
||||
errorMessage.classList.remove('show');
|
||||
errorMessage.textContent = '';
|
||||
submitBtn.disabled = true;
|
||||
submitBtn.textContent = 'Creating account...';
|
||||
|
||||
try {
|
||||
const response = await fetch('/api/auth/register', {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
body: JSON.stringify({
|
||||
company_name: document.getElementById('companyName').value.trim(),
|
||||
email: document.getElementById('email').value.trim(),
|
||||
password: document.getElementById('password').value,
|
||||
tier: 'free'
|
||||
})
|
||||
});
|
||||
|
||||
const data = await response.json();
|
||||
|
||||
if (!response.ok) {
|
||||
throw new Error(data.error || 'Registration failed');
|
||||
}
|
||||
|
||||
// Store token and redirect
|
||||
localStorage.setItem('token', data.token);
|
||||
localStorage.setItem('user', JSON.stringify(data.user));
|
||||
|
||||
successMessage.classList.add('show');
|
||||
|
||||
setTimeout(() => {
|
||||
window.location.href = '/dashboard.html';
|
||||
}, 1500);
|
||||
|
||||
} catch (error) {
|
||||
errorMessage.textContent = error.message;
|
||||
errorMessage.classList.add('show');
|
||||
submitBtn.disabled = false;
|
||||
submitBtn.textContent = 'Start Your Free 14-Day Trial';
|
||||
}
|
||||
});
|
||||
|
||||
// Mobile menu toggle
|
||||
document.querySelector('.mobile-toggle')?.addEventListener('click', function() {
|
||||
document.querySelector('.nav-menu').classList.toggle('active');
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user