forked from Nixius/authelia
155 lines
5.2 KiB
HTML
155 lines
5.2 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>a250.ca - Subscribe</title>
|
|
<style>
|
|
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
|
:root {
|
|
--bg: #0f1117;
|
|
--surface: #1a1d27;
|
|
--border: #2a2d3a;
|
|
--text: #e4e4e7;
|
|
--muted: #a1a1aa;
|
|
--accent: #6366f1;
|
|
--accent-hover: #818cf8;
|
|
}
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
min-height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 2rem;
|
|
}
|
|
.container { max-width: 480px; width: 100%; }
|
|
.logo {
|
|
font-size: 2.5rem;
|
|
font-weight: 800;
|
|
letter-spacing: -0.04em;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
.tagline {
|
|
color: var(--muted);
|
|
font-size: 1.1rem;
|
|
margin-bottom: 2.5rem;
|
|
line-height: 1.5;
|
|
}
|
|
.card {
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: 12px;
|
|
padding: 2rem;
|
|
}
|
|
.card h2 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; }
|
|
.price { font-size: 2rem; font-weight: 700; margin-bottom: 1.5rem; }
|
|
.price span { font-size: 0.9rem; font-weight: 400; color: var(--muted); }
|
|
.features { list-style: none; margin-bottom: 2rem; }
|
|
.features li { padding: 0.4rem 0; color: var(--muted); font-size: 0.95rem; }
|
|
.features li::before { content: "\2713"; color: var(--accent); font-weight: 700; margin-right: 0.75rem; }
|
|
form { display: flex; flex-direction: column; gap: 0.75rem; }
|
|
input[type="email"], input[type="text"] {
|
|
background: var(--bg);
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
padding: 0.75rem 1rem;
|
|
font-size: 1rem;
|
|
color: var(--text);
|
|
outline: none;
|
|
transition: border-color 0.2s;
|
|
}
|
|
input[type="email"]:focus, input[type="text"]:focus { border-color: var(--accent); }
|
|
input[type="email"]::placeholder, input[type="text"]::placeholder { color: var(--muted); }
|
|
button {
|
|
background: var(--accent);
|
|
color: #fff;
|
|
border: none;
|
|
border-radius: 8px;
|
|
padding: 0.75rem 1rem;
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: background 0.2s;
|
|
}
|
|
button:hover { background: var(--accent-hover); }
|
|
.btn-primary {
|
|
display: inline-block;
|
|
background: var(--accent);
|
|
color: #fff;
|
|
text-decoration: none;
|
|
border-radius: 8px;
|
|
padding: 0.75rem 1.5rem;
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
transition: background 0.2s;
|
|
text-align: center;
|
|
}
|
|
.btn-primary:hover { background: var(--accent-hover); }
|
|
.footer { margin-top: 2rem; color: var(--muted); font-size: 0.8rem; text-align: center; }
|
|
.footer a { color: var(--accent); text-decoration: none; }
|
|
.version-badge {
|
|
position: fixed;
|
|
bottom: 0.75rem;
|
|
right: 0.75rem;
|
|
font-family: 'SF Mono', SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;
|
|
font-size: 0.65rem;
|
|
color: var(--muted);
|
|
opacity: 0.5;
|
|
pointer-events: none;
|
|
user-select: all;
|
|
}
|
|
</style>
|
|
{{template "analytics"}}
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<div class="logo">a250.ca</div>
|
|
<p class="tagline">{{.Tagline}}</p>
|
|
<div class="card">
|
|
{{if .SoldOut}}
|
|
<h2>Signups Full</h2>
|
|
<p style="color: var(--muted); margin-bottom: 1rem;">We've reached our limit for new signups. Check back later.</p>
|
|
{{else if and .StripePaymentLink (eq .PricingTier 0) (not .UseCheckoutForm)}}
|
|
<h2>Free Plan</h2>
|
|
<div class="price">$0 <span>/ one-time</span></div>
|
|
<ul class="features">
|
|
{{range .Features}}<li>{{.}}</li>{{end}}
|
|
</ul>
|
|
<a href="{{.StripePaymentLink}}" class="btn-primary">Sign Up Free</a>
|
|
{{else if .UseCheckoutForm}}
|
|
{{if eq .PricingTier 0}}
|
|
<h2>Launch Offer</h2>
|
|
<div class="price">$0 <span>/ 3 months, then ends</span></div>
|
|
{{else if eq .PricingTier 1}}
|
|
<h2>Founder Plan</h2>
|
|
<div class="price">$20 <span>/ year, then $100/month</span></div>
|
|
{{else}}
|
|
<h2>Pro Plan</h2>
|
|
<div class="price">$200 <span>/ month</span></div>
|
|
{{end}}
|
|
<ul class="features">
|
|
{{range .Features}}<li>{{.}}</li>{{end}}
|
|
</ul>
|
|
<form method="POST" action="/subscribe">
|
|
<input type="email" name="email" placeholder="you@example.com" required>
|
|
<input type="tel" name="phone" placeholder="+1 555 123 4567" autocomplete="tel" required>
|
|
<input type="text" name="domain" placeholder="Domain you want to manage (e.g. git.mycompany.com)" autocomplete="off" required>
|
|
<button type="submit">Subscribe Now</button>
|
|
</form>
|
|
{{else}}
|
|
<h2>Subscribe</h2>
|
|
<p style="color: var(--muted); margin-bottom: 1rem;">Pricing is being configured. Check back soon.</p>
|
|
{{end}}
|
|
</div>
|
|
<div class="footer">
|
|
Already subscribed? <a href="/dashboard">Go to Dashboard</a>
|
|
</div>
|
|
</div>
|
|
<div class="version-badge">{{.Commit}}</div>
|
|
</body>
|
|
</html>
|