forked from Nixius/authelia
1
0
Fork 0
ATLAS/docker/ss-atlas/templates/pages/landing.html

197 lines
6.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: #eff8f8;
--surface: #ffffff;
--border: #d8e7e5;
--text: #14202a;
--muted: #5c6f77;
--accent: #75d46b;
--accent-hover: #5fbd55;
--brand: #172f43;
--brand-light: #75d46b;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
background:
radial-gradient(circle at 18% 12%, rgba(117, 212, 107, 0.18), transparent 28rem),
radial-gradient(circle at 82% 4%, rgba(39, 111, 148, 0.16), transparent 26rem),
linear-gradient(180deg, #e7f5f5 0%, var(--bg) 42%, #f8fbf8 100%);
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%; }
.brand {
display: flex;
flex-direction: column;
align-items: center;
gap: 0.35rem;
margin-bottom: 1.5rem;
text-align: center;
}
.brand-mark {
display: grid;
place-items: center;
width: 3.5rem;
height: 3.5rem;
color: var(--brand);
font-size: 2rem;
font-weight: 800;
letter-spacing: -0.08em;
line-height: 1;
position: relative;
}
.brand-mark::before {
content: "";
position: absolute;
inset: 0.2rem;
border: 2px solid var(--brand-light);
border-radius: 999px;
opacity: 0.55;
}
.logo {
color: var(--brand);
font-size: 1rem;
font-weight: 700;
letter-spacing: -0.03em;
}
.tagline {
color: var(--muted);
font-size: 0.95rem;
line-height: 1.5;
margin: 0 auto 1.5rem;
max-width: 24rem;
text-align: center;
}
.card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: 24px;
box-shadow: 0 1.25rem 3rem rgba(23, 47, 67, 0.08);
padding: 2rem;
}
.card h2 { font-size: 1.35rem; font-weight: 700; margin-bottom: 0.5rem; }
.price { font-size: 1.8rem; font-weight: 700; margin-bottom: 1.25rem; }
.price span { font-size: 0.9rem; font-weight: 400; color: var(--muted); }
.features { list-style: none; margin-bottom: 2rem; }
.features li { padding: 0.35rem 0; color: var(--muted); font-size: 0.92rem; }
.features li::before { content: "\2713"; color: var(--brand-light); font-weight: 700; margin-right: 0.75rem; }
form { display: flex; flex-direction: column; gap: 0.75rem; }
form label {
display: block;
font-size: 0.82rem;
font-weight: 700;
color: var(--text);
margin-bottom: -0.25rem;
}
input[type="email"], input[type="text"], input[type="tel"] {
width: 100%;
background: #fff;
border: 1px solid var(--border);
border-radius: 0;
padding: 0.55rem 0.65rem;
font-size: 0.9rem;
color: var(--text);
outline: none;
transition: border-color 0.2s;
}
input[type="email"]:focus, input[type="text"]:focus, input[type="tel"]:focus { border-color: var(--accent); }
input[type="email"]::placeholder, input[type="text"]::placeholder, input[type="tel"]::placeholder { color: var(--muted); }
button {
background: var(--accent);
color: #102414;
border: none;
border-radius: 2px;
padding: 0.65rem 1rem;
font-size: 0.9rem;
font-weight: 600;
cursor: pointer;
transition: background 0.2s;
}
button:hover { background: var(--accent-hover); }
.btn-primary {
display: inline-block;
background: var(--accent);
color: #102414;
text-decoration: none;
border-radius: 2px;
padding: 0.65rem 1.5rem;
font-size: 0.9rem;
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(--brand); font-weight: 700; 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="card">
<div class="brand">
<div class="brand-mark">A</div>
<div class="logo">a250.ca</div>
</div>
<p class="tagline">{{.Tagline}}</p>
{{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>/month for max 3 months</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>/month for max 3 months</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>
<a href="/checkout" class="btn-primary">Continue with Google</a>
{{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>