You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ShadowMap now ships with a minimalist marketing landing page, localized pricing, and optional Stripe Checkout integration.
45
+
ShadowMap now includes a minimalist, luxury-inspired landing page that mirrors the in-app experience. The Rust server renders it dynamically with localized pricing and optional Stripe checkout, while a static export in `landing-page/index.html` is ready for Vercel hosting.
46
+
47
+
#### Keep the static export in sync
48
+
49
+
```bash
50
+
cargo run --bin export_landing
51
+
```
52
+
53
+
The helper binary regenerates `landing-page/index.html` from the latest templates in `src/web/views.rs`. Run it after copy or styling updates so commits (and deployments) always ship the current markup.
54
+
55
+
#### Optional: enable Stripe checkout
46
56
47
57
1. Export your Stripe credentials and price IDs (test or live):
48
58
```bash
@@ -59,10 +69,7 @@ ShadowMap now ships with a minimalist marketing landing page, localized pricing,
2. (Optional) Point the lead-capture database at a custom SQLite location. The server defaults to
64
-
`sqlite://shadowmap.db` in the working directory and will automatically create the
65
-
`landing_leads` table when it starts:
72
+
2. (Optional) Point the lead-capture database at a custom SQLite location. The server defaults to `sqlite://shadowmap.db` in the working directory and creates the `landing_leads` table automatically:
@@ -72,9 +79,19 @@ ShadowMap now ships with a minimalist marketing landing page, localized pricing,
72
79
cargo run --bin shadowmap-server
73
80
```
74
81
75
-
4. Visit `http://localhost:8080/` for the public landing page and `http://localhost:8080/app` for the authenticated recon dashboard. Every checkout attempt stores the work email, plan, and region in
76
-
the `landing_leads` table for follow-up.
82
+
4. Visit `http://localhost:8080/` for the public landing page and `http://localhost:8080/app` for the recon dashboard. Checkout attempts log the work email, plan, and region to the `landing_leads` table for follow-up.
83
+
84
+
#### Deploy the static page to Vercel
85
+
86
+
1. Install the [Vercel CLI](https://vercel.com/cli) and authenticate (`vercel login`).
87
+
2. From the repository root, deploy the static export:
88
+
```bash
89
+
vercel --prod
90
+
```
91
+
The included `vercel.json` registers `landing-page/index.html` as the build artifact and rewrites all routes to it.
92
+
3. Future updates only require re-running `cargo run --bin export_landing`, committing the refreshed HTML, and redeploying with `vercel --prod`.
77
93
94
+
> **Note:** Checkout buttons remain disabled in the static export until the server exposes Stripe keys, keeping the hosted page aligned with production capabilities.
0 commit comments