Merge stage fixes into dev — HAVE_CURL, free-tier checkout, Stripe dedup, escaped styles
This commit is contained in:
+18
-8
@@ -94,14 +94,14 @@ fn checkout_page(plan: String, pub_key: String) -> String {
|
||||
<div class="checkout-form-wrap">
|
||||
|
||||
<!-- Auth section: visible immediately for free, collapsed (optional) for paid plans -->
|
||||
<div id="auth-section" {#if is_free}{#else}style="display:none;"{/if}>
|
||||
{#if is_free}
|
||||
<p class="label" style="margin-bottom: 1.5rem; color: var(--navy);">Create your account.</p>
|
||||
<p class="checkout-auth-hint" style="margin-bottom: 2rem;">No charge today. Add your card to reserve your spot - you won't be billed until you upgrade.</p>
|
||||
{#else}
|
||||
<p class="label" style="margin-bottom: 1.25rem;">Sign in (optional)</p>
|
||||
<p class="checkout-auth-hint">Sign in to link this purchase to an existing account. Or skip and create one later - we'll match it to your email.</p>
|
||||
{/if}
|
||||
<div id=\"auth-section\" " + (if is_free { "" } else { "style=\"display:none;\"" }) + ">
|
||||
" + (if is_free { "
|
||||
<p class=\"label\" style=\"margin-bottom: 1.5rem; color: var(--navy);\">Create your account.</p>
|
||||
<p class=\"checkout-auth-hint\" style=\"margin-bottom: 2rem;\">No card required. Your account is free, forever.</p>
|
||||
" } else { "
|
||||
<p class=\"label\" style=\"margin-bottom: 1.25rem;\">Sign in (optional)</p>
|
||||
<p class=\"checkout-auth-hint\">Sign in to link this purchase to an existing account. Or skip and create one later - we'll match it to your email.</p>
|
||||
" }) + "
|
||||
|
||||
<div class="checkout-social-btns">
|
||||
<button type="button" class="checkout-social-btn" id="btn-google" onclick="signInWith('google')">
|
||||
@@ -135,6 +135,16 @@ fn checkout_page(plan: String, pub_key: String) -> String {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Free-tier success panel: shown after account creation, no card needed -->
|
||||
" + (if is_free { "
|
||||
<div id=\"free-success\" style=\"display:none; text-align:center; padding: 2.5rem 1rem;\">
|
||||
<div style=\"font-size:2.5rem; margin-bottom:1.25rem;\">✓</div>
|
||||
<p class=\"label\" style=\"margin-bottom:.75rem; color:var(--navy);\">You're in.</p>
|
||||
<p class=\"checkout-auth-hint\" style=\"margin-bottom:2rem;\">Your free account is ready. Download Neuron to get started.</p>
|
||||
<a href=\"/marketplace\" class=\"checkout-submit\" style=\"display:inline-block; text-decoration:none; padding:.875rem 2rem;\">Go to your account →</a>
|
||||
</div>
|
||||
" } else { "" }) + "
|
||||
|
||||
<!-- Payment form (visible immediately - no auth wall) -->
|
||||
<div id="payment-section" {#if is_free}style="display:none;"{/if}>
|
||||
<div id="auth-badge" style="display:none; margin-bottom: 1.5rem;"></div>
|
||||
|
||||
Reference in New Issue
Block a user