Initial commit: TenderPilot MVP
This commit is contained in:
156
public/index.html
Executable file
156
public/index.html
Executable file
@@ -0,0 +1,156 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>TenderPilot - Find & Win UK Government Contracts</title>
|
||||
<link rel="stylesheet" href="styles.css">
|
||||
</head>
|
||||
<body>
|
||||
<!-- Navigation -->
|
||||
<nav class="navbar">
|
||||
<div class="container">
|
||||
<div class="logo">TenderPilot</div>
|
||||
<ul class="nav-links">
|
||||
<li><a href="#features">Features</a></li>
|
||||
<li><a href="#pricing">Pricing</a></li>
|
||||
<li><a href="#signup">Sign Up</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<!-- Hero Section -->
|
||||
<section class="hero">
|
||||
<div class="container">
|
||||
<h1>Find and Win UK Government Contracts</h1>
|
||||
<p>TenderPilot is your AI-powered tender finder and bid assistant. Discover relevant government tenders, get intelligent matching, and accelerate your bids.</p>
|
||||
<a href="#signup" class="cta-button">Start Your Free Trial</a>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- How It Works -->
|
||||
<section class="how-it-works">
|
||||
<div class="container">
|
||||
<h2>How It Works</h2>
|
||||
<div class="steps">
|
||||
<div class="step">
|
||||
<div class="step-number">1</div>
|
||||
<h3>Set Your Profile</h3>
|
||||
<p>Tell us about your business, sectors, and preferences.</p>
|
||||
</div>
|
||||
<div class="step">
|
||||
<div class="step-number">2</div>
|
||||
<h3>Get Matched</h3>
|
||||
<p>Our algorithm finds relevant tenders from across UK government.</p>
|
||||
</div>
|
||||
<div class="step">
|
||||
<div class="step-number">3</div>
|
||||
<h3>Win Bids</h3>
|
||||
<p>Access tender details, documents, and bid guidance in one place.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Features -->
|
||||
<section id="features" class="features">
|
||||
<div class="container">
|
||||
<h2>Powerful Features</h2>
|
||||
<div class="feature-grid">
|
||||
<div class="feature-card">
|
||||
<h3>Real-Time Alerts</h3>
|
||||
<p>Get notified instantly when new tenders match your profile.</p>
|
||||
</div>
|
||||
<div class="feature-card">
|
||||
<h3>Smart Matching</h3>
|
||||
<p>AI-powered algorithm matches opportunities to your capability.</p>
|
||||
</div>
|
||||
<div class="feature-card">
|
||||
<h3>Full Tender Details</h3>
|
||||
<p>Access requirements, evaluation criteria, and related documents.</p>
|
||||
</div>
|
||||
<div class="feature-card">
|
||||
<h3>Search & Filter</h3>
|
||||
<p>Find tenders by sector, value, location, and more.</p>
|
||||
</div>
|
||||
<div class="feature-card">
|
||||
<h3>Bid Guidance</h3>
|
||||
<p>Expert tips to improve your bid success rate.</p>
|
||||
</div>
|
||||
<div class="feature-card">
|
||||
<h3>Portfolio Tracking</h3>
|
||||
<p>Track all your matches and bids in one dashboard.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Pricing -->
|
||||
<section id="pricing" class="pricing">
|
||||
<div class="container">
|
||||
<h2>Simple, Transparent Pricing</h2>
|
||||
<div class="pricing-grid">
|
||||
<div class="pricing-card">
|
||||
<h3>Starter</h3>
|
||||
<p class="price">£39<span>/month</span></p>
|
||||
<ul class="features-list">
|
||||
<li>Up to 20 matches/month</li>
|
||||
<li>Email alerts</li>
|
||||
<li>Search tenders</li>
|
||||
</ul>
|
||||
<button class="btn-secondary">Choose Plan</button>
|
||||
</div>
|
||||
<div class="pricing-card featured">
|
||||
<div class="badge">Most Popular</div>
|
||||
<h3>Professional</h3>
|
||||
<p class="price">£99<span>/month</span></p>
|
||||
<ul class="features-list">
|
||||
<li>Unlimited matches</li>
|
||||
<li>Real-time alerts</li>
|
||||
<li>Advanced filtering</li>
|
||||
<li>Bid guidance</li>
|
||||
<li>Email support</li>
|
||||
</ul>
|
||||
<button class="btn-primary">Choose Plan</button>
|
||||
</div>
|
||||
<div class="pricing-card">
|
||||
<h3>Enterprise</h3>
|
||||
<p class="price">£249<span>/month</span></p>
|
||||
<ul class="features-list">
|
||||
<li>Everything in Professional</li>
|
||||
<li>Multiple users</li>
|
||||
<li>API access</li>
|
||||
<li>Priority support</li>
|
||||
<li>Custom matching</li>
|
||||
</ul>
|
||||
<button class="btn-secondary">Choose Plan</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Signup Form -->
|
||||
<section id="signup" class="signup">
|
||||
<div class="container">
|
||||
<h2>Join Our Beta</h2>
|
||||
<p>Be among the first to discover winning tenders</p>
|
||||
<form id="signupForm" class="signup-form">
|
||||
<input type="email" placeholder="Your email" required>
|
||||
<input type="text" placeholder="Company name" required>
|
||||
<button type="submit" class="btn-primary">Sign Up for Beta</button>
|
||||
<p class="message" id="formMessage"></p>
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Footer -->
|
||||
<footer class="footer">
|
||||
<div class="container">
|
||||
<p>© 2026 TenderPilot. All rights reserved.</p>
|
||||
<p>Helping UK businesses win government contracts</p>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<script src="main.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
47
public/main.js
Executable file
47
public/main.js
Executable file
@@ -0,0 +1,47 @@
|
||||
document.getElementById('signupForm').addEventListener('submit', async (e) => {
|
||||
e.preventDefault();
|
||||
|
||||
const formData = new FormData(e.target);
|
||||
const email = e.target.querySelector('input[type="email"]').value;
|
||||
const company_name = e.target.querySelector('input[type="text"]').value;
|
||||
const messageEl = document.getElementById('formMessage');
|
||||
|
||||
try {
|
||||
const response = await fetch('/api/auth/register', {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
},
|
||||
body: JSON.stringify({
|
||||
email,
|
||||
company_name,
|
||||
password: 'beta_' + Math.random().toString(36).substring(7),
|
||||
tier: 'beta'
|
||||
})
|
||||
});
|
||||
|
||||
if (response.ok) {
|
||||
messageEl.textContent = '✓ Thanks! Check your email to get started.';
|
||||
messageEl.className = 'message success';
|
||||
e.target.reset();
|
||||
} else {
|
||||
const error = await response.json();
|
||||
messageEl.textContent = '✗ ' + (error.error || 'Signup failed');
|
||||
messageEl.className = 'message error';
|
||||
}
|
||||
} catch (error) {
|
||||
messageEl.textContent = '✗ An error occurred. Please try again.';
|
||||
messageEl.className = 'message error';
|
||||
}
|
||||
});
|
||||
|
||||
// Smooth scrolling
|
||||
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
|
||||
anchor.addEventListener('click', function(e) {
|
||||
e.preventDefault();
|
||||
const target = document.querySelector(this.getAttribute('href'));
|
||||
if (target) {
|
||||
target.scrollIntoView({ behavior: 'smooth' });
|
||||
}
|
||||
});
|
||||
});
|
||||
390
public/styles.css
Executable file
390
public/styles.css
Executable file
@@ -0,0 +1,390 @@
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
:root {
|
||||
--primary: #1a2332;
|
||||
--accent: #0d9488;
|
||||
--light: #f8f9fa;
|
||||
--border: #e0e0e0;
|
||||
--text: #333;
|
||||
--text-light: #666;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
||||
color: var(--text);
|
||||
line-height: 1.6;
|
||||
background: white;
|
||||
}
|
||||
|
||||
.container {
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
padding: 0 20px;
|
||||
}
|
||||
|
||||
/* Navigation */
|
||||
.navbar {
|
||||
background: white;
|
||||
border-bottom: 1px solid var(--border);
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 100;
|
||||
}
|
||||
|
||||
.navbar .container {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 1rem 20px;
|
||||
}
|
||||
|
||||
.logo {
|
||||
font-size: 24px;
|
||||
font-weight: bold;
|
||||
color: var(--primary);
|
||||
}
|
||||
|
||||
.nav-links {
|
||||
list-style: none;
|
||||
display: flex;
|
||||
gap: 2rem;
|
||||
}
|
||||
|
||||
.nav-links a {
|
||||
text-decoration: none;
|
||||
color: var(--text);
|
||||
transition: color 0.3s;
|
||||
}
|
||||
|
||||
.nav-links a:hover {
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
/* Hero Section */
|
||||
.hero {
|
||||
background: linear-gradient(135deg, var(--primary) 0%, #2d3f5f 100%);
|
||||
color: white;
|
||||
padding: 6rem 0;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.hero h1 {
|
||||
font-size: 3rem;
|
||||
margin-bottom: 1.5rem;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.hero p {
|
||||
font-size: 1.25rem;
|
||||
margin-bottom: 2rem;
|
||||
max-width: 600px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
opacity: 0.95;
|
||||
}
|
||||
|
||||
/* Buttons */
|
||||
.cta-button, .btn-primary, .btn-secondary {
|
||||
display: inline-block;
|
||||
padding: 12px 32px;
|
||||
border: none;
|
||||
border-radius: 6px;
|
||||
font-size: 1rem;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.cta-button, .btn-primary {
|
||||
background: var(--accent);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.cta-button:hover, .btn-primary:hover {
|
||||
background: #0a7a70;
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
|
||||
}
|
||||
|
||||
.btn-secondary {
|
||||
background: transparent;
|
||||
color: var(--text);
|
||||
border: 2px solid var(--accent);
|
||||
}
|
||||
|
||||
.btn-secondary:hover {
|
||||
background: var(--accent);
|
||||
color: white;
|
||||
}
|
||||
|
||||
/* How It Works */
|
||||
.how-it-works {
|
||||
padding: 4rem 0;
|
||||
background: var(--light);
|
||||
}
|
||||
|
||||
.how-it-works h2 {
|
||||
text-align: center;
|
||||
font-size: 2.5rem;
|
||||
margin-bottom: 3rem;
|
||||
color: var(--primary);
|
||||
}
|
||||
|
||||
.steps {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
||||
gap: 2rem;
|
||||
}
|
||||
|
||||
.step {
|
||||
background: white;
|
||||
padding: 2rem;
|
||||
border-radius: 8px;
|
||||
text-align: center;
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
|
||||
}
|
||||
|
||||
.step-number {
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
background: var(--accent);
|
||||
color: white;
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 1.5rem;
|
||||
font-weight: bold;
|
||||
margin: 0 auto 1rem;
|
||||
}
|
||||
|
||||
.step h3 {
|
||||
margin-bottom: 0.5rem;
|
||||
color: var(--primary);
|
||||
}
|
||||
|
||||
.step p {
|
||||
color: var(--text-light);
|
||||
}
|
||||
|
||||
/* Features */
|
||||
.features {
|
||||
padding: 4rem 0;
|
||||
}
|
||||
|
||||
.features h2 {
|
||||
text-align: center;
|
||||
font-size: 2.5rem;
|
||||
margin-bottom: 3rem;
|
||||
color: var(--primary);
|
||||
}
|
||||
|
||||
.feature-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
|
||||
gap: 2rem;
|
||||
}
|
||||
|
||||
.feature-card {
|
||||
padding: 1.5rem;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
transition: all 0.3s;
|
||||
}
|
||||
|
||||
.feature-card:hover {
|
||||
border-color: var(--accent);
|
||||
box-shadow: 0 4px 12px rgba(13, 148, 136, 0.1);
|
||||
transform: translateY(-4px);
|
||||
}
|
||||
|
||||
.feature-card h3 {
|
||||
color: var(--primary);
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.feature-card p {
|
||||
color: var(--text-light);
|
||||
}
|
||||
|
||||
/* Pricing */
|
||||
.pricing {
|
||||
padding: 4rem 0;
|
||||
background: var(--light);
|
||||
}
|
||||
|
||||
.pricing h2 {
|
||||
text-align: center;
|
||||
font-size: 2.5rem;
|
||||
margin-bottom: 3rem;
|
||||
color: var(--primary);
|
||||
}
|
||||
|
||||
.pricing-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
||||
gap: 2rem;
|
||||
}
|
||||
|
||||
.pricing-card {
|
||||
background: white;
|
||||
padding: 2rem;
|
||||
border-radius: 8px;
|
||||
border: 1px solid var(--border);
|
||||
text-align: center;
|
||||
position: relative;
|
||||
transition: all 0.3s;
|
||||
}
|
||||
|
||||
.pricing-card:hover {
|
||||
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
|
||||
transform: translateY(-4px);
|
||||
}
|
||||
|
||||
.pricing-card.featured {
|
||||
border-color: var(--accent);
|
||||
box-shadow: 0 4px 16px rgba(13, 148, 136, 0.2);
|
||||
transform: scale(1.05);
|
||||
}
|
||||
|
||||
.badge {
|
||||
position: absolute;
|
||||
top: -12px;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
background: var(--accent);
|
||||
color: white;
|
||||
padding: 4px 16px;
|
||||
border-radius: 20px;
|
||||
font-size: 0.85rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.pricing-card h3 {
|
||||
color: var(--primary);
|
||||
margin-bottom: 1rem;
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
|
||||
.price {
|
||||
font-size: 2.5rem;
|
||||
color: var(--accent);
|
||||
margin-bottom: 1.5rem;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.price span {
|
||||
font-size: 1rem;
|
||||
color: var(--text-light);
|
||||
}
|
||||
|
||||
.features-list {
|
||||
list-style: none;
|
||||
margin-bottom: 1.5rem;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.features-list li {
|
||||
padding: 0.5rem 0;
|
||||
color: var(--text-light);
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.features-list li:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
/* Signup Section */
|
||||
.signup {
|
||||
padding: 4rem 0;
|
||||
background: var(--primary);
|
||||
color: white;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.signup h2 {
|
||||
font-size: 2rem;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.signup p {
|
||||
margin-bottom: 2rem;
|
||||
opacity: 0.9;
|
||||
}
|
||||
|
||||
.signup-form {
|
||||
max-width: 500px;
|
||||
margin: 0 auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.signup-form input {
|
||||
padding: 12px 16px;
|
||||
border: none;
|
||||
border-radius: 6px;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.signup-form input::placeholder {
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.message {
|
||||
margin-top: 1rem;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.message.success {
|
||||
color: #4ade80;
|
||||
}
|
||||
|
||||
.message.error {
|
||||
color: #f87171;
|
||||
}
|
||||
|
||||
/* Footer */
|
||||
.footer {
|
||||
background: var(--primary);
|
||||
color: white;
|
||||
padding: 2rem 0;
|
||||
text-align: center;
|
||||
border-top: 1px solid rgba(255, 255, 255, 0.1);
|
||||
}
|
||||
|
||||
.footer p {
|
||||
margin: 0.5rem 0;
|
||||
}
|
||||
|
||||
/* Responsive */
|
||||
@media (max-width: 768px) {
|
||||
.nav-links {
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.hero h1 {
|
||||
font-size: 2rem;
|
||||
}
|
||||
|
||||
.hero p {
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.how-it-works h2, .features h2, .pricing h2 {
|
||||
font-size: 1.75rem;
|
||||
}
|
||||
|
||||
.pricing-card.featured {
|
||||
transform: scale(1);
|
||||
}
|
||||
|
||||
.signup-form {
|
||||
padding: 0 1rem;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user