Skip to content

Commit c4c810b

Browse files
committed
[shadowmap] fix: correct disabled copy attribute quoting
1 parent 5faf5e2 commit c4c810b

6 files changed

Lines changed: 1255 additions & 198 deletions

File tree

README.md

Lines changed: 25 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,19 @@ cargo fmt --all
4040
cargo clippy --workspace --all-targets -- -D warnings
4141
```
4242

43-
### Landing page & billing checkout
43+
### Landing page, billing checkout & Vercel
4444

45-
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
4656

4757
1. Export your Stripe credentials and price IDs (test or live):
4858
```bash
@@ -59,10 +69,7 @@ ShadowMap now ships with a minimalist marketing landing page, localized pricing,
5969
export STRIPE_CANCEL_URL=https://shadowmap.io/pricing
6070
```
6171

62-
63-
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:
6673
```bash
6774
export DATABASE_URL=sqlite:///var/lib/shadowmap/leads.db
6875
```
@@ -72,9 +79,19 @@ ShadowMap now ships with a minimalist marketing landing page, localized pricing,
7279
cargo run --bin shadowmap-server
7380
```
7481

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`.
7793

94+
> **Note:** Checkout buttons remain disabled in the static export until the server exposes Stripe keys, keeping the hosted page aligned with production capabilities.
7895
7996
### Supply Chain Security
8097

0 commit comments

Comments
 (0)