- Add Go modules with required dependencies (Gin, UUID, JWT, etc.) - Implement main web server with landing page endpoint - Add comprehensive API endpoints for health and status - Include proper error handling and request validation - Set up CORS middleware and security headers
523 lines
16 KiB
HTML
523 lines
16 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>YourDreamNameHere - Launch Your Sovereign Hosting Business</title>
|
|
<style>
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
:root {
|
|
--primary-color: #2563eb;
|
|
--primary-dark: #1d4ed8;
|
|
--secondary-color: #10b981;
|
|
--text-dark: #1f2937;
|
|
--text-light: #6b7280;
|
|
--bg-light: #f9fafb;
|
|
--bg-white: #ffffff;
|
|
--border-color: #e5e7eb;
|
|
}
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
|
|
line-height: 1.6;
|
|
color: var(--text-dark);
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
min-height: 100vh;
|
|
}
|
|
|
|
.container {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
padding: 0 20px;
|
|
}
|
|
|
|
/* Header */
|
|
.header {
|
|
padding: 1rem 0;
|
|
background: rgba(255, 255, 255, 0.95);
|
|
backdrop-filter: blur(10px);
|
|
position: fixed;
|
|
width: 100%;
|
|
top: 0;
|
|
z-index: 1000;
|
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.nav {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.logo {
|
|
font-size: 1.5rem;
|
|
font-weight: bold;
|
|
color: var(--primary-color);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.logo:hover {
|
|
color: var(--primary-dark);
|
|
}
|
|
|
|
/* Hero Section */
|
|
.hero {
|
|
padding: 120px 0 80px;
|
|
text-align: center;
|
|
color: white;
|
|
}
|
|
|
|
.hero h1 {
|
|
font-size: 3.5rem;
|
|
font-weight: 700;
|
|
margin-bottom: 1rem;
|
|
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
|
|
animation: fadeInUp 0.8s ease-out;
|
|
}
|
|
|
|
.hero .subtitle {
|
|
font-size: 1.25rem;
|
|
margin-bottom: 2rem;
|
|
opacity: 0.95;
|
|
max-width: 600px;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
animation: fadeInUp 0.8s ease-out 0.2s both;
|
|
}
|
|
|
|
/* CTA Form */
|
|
.cta-form {
|
|
background: white;
|
|
border-radius: 16px;
|
|
padding: 2rem;
|
|
max-width: 500px;
|
|
margin: 0 auto;
|
|
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
|
|
animation: fadeInUp 0.8s ease-out 0.4s both;
|
|
}
|
|
|
|
.form-group {
|
|
margin-bottom: 1.5rem;
|
|
text-align: left;
|
|
}
|
|
|
|
.form-group label {
|
|
display: block;
|
|
margin-bottom: 0.5rem;
|
|
font-weight: 600;
|
|
color: var(--text-dark);
|
|
}
|
|
|
|
.form-group input {
|
|
width: 100%;
|
|
padding: 0.75rem 1rem;
|
|
border: 2px solid var(--border-color);
|
|
border-radius: 8px;
|
|
font-size: 1rem;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.form-group input:focus {
|
|
outline: none;
|
|
border-color: var(--primary-color);
|
|
box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
|
|
}
|
|
|
|
.submit-btn {
|
|
width: 100%;
|
|
background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
|
|
color: white;
|
|
padding: 1rem 2rem;
|
|
border: none;
|
|
border-radius: 8px;
|
|
font-size: 1.1rem;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.submit-btn:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
|
|
}
|
|
|
|
.submit-btn:active {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
/* Features Section */
|
|
.features {
|
|
padding: 80px 0;
|
|
background: rgba(255, 255, 255, 0.95);
|
|
}
|
|
|
|
.features h2 {
|
|
text-align: center;
|
|
font-size: 2.5rem;
|
|
margin-bottom: 3rem;
|
|
color: var(--text-dark);
|
|
}
|
|
|
|
.features-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
|
gap: 2rem;
|
|
margin-bottom: 3rem;
|
|
}
|
|
|
|
.feature-card {
|
|
background: white;
|
|
padding: 2rem;
|
|
border-radius: 12px;
|
|
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
|
|
transition: transform 0.3s ease, box-shadow 0.3s ease;
|
|
}
|
|
|
|
.feature-card:hover {
|
|
transform: translateY(-5px);
|
|
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.feature-icon {
|
|
width: 48px;
|
|
height: 48px;
|
|
background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
|
|
border-radius: 12px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: white;
|
|
font-size: 1.5rem;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.feature-card h3 {
|
|
font-size: 1.25rem;
|
|
margin-bottom: 0.75rem;
|
|
color: var(--text-dark);
|
|
}
|
|
|
|
.feature-card p {
|
|
color: var(--text-light);
|
|
}
|
|
|
|
/* Pricing */
|
|
.pricing {
|
|
background: var(--bg-light);
|
|
padding: 2rem;
|
|
border-radius: 12px;
|
|
text-align: center;
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
.price {
|
|
font-size: 2.5rem;
|
|
font-weight: bold;
|
|
color: var(--primary-color);
|
|
}
|
|
|
|
.price-period {
|
|
color: var(--text-light);
|
|
font-size: 1rem;
|
|
}
|
|
|
|
/* Animations */
|
|
@keyframes fadeInUp {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(30px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
/* Loading State */
|
|
.loading {
|
|
display: none;
|
|
text-align: center;
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
.spinner {
|
|
border: 3px solid var(--border-color);
|
|
border-top: 3px solid var(--primary-color);
|
|
border-radius: 50%;
|
|
width: 24px;
|
|
height: 24px;
|
|
animation: spin 1s linear infinite;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
@keyframes spin {
|
|
0% { transform: rotate(0deg); }
|
|
100% { transform: rotate(360deg); }
|
|
}
|
|
|
|
/* Success Message */
|
|
.success-message {
|
|
display: none;
|
|
background: var(--secondary-color);
|
|
color: white;
|
|
padding: 1rem;
|
|
border-radius: 8px;
|
|
margin-top: 1rem;
|
|
text-align: center;
|
|
}
|
|
|
|
/* Error Message */
|
|
.error-message {
|
|
display: none;
|
|
background: #ef4444;
|
|
color: white;
|
|
padding: 1rem;
|
|
border-radius: 8px;
|
|
margin-top: 1rem;
|
|
text-align: center;
|
|
}
|
|
|
|
/* Responsive */
|
|
@media (max-width: 768px) {
|
|
.hero h1 {
|
|
font-size: 2.5rem;
|
|
}
|
|
|
|
.hero .subtitle {
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
.cta-form {
|
|
margin: 0 1rem;
|
|
padding: 1.5rem;
|
|
}
|
|
|
|
.features-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<!-- Header -->
|
|
<header class="header">
|
|
<nav class="nav container">
|
|
<a href="#" class="logo">🚀 YourDreamNameHere</a>
|
|
<div>
|
|
<a href="#features" style="color: var(--text-dark); text-decoration: none; margin-left: 1rem;">Features</a>
|
|
</div>
|
|
</nav>
|
|
</header>
|
|
|
|
<!-- Hero Section -->
|
|
<section class="hero">
|
|
<div class="container">
|
|
<h1>Launch Your Sovereign Hosting Business</h1>
|
|
<p class="subtitle">
|
|
Transform your entrepreneurial vision into a fully automated hosting empire.
|
|
We handle everything from domain registration to Cloudron installation.
|
|
</p>
|
|
|
|
<!-- CTA Form -->
|
|
<div class="cta-form">
|
|
<form id="launchForm">
|
|
<div class="form-group">
|
|
<label for="domain">Your Dream Domain Name</label>
|
|
<input
|
|
type="text"
|
|
id="domain"
|
|
name="domain"
|
|
placeholder="example.com"
|
|
required
|
|
pattern="[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}"
|
|
>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="email">Your Email Address</label>
|
|
<input
|
|
type="email"
|
|
id="email"
|
|
name="email"
|
|
placeholder="your@email.com"
|
|
required
|
|
>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="cardNumber">Credit Card Number</label>
|
|
<input
|
|
type="text"
|
|
id="cardNumber"
|
|
name="cardNumber"
|
|
placeholder="4242 4242 4242 4242"
|
|
maxlength="19"
|
|
required
|
|
pattern="[0-9]{13,19}"
|
|
>
|
|
</div>
|
|
|
|
<div class="pricing">
|
|
<div class="price">$250</div>
|
|
<div class="price-period">per month</div>
|
|
<p style="margin-top: 0.5rem; color: var(--text-light);">
|
|
✓ Domain Registration<br>
|
|
✓ VPS Provisioning<br>
|
|
✓ Cloudron Installation<br>
|
|
✓ Complete Automation
|
|
</p>
|
|
</div>
|
|
|
|
<button type="submit" class="submit-btn">
|
|
🚀 Launch My Hosting Business
|
|
</button>
|
|
|
|
<div class="loading" id="loading">
|
|
<div class="spinner"></div>
|
|
<p style="margin-top: 1rem;">Setting up your hosting empire...</p>
|
|
</div>
|
|
|
|
<div class="success-message" id="successMessage">
|
|
🎉 Welcome aboard! Your hosting business is being provisioned.
|
|
</div>
|
|
|
|
<div class="error-message" id="errorMessage">
|
|
❌ Something went wrong. Please try again.
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- Features Section -->
|
|
<section class="features" id="features">
|
|
<div class="container">
|
|
<h2>Everything You Need to Succeed</h2>
|
|
<div class="features-grid">
|
|
<div class="feature-card">
|
|
<div class="feature-icon">🌐</div>
|
|
<h3>Domain Registration</h3>
|
|
<p>Automatically register your dream domain through our OVH integration. No manual setup required.</p>
|
|
</div>
|
|
|
|
<div class="feature-card">
|
|
<div class="feature-icon">🖥️</div>
|
|
<h3>VPS Provisioning</h3>
|
|
<p>Instantly provision powerful cloud servers with automatic scaling and enterprise-grade security.</p>
|
|
</div>
|
|
|
|
<div class="feature-card">
|
|
<div class="feature-icon">☁️</div>
|
|
<h3>Cloudron Installation</h3>
|
|
<p>Get Cloudron automatically installed and configured with your custom domain and DNS settings.</p>
|
|
</div>
|
|
|
|
<div class="feature-card">
|
|
<div class="feature-icon">💳</div>
|
|
<h3>Payment Processing</h3>
|
|
<p>Integrated Stripe billing with automatic invoicing, subscription management, and revenue tracking.</p>
|
|
</div>
|
|
|
|
<div class="feature-card">
|
|
<div class="feature-icon">📊</div>
|
|
<h3>Business Management</h3>
|
|
<p>Complete ERP/CRM system with Dolibarr for customer management, billing, and business analytics.</p>
|
|
</div>
|
|
|
|
<div class="feature-card">
|
|
<div class="feature-icon">🔒</div>
|
|
<h3>Enterprise Security</h3>
|
|
<p>Bank-grade security with SSL certificates, automated backups, and 24/7 monitoring included.</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<script>
|
|
// Form formatting and submission
|
|
const form = document.getElementById('launchForm');
|
|
const loading = document.getElementById('loading');
|
|
const successMessage = document.getElementById('successMessage');
|
|
const errorMessage = document.getElementById('errorMessage');
|
|
const cardNumberInput = document.getElementById('cardNumber');
|
|
|
|
// Format credit card input
|
|
cardNumberInput.addEventListener('input', function(e) {
|
|
let value = e.target.value.replace(/\s/g, '');
|
|
let formattedValue = value.match(/.{1,4}/g)?.join(' ') || value;
|
|
e.target.value = formattedValue;
|
|
});
|
|
|
|
// Handle form submission
|
|
form.addEventListener('submit', async function(e) {
|
|
e.preventDefault();
|
|
|
|
const formData = new FormData(form);
|
|
const data = Object.fromEntries(formData);
|
|
|
|
// Show loading state
|
|
loading.style.display = 'block';
|
|
successMessage.style.display = 'none';
|
|
errorMessage.style.display = 'none';
|
|
|
|
// Mock API call
|
|
try {
|
|
const response = await mockAPICall(data);
|
|
|
|
if (response.success) {
|
|
successMessage.style.display = 'block';
|
|
form.reset();
|
|
} else {
|
|
errorMessage.textContent = response.message || 'Something went wrong. Please try again.';
|
|
errorMessage.style.display = 'block';
|
|
}
|
|
} catch (error) {
|
|
errorMessage.textContent = 'Network error. Please try again.';
|
|
errorMessage.style.display = 'block';
|
|
} finally {
|
|
loading.style.display = 'none';
|
|
}
|
|
});
|
|
|
|
// Mock API function
|
|
async function mockAPICall(data) {
|
|
// Simulate API delay
|
|
await new Promise(resolve => setTimeout(resolve, 3000));
|
|
|
|
// Mock validation
|
|
if (data.domain && data.email && data.cardNumber) {
|
|
return {
|
|
success: true,
|
|
message: 'Your hosting business is being provisioned!'
|
|
};
|
|
} else {
|
|
return {
|
|
success: false,
|
|
message: 'Please fill in all required fields.'
|
|
};
|
|
}
|
|
}
|
|
|
|
// Smooth scroll for anchor links
|
|
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',
|
|
block: 'start'
|
|
});
|
|
}
|
|
});
|
|
});
|
|
</script>
|
|
</body>
|
|
</html> |