Compare commits
14 Commits
3b184488bb
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
183a92123c | ||
|
|
2ec4a86e3d | ||
|
|
147a813119 | ||
|
|
db337ed9c6 | ||
|
|
3773dcc1f8 | ||
|
|
07abb101d4 | ||
|
|
4c98caabc8 | ||
|
|
d0bacdd622 | ||
|
|
49fdd96f4f | ||
|
|
c3511a4c1b | ||
|
|
9b0c36b5e0 | ||
|
|
37897f07c3 | ||
| 8f5e84523e | |||
|
|
fa12df8ec6 |
@@ -1,5 +1,5 @@
|
||||
# Logto auth endpoints — the marketing site only performs <a href> navigations to these.
|
||||
# No tokens, no cookies, no XHR — these are plain hyperlinks.
|
||||
PUBLIC_AUTH_SIGNIN_URL=https://auth.cameleer.io/sign-in
|
||||
PUBLIC_AUTH_SIGNUP_URL=https://auth.cameleer.io/sign-in?first_screen=register
|
||||
PUBLIC_AUTH_SIGNIN_URL=https://app.cameleer.io/sign-in
|
||||
PUBLIC_AUTH_SIGNUP_URL=https://app.cameleer.io/sign-in?first_screen=register
|
||||
PUBLIC_SALES_EMAIL=sales@cameleer.io
|
||||
|
||||
103
.gitea/workflows/deploy-placeholder.yml
Normal file
103
.gitea/workflows/deploy-placeholder.yml
Normal file
@@ -0,0 +1,103 @@
|
||||
# -----------------------------------------------------------------------------
|
||||
# cameleer-website — Deploy under-construction placeholder
|
||||
#
|
||||
# MANUAL TRIGGER ONLY. Replaces the live cameleer.io docroot with a static
|
||||
# "back shortly" page. Recovery: trigger Actions → deploy → Run workflow on
|
||||
# the desired main commit.
|
||||
#
|
||||
# Shares the deploy-production concurrency group with deploy.yml so the two
|
||||
# workflows queue rather than race on the same docroot.
|
||||
#
|
||||
# This workflow does NOT run npm/astro. The placeholder is hand-authored
|
||||
# static HTML in placeholder/, deliberately decoupled from the main build so
|
||||
# it can ship even when the main build is broken (which is the worst case in
|
||||
# which a placeholder is needed).
|
||||
#
|
||||
# Required secrets (repo settings → Actions → Secrets):
|
||||
# SFTP_HOST, SFTP_USER, SFTP_PATH, SFTP_KEY, SFTP_KNOWN_HOSTS
|
||||
# PUBLIC_SALES_EMAIL
|
||||
# -----------------------------------------------------------------------------
|
||||
|
||||
name: deploy-placeholder
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
concurrency:
|
||||
group: deploy-production
|
||||
cancel-in-progress: false
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 10
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Substitute sales email into placeholder
|
||||
env:
|
||||
PUBLIC_SALES_EMAIL: ${{ secrets.PUBLIC_SALES_EMAIL }}
|
||||
run: |
|
||||
set -e
|
||||
: "${PUBLIC_SALES_EMAIL:?PUBLIC_SALES_EMAIL secret must be set}"
|
||||
sed -i "s|__SALES_EMAIL__|${PUBLIC_SALES_EMAIL}|g" placeholder/index.html
|
||||
if grep -q '__SALES_EMAIL__' placeholder/index.html; then
|
||||
echo "Token __SALES_EMAIL__ still present after substitution — refusing to ship."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: Configure SSH
|
||||
env:
|
||||
SFTP_KEY: ${{ secrets.SFTP_KEY }}
|
||||
SFTP_KNOWN_HOSTS: ${{ secrets.SFTP_KNOWN_HOSTS }}
|
||||
run: |
|
||||
set -e
|
||||
: "${SFTP_KEY:?SFTP_KEY secret must be set}"
|
||||
: "${SFTP_KNOWN_HOSTS:?SFTP_KNOWN_HOSTS secret must be set}"
|
||||
mkdir -p ~/.ssh
|
||||
printf '%s\n' "$SFTP_KEY" > ~/.ssh/id_ed25519
|
||||
chmod 600 ~/.ssh/id_ed25519
|
||||
printf '%s\n' "$SFTP_KNOWN_HOSTS" > ~/.ssh/known_hosts
|
||||
chmod 644 ~/.ssh/known_hosts
|
||||
if ! command -v rsync >/dev/null 2>&1 || ! command -v ssh >/dev/null 2>&1; then
|
||||
if command -v sudo >/dev/null 2>&1; then SUDO=sudo; else SUDO=; fi
|
||||
$SUDO apt-get update -qq
|
||||
$SUDO apt-get install -y --no-install-recommends rsync openssh-client
|
||||
fi
|
||||
|
||||
- name: Deploy via rsync
|
||||
env:
|
||||
SFTP_USER: ${{ secrets.SFTP_USER }}
|
||||
SFTP_HOST: ${{ secrets.SFTP_HOST }}
|
||||
SFTP_PATH: ${{ secrets.SFTP_PATH }}
|
||||
run: |
|
||||
: "${SFTP_USER:?SFTP_USER secret must be set}"
|
||||
: "${SFTP_HOST:?SFTP_HOST secret must be set}"
|
||||
: "${SFTP_PATH:?SFTP_PATH secret must be set}"
|
||||
# Hetzner Webhosting splits SSH into two ports:
|
||||
# port 22 — SFTP only, no remote command exec
|
||||
# port 222 — full SSH with shell exec (rsync needs this)
|
||||
# `--rsync-path=/usr/bin/rsync` tells the local rsync where to find
|
||||
# the remote binary on Hetzner's locked-down PATH.
|
||||
# `BatchMode=yes` disables interactive prompts.
|
||||
rsync -avz --delete --rsync-path=/usr/bin/rsync \
|
||||
-e "ssh -p 222 -i $HOME/.ssh/id_ed25519 -o BatchMode=yes -o StrictHostKeyChecking=yes -o UserKnownHostsFile=$HOME/.ssh/known_hosts" \
|
||||
placeholder/ "$SFTP_USER@$SFTP_HOST:$SFTP_PATH/"
|
||||
|
||||
- name: Post-deploy smoke test
|
||||
run: |
|
||||
set -e
|
||||
echo "Confirming the placeholder is live on www.cameleer.io..."
|
||||
# Cache-bust per run so Cloudflare's edge can't serve a stale response
|
||||
# that masks a failed deploy. ?cb=$GITHUB_RUN_ID forces a fresh cache key;
|
||||
# the no-cache request header tells any well-behaved cache to revalidate.
|
||||
CB="$GITHUB_RUN_ID"
|
||||
BODY=$(curl -sf -H 'Cache-Control: no-cache' "https://www.cameleer.io/?cb=$CB")
|
||||
echo "$BODY" | grep -qF 'Routes are remapping' \
|
||||
|| { echo "Sentinel string missing — placeholder did not land."; exit 1; }
|
||||
echo "$BODY" | grep -qF 'mailto:' \
|
||||
|| { echo "mailto: link missing — sales email substitution may have failed."; exit 1; }
|
||||
curl -sfI -H 'Cache-Control: no-cache' "https://www.cameleer.io/cameleer-logo.png?cb=$CB" > /dev/null \
|
||||
|| { echo "cameleer-logo.png not reachable on the live origin."; exit 1; }
|
||||
echo "Placeholder is live."
|
||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,6 +1,7 @@
|
||||
# Build output
|
||||
dist/
|
||||
.astro/
|
||||
.lighthouseci/
|
||||
|
||||
# Dependencies
|
||||
node_modules/
|
||||
|
||||
@@ -75,8 +75,8 @@ Add these under Repository settings → Actions → Secrets (or variables):
|
||||
| `SFTP_PATH` | secret | Absolute path to the Apache vhost docroot configured in konsoleH (typically `/usr/www/users/<login>/public_html`). Mismatch → 404 on origin. |
|
||||
| `SFTP_KEY` | secret | Contents of `~/.ssh/cameleer-website-deploy` (private key, PEM) |
|
||||
| `SFTP_KNOWN_HOSTS` | secret | Contents of `hetzner-known-hosts.txt` (captured via `ssh-keyscan`) |
|
||||
| `PUBLIC_AUTH_SIGNIN_URL` | secret | `https://auth.cameleer.io/sign-in` |
|
||||
| `PUBLIC_AUTH_SIGNUP_URL` | secret | `https://auth.cameleer.io/sign-in?first_screen=register` |
|
||||
| `PUBLIC_AUTH_SIGNIN_URL` | secret | `https://app.cameleer.io/sign-in` |
|
||||
| `PUBLIC_AUTH_SIGNUP_URL` | secret | `https://app.cameleer.io/sign-in?first_screen=register` |
|
||||
| `PUBLIC_SALES_EMAIL` | secret | `sales@cameleer.io` (or whatever sales alias you set up) |
|
||||
|
||||
These three are not actually secret (they end up in the built HTML), but Gitea's
|
||||
@@ -87,8 +87,7 @@ workflows read them via the `${{ secrets.* }}` context.
|
||||
|
||||
- [ ] Fill in `src/pages/imprint.astro` `operator` object with real legal details.
|
||||
- [ ] Fill in `operatorContact` in `src/pages/privacy.astro`.
|
||||
- [ ] Review the "Why us" / nJAMS wording in `src/components/sections/WhyUs.astro` for trademark safety.
|
||||
- [ ] Confirm MID-tier retention: spec says **7 days**; `cameleer-saas/HOWTO.md` says **30 days**. Reconcile one side or the other.
|
||||
- [ ] Confirm Starter-tier retention: spec says **7 days**; `cameleer-saas/HOWTO.md` says **30 days**. Reconcile one side or the other.
|
||||
|
||||
## 5. First deploy
|
||||
|
||||
|
||||
@@ -38,6 +38,14 @@ See `.env.example`. All are `PUBLIC_*` (build-time, embedded in HTML).
|
||||
|
||||
Rollback: trigger the deploy workflow on the previous `main` commit (Actions UI lets you pick a ref).
|
||||
|
||||
### Placeholder mode
|
||||
|
||||
To put the site into "back shortly" mode, trigger Gitea → **Actions → deploy-placeholder → Run workflow**. To bring the real site back, trigger **Actions → deploy → Run workflow** on the desired `main` commit. Both workflows share the `deploy-production` concurrency group, so they can never run simultaneously.
|
||||
|
||||
The placeholder is hand-authored static HTML in `placeholder/` and does NOT depend on `npm`/`astro build` — it is deliberately decoupled from the main build so it can ship even when that build is broken.
|
||||
|
||||
**Scope note.** The placeholder serves HTTP 200 (not 503), so Cloudflare's edge will cache it normally. This is fine for short planned maintenance windows. For longer outages or incident fallback, purge Cloudflare's cache (or set a short-TTL Cache Rule for the maintenance window) before triggering recovery via `deploy.yml`, otherwise the edge may serve the placeholder past recovery until TTL expires.
|
||||
|
||||
**Security headers** (HSTS, CSP, X-Frame-Options, etc.) are owned by **Cloudflare Transform Rules**, not by anything in this repo. Hetzner Webhosting L ignores file-based `.htaccess` (`AllowOverride None`), so origin-side header config is impossible from code. See `OPERATOR-CHECKLIST.md` §2.
|
||||
|
||||
See [`OPERATOR-CHECKLIST.md`](./OPERATOR-CHECKLIST.md) for the one-time Hetzner + Cloudflare setup.
|
||||
|
||||
@@ -0,0 +1,518 @@
|
||||
# Under-construction placeholder Implementation Plan
|
||||
|
||||
> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking.
|
||||
|
||||
**Goal:** Ship a branded "back shortly" page for cameleer.io plus a manual-trigger Gitea workflow that swaps it onto the live origin on demand, recoverable by re-running the existing `deploy.yml`.
|
||||
|
||||
**Architecture:** Standalone HTML in a top-level `placeholder/` directory, plus two PNG asset copies. A new `.gitea/workflows/deploy-placeholder.yml` rsyncs that directory to the same Hetzner docroot used by `deploy.yml` (`--delete` enabled, `deploy-production` concurrency group shared so the two workflows queue rather than race). No Astro build dependency, so the placeholder still ships when the main build is broken — which is the worst case where one is needed.
|
||||
|
||||
**Tech Stack:** Plain HTML5 + inlined CSS, Google Fonts (DM Sans, JetBrains Mono), bash + rsync over SSH:222, Vitest 1 for static-content assertions.
|
||||
|
||||
**Spec:** `docs/superpowers/specs/2026-04-25-under-construction-placeholder-design.md` (commit `9b0c36b`).
|
||||
|
||||
---
|
||||
|
||||
## File Structure
|
||||
|
||||
| File | Status | Responsibility |
|
||||
|---|---|---|
|
||||
| `placeholder/index.html` | Create | Static under-construction page. Single self-contained file, references the two sibling PNGs by relative path. Contains `__SALES_EMAIL__` substitution token (used twice — `mailto:` href and link text). |
|
||||
| `placeholder/cameleer-logo.png` | Create (copy) | Hero logo. Copy of `public/icons/cameleer-192.png` (~36 KB). |
|
||||
| `placeholder/favicon.png` | Create (copy) | Browser tab icon. Copy of `public/icons/cameleer-32.png` (~2.4 KB). |
|
||||
| `src/placeholder.test.ts` | Create | Static assertions that the placeholder HTML has the contract the deploy workflow depends on (sentinel string, token, references, no JS, etc.). Lives in `src/` because `vitest.config.ts` only discovers `src/**/*.test.ts`. |
|
||||
| `.gitea/workflows/deploy-placeholder.yml` | Create | Manual-dispatch workflow: substitute sales email → rsync `placeholder/` to docroot → smoke-test the live origin. |
|
||||
| `README.md` | Modify | Append a "Placeholder mode" subsection under "Deployment". |
|
||||
|
||||
---
|
||||
|
||||
## Task 1: Add tests for the placeholder HTML
|
||||
|
||||
**Why first:** Establishes the contract the workflow depends on — sentinel string, substitution token, asset references — before any markup is written, so we can't accidentally drop one of them later.
|
||||
|
||||
**Files:**
|
||||
- Create: `src/placeholder.test.ts`
|
||||
|
||||
- [ ] **Step 1: Write the failing test file**
|
||||
|
||||
Create `src/placeholder.test.ts` with this exact content:
|
||||
|
||||
```typescript
|
||||
import { describe, it, expect } from 'vitest';
|
||||
import { existsSync, readFileSync } from 'node:fs';
|
||||
import { join } from 'node:path';
|
||||
|
||||
const placeholderDir = join(process.cwd(), 'placeholder');
|
||||
const indexPath = join(placeholderDir, 'index.html');
|
||||
|
||||
describe('placeholder/index.html', () => {
|
||||
const html = readFileSync(indexPath, 'utf8');
|
||||
|
||||
it('starts with the HTML5 doctype', () => {
|
||||
expect(html.toLowerCase().trimStart()).toMatch(/^<!doctype html>/);
|
||||
});
|
||||
|
||||
it('has the back-shortly title', () => {
|
||||
expect(html).toContain('<title>Cameleer — Back shortly</title>');
|
||||
});
|
||||
|
||||
it('is not indexable by search engines', () => {
|
||||
expect(html).toContain('<meta name="robots" content="noindex">');
|
||||
});
|
||||
|
||||
it('declares the dark color-scheme matching the live site', () => {
|
||||
expect(html).toContain('<meta name="color-scheme" content="dark">');
|
||||
expect(html).toContain('<meta name="theme-color" content="#060a13">');
|
||||
});
|
||||
|
||||
it('contains the sentinel string the deploy workflow greps for', () => {
|
||||
// The workflow's post-deploy smoke test fails if this string is missing.
|
||||
expect(html).toContain('Routes are remapping');
|
||||
});
|
||||
|
||||
it('uses the live hero subhead verbatim', () => {
|
||||
expect(html).toContain(
|
||||
'Cameleer is the hosted runtime and observability platform for Apache Camel — auto-traced, replay-ready, cross-service correlated. The 3 AM page becomes a 30-second answer.'
|
||||
);
|
||||
});
|
||||
|
||||
it('contains __SALES_EMAIL__ tokens at both the mailto href and the link text', () => {
|
||||
const matches = html.match(/__SALES_EMAIL__/g) ?? [];
|
||||
expect(matches.length).toBeGreaterThanOrEqual(2);
|
||||
});
|
||||
|
||||
it('contains no other __TOKEN__ style placeholders', () => {
|
||||
// Guard against a forgotten token that would survive the sed substitution.
|
||||
const allTokens = html.match(/__[A-Z][A-Z0-9_]+__/g) ?? [];
|
||||
const nonSales = allTokens.filter((t) => t !== '__SALES_EMAIL__');
|
||||
expect(nonSales).toEqual([]);
|
||||
});
|
||||
|
||||
it('references the sibling cameleer-logo.png by relative path', () => {
|
||||
expect(html).toContain('src="./cameleer-logo.png"');
|
||||
});
|
||||
|
||||
it('references the sibling favicon.png by relative path', () => {
|
||||
expect(html).toContain('href="./favicon.png"');
|
||||
});
|
||||
|
||||
it('has no <script> tags (placeholder must work without JS)', () => {
|
||||
expect(html).not.toMatch(/<script[\s>]/i);
|
||||
});
|
||||
});
|
||||
|
||||
describe('placeholder/ asset siblings', () => {
|
||||
it('cameleer-logo.png exists on disk', () => {
|
||||
expect(existsSync(join(placeholderDir, 'cameleer-logo.png'))).toBe(true);
|
||||
});
|
||||
|
||||
it('favicon.png exists on disk', () => {
|
||||
expect(existsSync(join(placeholderDir, 'favicon.png'))).toBe(true);
|
||||
});
|
||||
});
|
||||
```
|
||||
|
||||
- [ ] **Step 2: Run the test suite to verify the new tests fail**
|
||||
|
||||
Run: `npm test`
|
||||
|
||||
Expected: vitest fails when loading `src/placeholder.test.ts` because `readFileSync` throws `ENOENT` on the missing `placeholder/index.html`. The pre-existing `src/middleware.test.ts` suite must still pass.
|
||||
|
||||
- [ ] **Step 3: Commit the failing tests**
|
||||
|
||||
```bash
|
||||
git add src/placeholder.test.ts
|
||||
git commit -m "test(placeholder): add static-content tests for under-construction page"
|
||||
```
|
||||
|
||||
Note: this commit is intentionally a red bar. Task 2 turns it green in a single follow-up commit. If you prefer a green-only history, fold this commit into Task 2's commit at the end.
|
||||
|
||||
---
|
||||
|
||||
## Task 2: Create the placeholder page and copy assets
|
||||
|
||||
**Files:**
|
||||
- Create: `placeholder/index.html`
|
||||
- Create: `placeholder/cameleer-logo.png` (copy of `public/icons/cameleer-192.png`)
|
||||
- Create: `placeholder/favicon.png` (copy of `public/icons/cameleer-32.png`)
|
||||
|
||||
- [ ] **Step 1: Copy the PNG assets into `placeholder/`**
|
||||
|
||||
The repo's full-resolution `public/cameleer-logo.svg` is 1.5 MB (embedded raster data) and is not used here. The 192 px PNG is the correct size and weight for the placeholder hero.
|
||||
|
||||
```bash
|
||||
mkdir -p placeholder
|
||||
cp public/icons/cameleer-192.png placeholder/cameleer-logo.png
|
||||
cp public/icons/cameleer-32.png placeholder/favicon.png
|
||||
ls -la placeholder/
|
||||
```
|
||||
|
||||
Expected: both files present. `cameleer-logo.png` ~36 KB; `favicon.png` ~2.4 KB.
|
||||
|
||||
- [ ] **Step 2: Write `placeholder/index.html`**
|
||||
|
||||
Create `placeholder/index.html` with this exact content. Note both occurrences of `__SALES_EMAIL__` — the deploy workflow substitutes them via `sed ... -g`.
|
||||
|
||||
```html
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="color-scheme" content="dark">
|
||||
<meta name="theme-color" content="#060a13">
|
||||
<meta name="robots" content="noindex">
|
||||
<meta name="description" content="Cameleer is briefly offline. We'll be back on the trail in a moment.">
|
||||
|
||||
<title>Cameleer — Back shortly</title>
|
||||
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="./favicon.png">
|
||||
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link rel="stylesheet"
|
||||
href="https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,700;1,400&family=JetBrains+Mono&display=swap">
|
||||
|
||||
<style>
|
||||
:root {
|
||||
--bg: #060a13;
|
||||
--accent: #f0b429;
|
||||
--text: #e8eaed;
|
||||
--text-muted: #9aa3b2;
|
||||
--text-faint: #828b9b;
|
||||
}
|
||||
*, *::before, *::after { box-sizing: border-box; }
|
||||
html, body { margin: 0; padding: 0; }
|
||||
body {
|
||||
background-color: var(--bg);
|
||||
background-image: radial-gradient(60% 60% at 50% 50%, rgba(240, 180, 41, 0.10), transparent 70%);
|
||||
color: var(--text);
|
||||
font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
min-height: 100vh;
|
||||
}
|
||||
main {
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 2.5rem 1.5rem;
|
||||
text-align: center;
|
||||
}
|
||||
.logo {
|
||||
width: 96px;
|
||||
height: 96px;
|
||||
margin: 0 0 1.75rem;
|
||||
}
|
||||
.eyebrow {
|
||||
display: inline-block;
|
||||
margin: 0 0 1.5rem;
|
||||
font-size: 14px;
|
||||
font-style: italic;
|
||||
color: var(--accent);
|
||||
}
|
||||
h1 {
|
||||
margin: 0 0 1.5rem;
|
||||
font-weight: 700;
|
||||
font-size: clamp(2.25rem, 4.5vw, 4rem);
|
||||
line-height: 1.05;
|
||||
letter-spacing: -0.02em;
|
||||
max-width: 18ch;
|
||||
}
|
||||
.subhead {
|
||||
margin: 0 0 2rem;
|
||||
max-width: 42rem;
|
||||
font-size: 1.125rem;
|
||||
line-height: 1.55;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
.micro {
|
||||
margin: 0;
|
||||
font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
|
||||
font-size: 12px;
|
||||
color: var(--text-faint);
|
||||
}
|
||||
.micro a { color: inherit; text-decoration: none; }
|
||||
.micro a:hover, .micro a:focus { text-decoration: underline; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<main>
|
||||
<img class="logo" src="./cameleer-logo.png" alt="Cameleer" width="96" height="96">
|
||||
<p class="eyebrow">✦ Routes are remapping.</p>
|
||||
<h1>We're back on the trail<br>in a moment.</h1>
|
||||
<p class="subhead">Cameleer is the hosted runtime and observability platform for Apache Camel — auto-traced, replay-ready, cross-service correlated. The 3 AM page becomes a 30-second answer.</p>
|
||||
<p class="micro">cameleer.io · <a href="mailto:__SALES_EMAIL__">__SALES_EMAIL__</a></p>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
```
|
||||
|
||||
- [ ] **Step 3: Run the placeholder tests to verify they pass**
|
||||
|
||||
Run: `npm test -- placeholder`
|
||||
|
||||
Expected: all tests in `src/placeholder.test.ts` pass. (`-- placeholder` is a vitest test-name filter that runs only the new file's `describe` blocks for fast feedback.)
|
||||
|
||||
- [ ] **Step 4: Run the full test suite to verify no regressions**
|
||||
|
||||
Run: `npm test`
|
||||
|
||||
Expected: every existing test still passes (the middleware/CSP suite is the only other one).
|
||||
|
||||
- [ ] **Step 5: Visual verification in a browser**
|
||||
|
||||
The `__SALES_EMAIL__` token will be visible in the rendered page — that is expected; it's substituted at deploy time. Confirm visual treatment.
|
||||
|
||||
```bash
|
||||
npx serve placeholder -l 4322
|
||||
# then open http://localhost:4322 in a browser
|
||||
```
|
||||
|
||||
Confirm by eye:
|
||||
1. Centered single-column layout, logo on top.
|
||||
2. Dark background (#060a13) with a faint amber radial glow centered.
|
||||
3. Italic amber eyebrow `✦ Routes are remapping.`.
|
||||
4. Bold display heading wraps onto two lines on desktop ("We're back on the trail" / "in a moment.").
|
||||
5. Subhead reads as muted body text below.
|
||||
6. Mono microcopy at the bottom shows `cameleer.io · __SALES_EMAIL__` in faint grey, with the token rendered as a `mailto:` link.
|
||||
7. Resize the window to ~360 px wide — layout stays centered, heading scales down via `clamp()`, no horizontal scroll.
|
||||
|
||||
Stop the server with Ctrl-C when done.
|
||||
|
||||
- [ ] **Step 6: Commit the placeholder page and assets**
|
||||
|
||||
```bash
|
||||
git add placeholder/index.html placeholder/cameleer-logo.png placeholder/favicon.png
|
||||
git commit -m "feat(placeholder): add under-construction page with branded teaser
|
||||
|
||||
Standalone HTML + two sibling PNGs, no Astro build dependency.
|
||||
Carries __SALES_EMAIL__ substitution tokens that the new deploy
|
||||
workflow replaces at deploy time."
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Task 3: Add the deploy-placeholder workflow
|
||||
|
||||
**Files:**
|
||||
- Create: `.gitea/workflows/deploy-placeholder.yml`
|
||||
|
||||
- [ ] **Step 1: Write `.gitea/workflows/deploy-placeholder.yml`**
|
||||
|
||||
Create with this exact content. Mirrors `deploy.yml`'s SSH/rsync pattern but skips `npm ci`/`astro build`/Lighthouse — the placeholder is hand-authored static and must be deployable when the main build is broken.
|
||||
|
||||
```yaml
|
||||
# -----------------------------------------------------------------------------
|
||||
# cameleer-website — Deploy under-construction placeholder
|
||||
#
|
||||
# MANUAL TRIGGER ONLY. Replaces the live cameleer.io docroot with a static
|
||||
# "back shortly" page. Recovery: trigger Actions → deploy → Run workflow on
|
||||
# the desired main commit.
|
||||
#
|
||||
# Shares the deploy-production concurrency group with deploy.yml so the two
|
||||
# workflows queue rather than race on the same docroot.
|
||||
#
|
||||
# This workflow does NOT run npm/astro. The placeholder is hand-authored
|
||||
# static HTML in placeholder/, deliberately decoupled from the main build so
|
||||
# it can ship even when the main build is broken (which is the worst case in
|
||||
# which a placeholder is needed).
|
||||
#
|
||||
# Required secrets (repo settings → Actions → Secrets):
|
||||
# SFTP_HOST, SFTP_USER, SFTP_PATH, SFTP_KEY, SFTP_KNOWN_HOSTS
|
||||
# PUBLIC_SALES_EMAIL
|
||||
# -----------------------------------------------------------------------------
|
||||
|
||||
name: deploy-placeholder
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
concurrency:
|
||||
group: deploy-production
|
||||
cancel-in-progress: false
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 10
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Substitute sales email into placeholder
|
||||
env:
|
||||
PUBLIC_SALES_EMAIL: ${{ secrets.PUBLIC_SALES_EMAIL }}
|
||||
run: |
|
||||
set -e
|
||||
: "${PUBLIC_SALES_EMAIL:?PUBLIC_SALES_EMAIL secret must be set}"
|
||||
sed -i "s|__SALES_EMAIL__|${PUBLIC_SALES_EMAIL}|g" placeholder/index.html
|
||||
if grep -q '__SALES_EMAIL__' placeholder/index.html; then
|
||||
echo "Token __SALES_EMAIL__ still present after substitution — refusing to ship."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: Configure SSH
|
||||
env:
|
||||
SFTP_KEY: ${{ secrets.SFTP_KEY }}
|
||||
SFTP_KNOWN_HOSTS: ${{ secrets.SFTP_KNOWN_HOSTS }}
|
||||
run: |
|
||||
set -e
|
||||
: "${SFTP_KEY:?SFTP_KEY secret must be set}"
|
||||
: "${SFTP_KNOWN_HOSTS:?SFTP_KNOWN_HOSTS secret must be set}"
|
||||
mkdir -p ~/.ssh
|
||||
printf '%s\n' "$SFTP_KEY" > ~/.ssh/id_ed25519
|
||||
chmod 600 ~/.ssh/id_ed25519
|
||||
printf '%s\n' "$SFTP_KNOWN_HOSTS" > ~/.ssh/known_hosts
|
||||
chmod 644 ~/.ssh/known_hosts
|
||||
if ! command -v rsync >/dev/null 2>&1 || ! command -v ssh >/dev/null 2>&1; then
|
||||
if command -v sudo >/dev/null 2>&1; then SUDO=sudo; else SUDO=; fi
|
||||
$SUDO apt-get update -qq
|
||||
$SUDO apt-get install -y --no-install-recommends rsync openssh-client
|
||||
fi
|
||||
|
||||
- name: Deploy via rsync
|
||||
env:
|
||||
SFTP_USER: ${{ secrets.SFTP_USER }}
|
||||
SFTP_HOST: ${{ secrets.SFTP_HOST }}
|
||||
SFTP_PATH: ${{ secrets.SFTP_PATH }}
|
||||
run: |
|
||||
: "${SFTP_USER:?SFTP_USER secret must be set}"
|
||||
: "${SFTP_HOST:?SFTP_HOST secret must be set}"
|
||||
: "${SFTP_PATH:?SFTP_PATH secret must be set}"
|
||||
# Hetzner Webhosting splits SSH into two ports:
|
||||
# port 22 — SFTP only, no remote command exec
|
||||
# port 222 — full SSH with shell exec (rsync needs this)
|
||||
# `--rsync-path=/usr/bin/rsync` tells the local rsync where to find
|
||||
# the remote binary on Hetzner's locked-down PATH.
|
||||
# `BatchMode=yes` disables interactive prompts.
|
||||
rsync -avz --delete --rsync-path=/usr/bin/rsync \
|
||||
-e "ssh -p 222 -i $HOME/.ssh/id_ed25519 -o BatchMode=yes -o StrictHostKeyChecking=yes -o UserKnownHostsFile=$HOME/.ssh/known_hosts" \
|
||||
placeholder/ "$SFTP_USER@$SFTP_HOST:$SFTP_PATH/"
|
||||
|
||||
- name: Post-deploy smoke test
|
||||
run: |
|
||||
set -e
|
||||
echo "Confirming the placeholder is live on www.cameleer.io..."
|
||||
BODY=$(curl -sf https://www.cameleer.io/)
|
||||
echo "$BODY" | grep -qF 'Routes are remapping' \
|
||||
|| { echo "Sentinel string missing — placeholder did not land."; exit 1; }
|
||||
echo "$BODY" | grep -qF 'mailto:' \
|
||||
|| { echo "mailto: link missing — sales email substitution may have failed."; exit 1; }
|
||||
curl -sfI https://www.cameleer.io/cameleer-logo.png > /dev/null \
|
||||
|| { echo "cameleer-logo.png not reachable on the live origin."; exit 1; }
|
||||
echo "Placeholder is live."
|
||||
```
|
||||
|
||||
- [ ] **Step 2: Verify the YAML parses**
|
||||
|
||||
Run a quick Node-based parse check (no extra dep needed; Node ships with no YAML parser, so use a one-off `npx`):
|
||||
|
||||
```bash
|
||||
npx --yes js-yaml .gitea/workflows/deploy-placeholder.yml > /dev/null && echo "YAML OK"
|
||||
```
|
||||
|
||||
Expected: `YAML OK`. If `js-yaml` errors, re-read the file for stray tabs or unbalanced quoting.
|
||||
|
||||
- [ ] **Step 3: Verify the existing deploy.yml is unchanged**
|
||||
|
||||
Run: `git diff .gitea/workflows/deploy.yml`
|
||||
|
||||
Expected: empty output (the new workflow is additive only).
|
||||
|
||||
- [ ] **Step 4: Commit the workflow**
|
||||
|
||||
```bash
|
||||
git add .gitea/workflows/deploy-placeholder.yml
|
||||
git commit -m "ci(deploy): add deploy-placeholder workflow
|
||||
|
||||
Manual-trigger workflow that substitutes PUBLIC_SALES_EMAIL into
|
||||
placeholder/index.html, rsyncs placeholder/ to the Hetzner docroot
|
||||
over SSH:222, then smoke-tests the live origin for the sentinel
|
||||
string, mailto link, and logo URL.
|
||||
|
||||
Shares the deploy-production concurrency group with deploy.yml so
|
||||
the two workflows can never race on the same docroot. Recovery is
|
||||
the regular deploy.yml — no separate un-placeholder workflow."
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Task 4: Document the placeholder mode in the README
|
||||
|
||||
**Files:**
|
||||
- Modify: `README.md` (append a subsection under "## Deployment", after the existing "Rollback" paragraph and before "**Security headers**")
|
||||
|
||||
- [ ] **Step 1: Read the current README to locate the insertion point**
|
||||
|
||||
Run: `cat README.md`
|
||||
|
||||
Locate the line `Rollback: trigger the deploy workflow on the previous \`main\` commit (Actions UI lets you pick a ref).`. The new subsection goes immediately after it, separated by a blank line, before the `**Security headers**` paragraph.
|
||||
|
||||
- [ ] **Step 2: Insert the placeholder-mode subsection**
|
||||
|
||||
Use the `Edit` tool with these exact arguments. `old_string` is the existing two-paragraph boundary; `new_string` reproduces it with the new `### Placeholder mode` subsection wedged in between.
|
||||
|
||||
`file_path`: `README.md`
|
||||
|
||||
`old_string`:
|
||||
````
|
||||
Rollback: trigger the deploy workflow on the previous `main` commit (Actions UI lets you pick a ref).
|
||||
|
||||
**Security headers** (HSTS, CSP, X-Frame-Options, etc.) are owned by **Cloudflare Transform Rules**, not by anything in this repo.
|
||||
````
|
||||
|
||||
`new_string`:
|
||||
````
|
||||
Rollback: trigger the deploy workflow on the previous `main` commit (Actions UI lets you pick a ref).
|
||||
|
||||
### Placeholder mode
|
||||
|
||||
To put the site into "back shortly" mode, trigger Gitea → **Actions → deploy-placeholder → Run workflow**. To bring the real site back, trigger **Actions → deploy → Run workflow** on the desired `main` commit. Both workflows share the `deploy-production` concurrency group, so they can never run simultaneously.
|
||||
|
||||
The placeholder is hand-authored static HTML in `placeholder/` and does NOT depend on `npm`/`astro build` — it is deliberately decoupled from the main build so it can ship even when that build is broken.
|
||||
|
||||
**Security headers** (HSTS, CSP, X-Frame-Options, etc.) are owned by **Cloudflare Transform Rules**, not by anything in this repo.
|
||||
````
|
||||
|
||||
- [ ] **Step 3: Verify the README still renders cleanly**
|
||||
|
||||
Run: `cat README.md | head -60`
|
||||
|
||||
Confirm by eye that the new subsection appears under "Deployment", the surrounding paragraphs are intact, and there is exactly one blank line between adjacent blocks.
|
||||
|
||||
- [ ] **Step 4: Commit the README update**
|
||||
|
||||
```bash
|
||||
git add README.md
|
||||
git commit -m "docs(readme): add placeholder mode section
|
||||
|
||||
Documents the deploy-placeholder workflow trigger and the recovery
|
||||
path back to the real site via deploy.yml."
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Final verification
|
||||
|
||||
- [ ] **Run the full test suite one more time**
|
||||
|
||||
Run: `npm test`
|
||||
|
||||
Expected: all tests pass — both `src/middleware.test.ts` and `src/placeholder.test.ts`.
|
||||
|
||||
- [ ] **Confirm the four commits are in place**
|
||||
|
||||
Run: `git log --oneline -5`
|
||||
|
||||
Expected (top-down): README docs commit, deploy-placeholder.yml commit, placeholder feat commit, placeholder test commit, then the spec commit (`9b0c36b docs(spec): ...`).
|
||||
|
||||
- [ ] **Sanity-check the placeholder directory ships only what it should**
|
||||
|
||||
Run: `ls -la placeholder/`
|
||||
|
||||
Expected: exactly three files — `index.html`, `cameleer-logo.png`, `favicon.png`. No stray `.test.ts`, `.DS_Store`, etc. (If anything else appears, remove it before merging — `rsync --delete` would otherwise push it to the live origin.)
|
||||
|
||||
- [ ] **Push and trigger the first real run** (operator step, not part of the implementation)
|
||||
|
||||
Push the branch, merge to `main` once reviewed, then in Gitea: **Actions → deploy-placeholder → Run workflow** on `main`. Verify by visiting `https://www.cameleer.io/` that the placeholder renders, then trigger **Actions → deploy → Run workflow** to restore the real site.
|
||||
@@ -53,7 +53,7 @@ The relaunch's H1 leans Manager-outcome on purpose — the IT Manager is the che
|
||||
|
||||
The original site shipped with no social proof. This relaunch can't fix that with logos or attributed customer quotes — **none are ready to publish**. The two anchors we *can* lean on:
|
||||
|
||||
1. **Founder pedigree** (nJAMS lineage). Subject to trademark clearance — same gating as `WhyUs.astro`'s existing comment. Until cleared, the wording is held in a `<!-- PENDING -->` HTML comment.
|
||||
1. **Founder pedigree** — "15 years building integration monitoring for banks, insurers, and logistics operators." No prior-product name is used. The pedigree claim stands on the years and the customer-segment, not on a brand reference.
|
||||
2. **Design-partner program**. Reframes the pre-customer state as a feature ("hand-picked early partners"), with a `mailto:` CTA to `PUBLIC_SALES_EMAIL` that the visitor can use to apply.
|
||||
|
||||
Both anchors live in a new dedicated **Social Proof Strip** section (§6.2) immediately below the hero.
|
||||
@@ -118,14 +118,12 @@ Order is deliberate — see §11 for the rationale (proof-first arc: hero → wh
|
||||
- **Eyebrow** (mono, amber, ~12px): `// Built by people who've done this before`
|
||||
- **Quote block** (italic, ~17px, max 62ch, accent-colored 3px left border, padding-left ~20px):
|
||||
> *"We spent 15 years building integration monitoring for banks that couldn't afford downtime. Cameleer is what we'd build today — purpose-built for Apache Camel, no retrofit."*
|
||||
- **Attribution** (~13px, muted, mono): `— [Founder Name], co-founder · ex-nJAMS`
|
||||
- **Attribution** (~13px, muted, mono): `— [Founder Name], co-founder`
|
||||
- **Below attribution** (~24px gap, then a single `mailto:`-styled CTA in mono+cyan): `Apply to the design-partner program →`
|
||||
|
||||
**`<!-- PENDING -->` gates** (do not ship without resolving):
|
||||
|
||||
- `[Founder Name]` is a placeholder.
|
||||
- `ex-nJAMS` mention is gated on trademark clearance (same as `WhyUs.astro`'s existing §10 caveat).
|
||||
- Either gate may be deferred by removing the affected line — the section still works as "pedigree quote, design-partner CTA" without the nJAMS-specific phrase.
|
||||
- `[Founder Name]` is a placeholder. Must be filled in pre-publish.
|
||||
|
||||
**Design-partner CTA target**: built inline in `SocialProofStrip.astro` using `auth.salesEmail` (not `auth.salesMailto`, which has no subject helper):
|
||||
|
||||
@@ -372,15 +370,13 @@ A traditional SaaS layout (features → benefits → how → pricing) would put
|
||||
- [ ] `prefers-reduced-motion: reduce` disables the hero-mark sway and any tile-rise animations (existing handling preserved).
|
||||
- [ ] Tab focus order on the homepage is: nav → hero primary → hero secondary → social-proof CTA → walkthrough CTA targets … → final CTA.
|
||||
- [ ] All `mailto:` links open with the correct subject (design-partner CTA + sales contacts).
|
||||
- [ ] Trademark `<!-- PENDING -->` gate in `SocialProofStrip.astro` and `WhyUs.astro` is reviewed before publish.
|
||||
- [ ] Founder name placeholder is filled in `SocialProofStrip.astro` before publish.
|
||||
|
||||
**Pre-publish blockers** (recorded in code as `<!-- PENDING -->` HTML comments):
|
||||
|
||||
1. `[Founder Name]` placeholder in `SocialProofStrip.astro` — must be replaced with a real name.
|
||||
2. nJAMS / `ex-nJAMS` wording — must clear trademark review (existing pattern from `WhyUs.astro`).
|
||||
|
||||
These are deliberately surfaced as code-level TODOs rather than spec-level open questions so the operator can't accidentally publish with the placeholders intact.
|
||||
This is deliberately surfaced as a code-level TODO rather than a spec-level open question so the operator can't accidentally publish with the placeholder intact.
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -0,0 +1,133 @@
|
||||
# Under-construction placeholder — design
|
||||
|
||||
**Date:** 2026-04-25
|
||||
**Status:** approved (pending user spec review)
|
||||
|
||||
## 1. Purpose
|
||||
|
||||
A branded "back shortly" page for cameleer.io that the operator can swap into the live origin on demand from Gitea Actions. Used during planned maintenance, incident fallback, or any moment the real site needs to come down without leaving visitors on a broken page.
|
||||
|
||||
## 2. Constraints & non-goals
|
||||
|
||||
- **Same target as the real site.** Deploys to the same Hetzner Webhosting L docroot used by `deploy.yml`. Replaces the live `index.html` and assets at the docroot root.
|
||||
- **Must work when the main build is broken.** This is the worst-case in which a placeholder is needed. Therefore the placeholder MUST NOT depend on `npm ci`, `astro build`, or any other step that could fail along with the main site's build.
|
||||
- **Manual trigger only.** Same pattern as `deploy.yml` — `workflow_dispatch` from the Gitea UI. No push/auto-deploy.
|
||||
- **Cannot race the main deploy.** Both workflows write to the same docroot via `rsync --delete`; concurrent runs would clobber each other.
|
||||
- **Recovery is the regular deploy.** Triggering `deploy.yml` on any `main` commit restores the site. No bespoke "un-placeholder" workflow.
|
||||
- **Origin-side headers are not in scope.** Hetzner Webhosting L runs `AllowOverride None`; all response headers are owned by Cloudflare Transform Rules (see `OPERATOR-CHECKLIST.md` §2). The placeholder workflow does NOT need to assert HSTS/CSP/XFO — those headers are origin-agnostic.
|
||||
|
||||
Out of scope:
|
||||
- Per-environment placeholder variants (staging, etc.). Same target, same content.
|
||||
- A status page, ETA, or live incident feed.
|
||||
- Cookie banner, analytics, or any third-party JS.
|
||||
|
||||
## 3. Architecture
|
||||
|
||||
```
|
||||
cameleer-website/
|
||||
├── placeholder/
|
||||
│ ├── index.html # standalone HTML, inlined CSS
|
||||
│ ├── cameleer-logo.png # copy of public/icons/cameleer-192.png (~36 KB)
|
||||
│ └── favicon.png # copy of public/icons/cameleer-32.png (~2.4 KB)
|
||||
├── .gitea/workflows/
|
||||
│ ├── ci.yml # unchanged
|
||||
│ ├── deploy.yml # unchanged
|
||||
│ └── deploy-placeholder.yml # NEW
|
||||
└── README.md # NEW section: "Placeholder mode"
|
||||
```
|
||||
|
||||
### Why standalone HTML, not Astro
|
||||
|
||||
The placeholder lives outside `src/`, is not picked up by `astro build`, and never enters `dist/`. It is a single self-contained `index.html` with inlined CSS. Two PNG assets ship alongside the HTML in `placeholder/` and are referenced by relative paths (`./cameleer-logo.png`, `./favicon.png`) so the page renders correctly after `rsync --delete` clears the docroot. The repo's full-resolution `public/cameleer-logo.svg` is 1.5 MB (embedded raster data) and is therefore not used here; the 192 px PNG is the right size and weight for a placeholder hero.
|
||||
|
||||
Trade-off accepted: brand tokens (colors, fonts) are hand-mirrored from `tailwind.config.mjs` rather than imported. If those tokens change, the placeholder may visibly drift. Acceptable because (a) the placeholder is rarely shown, (b) the file is short enough to re-sync in two minutes, (c) the alternative — coupling the placeholder to the Astro build — defeats the placeholder's whole reason for existing.
|
||||
|
||||
### Workflow shape
|
||||
|
||||
`deploy-placeholder.yml`:
|
||||
|
||||
- **Trigger:** `workflow_dispatch` only.
|
||||
- **Concurrency:** `group: deploy-production`, `cancel-in-progress: false` — same group as `deploy.yml`. Gitea will queue, never overlap.
|
||||
- **Runner:** `ubuntu-latest` (matches `deploy.yml`).
|
||||
- **Secrets used:** `SFTP_HOST`, `SFTP_USER`, `SFTP_PATH`, `SFTP_KEY`, `SFTP_KNOWN_HOSTS`, `PUBLIC_SALES_EMAIL`.
|
||||
- **Steps:**
|
||||
1. `actions/checkout@v4`
|
||||
2. Configure SSH (key + known_hosts; install rsync/openssh if missing) — same logic as `deploy.yml` lines 70–88.
|
||||
3. **Inject `PUBLIC_SALES_EMAIL` into the placeholder.** The HTML contains a single literal token `__SALES_EMAIL__` (no hyphens, no other instances anywhere); `sed -i "s|__SALES_EMAIL__|$PUBLIC_SALES_EMAIL|g" placeholder/index.html`. Fail loudly with `: "${PUBLIC_SALES_EMAIL:?...}"` first. Verify replacement by grepping that the token no longer appears.
|
||||
4. `rsync -avz --delete --rsync-path=/usr/bin/rsync` over `ssh -p 222` of `placeholder/` → `$SFTP_PATH/` — same flags and SSH options as `deploy.yml` lines 107–109.
|
||||
5. **Smoke test:** `curl -s https://www.cameleer.io/ | grep -q 'Routes are remapping'` — placeholder-unique sentinel. Fail the workflow if absent. (Skip the security-headers grep from `deploy.yml`; those headers come from Cloudflare and apply equally to placeholder responses, so they're already covered.)
|
||||
|
||||
### Why `rsync --delete`
|
||||
|
||||
Matches `deploy.yml` behaviour. The docroot reflects exactly what the placeholder ships, with no leftover assets from a previous real-site deploy lingering and being indexed.
|
||||
|
||||
## 4. Placeholder content
|
||||
|
||||
### Markup outline
|
||||
|
||||
Single `<!doctype html>` document. Sections, in order:
|
||||
|
||||
1. `<head>`:
|
||||
- `<title>Cameleer — Back shortly</title>`
|
||||
- `<meta name="description" content="Cameleer is briefly offline. We'll be back on the trail in a moment.">`
|
||||
- `<meta name="robots" content="noindex">`
|
||||
- `<meta name="color-scheme" content="dark">` and `<meta name="theme-color" content="#060a13">` (matches `BaseLayout.astro`)
|
||||
- `<link rel="icon" type="image/png" sizes="32x32" href="./favicon.png">` — the 32 px PNG that ships in `placeholder/`. Relative path so it resolves against the docroot root after rsync.
|
||||
- Google Fonts `<link>` for DM Sans (400, 700) and JetBrains Mono (400). Single preconnect.
|
||||
- Inlined `<style>` block with the design tokens below.
|
||||
|
||||
2. `<body>`:
|
||||
- Centered `<main>` (flex, full viewport height, items/justify center).
|
||||
- `<img src="./cameleer-logo.png" alt="Cameleer" width="96" height="96">` — references the sibling PNG that ships in `placeholder/`. Relative path so it resolves against the docroot root regardless of what `rsync --delete` cleared.
|
||||
- Eyebrow: `<p>` with `✦ Routes are remapping.` — italic, accent color, small.
|
||||
- Heading: `<h1>` with `We're back on the trail<br>in a moment.` — display size, tight tracking. Two-line cadence echoes the live hero's "Ship Camel integrations. Sleep through the night."
|
||||
- Subhead: lifted verbatim from `src/components/sections/Hero.astro` line 42 — `Cameleer is the hosted runtime and observability platform for Apache Camel — auto-traced, replay-ready, cross-service correlated. The 3 AM page becomes a 30-second answer.`
|
||||
- Mono microcopy: `<p>` with `cameleer.io · <a href="mailto:__SALES_EMAIL__">__SALES_EMAIL__</a>` — JetBrains Mono, faint color. The token is replaced at deploy time.
|
||||
|
||||
### Design tokens (mirrored from `tailwind.config.mjs`)
|
||||
|
||||
```css
|
||||
--bg: #060a13;
|
||||
--bg-elevated: #0c111a;
|
||||
--border: #1e2535;
|
||||
--accent: #f0b429;
|
||||
--text: #e8eaed;
|
||||
--text-muted: #9aa3b2;
|
||||
--text-faint: #828b9b;
|
||||
```
|
||||
|
||||
Background: solid `--bg` with a single `radial-gradient(60% 60% at 50% 50%, rgba(240,180,41,0.10), transparent 70%)` overlay to echo the hero's amber glow. No topographic SVG — too much weight for a fallback page.
|
||||
|
||||
Typography:
|
||||
- Eyebrow: DM Sans italic, 14px, `--accent`, letter-spacing 0.
|
||||
- H1: DM Sans 700, `clamp(2.25rem, 4.5vw, 4rem)`, line-height 1.05, `letter-spacing: -0.02em` — same numbers as the hero `.hero-h1` rule.
|
||||
- Subhead: DM Sans 400, 1.125rem, `--text-muted`, max-width ~42rem (matches `maxWidth.prose`).
|
||||
- Microcopy: JetBrains Mono 400, 12px, `--text-faint`. Underline on hover only.
|
||||
|
||||
`@media (prefers-reduced-motion: reduce)` is not relevant because the page has no animations.
|
||||
|
||||
### File size budget
|
||||
|
||||
Target ≤ 6 KB for `index.html` itself (markup + inlined CSS, no inlined image data). The two PNG siblings (`cameleer-logo.png` ~36 KB, `favicon.png` ~2.4 KB) ship as separate files. No JS, no external CSS, no fonts other than the Google Fonts CSS link (the actual font files are fetched lazily by the browser).
|
||||
|
||||
## 5. README update
|
||||
|
||||
Append a "Placeholder mode" section under "Deployment":
|
||||
|
||||
> **Placeholder mode.** To put the site into "back shortly" mode, trigger `Actions → deploy-placeholder → Run workflow`. To bring the real site back, trigger `Actions → deploy → Run workflow` on the desired `main` commit. Because both workflows share the `deploy-production` concurrency group, they can never run simultaneously.
|
||||
|
||||
## 6. Verification
|
||||
|
||||
After implementation:
|
||||
|
||||
1. Local visual check: open `placeholder/index.html` in a browser (the `__SALES_EMAIL__` token will be visible, that is expected) and confirm centered layout, brand colors, logo render, and copy render correctly at 360px / 768px / 1440px viewport widths.
|
||||
2. Run a dry rsync against an alternate path (e.g. a throwaway docroot folder) before flipping cameleer.io.
|
||||
3. First real run: trigger `deploy-placeholder`, confirm sales email substituted (`curl -s https://www.cameleer.io/ | grep -F 'mailto:'`), confirm sentinel string present, confirm `curl -sI https://www.cameleer.io/cameleer-logo.png` returns HTTP 200. Then trigger `deploy.yml` to restore.
|
||||
|
||||
## 7. Open questions
|
||||
|
||||
None. All clarifying questions answered during brainstorming:
|
||||
- Same target as real site (Hetzner cameleer.io docroot).
|
||||
- Branded teaser using existing hero subhead.
|
||||
- Contact line uses `PUBLIC_SALES_EMAIL` secret.
|
||||
- Smoke test grep is in.
|
||||
@@ -2,6 +2,7 @@
|
||||
"recurse": true,
|
||||
"silent": true,
|
||||
"skip": [
|
||||
"^https://app\\.cameleer\\.io",
|
||||
"^https://auth\\.cameleer\\.io",
|
||||
"^https://platform\\.cameleer\\.io",
|
||||
"^https://www\\.cameleer\\.io",
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
"test:watch": "vitest",
|
||||
"lint:html": "html-validate \"dist/**/*.html\"",
|
||||
"lint:links": "linkinator dist --recurse --silent",
|
||||
"optimize:images": "node scripts/optimize-product-images.mjs",
|
||||
"lh": "lhci autorun"
|
||||
},
|
||||
"dependencies": {
|
||||
|
||||
BIN
placeholder/cameleer-logo.png
Normal file
BIN
placeholder/cameleer-logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 35 KiB |
BIN
placeholder/favicon.png
Normal file
BIN
placeholder/favicon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.3 KiB |
93
placeholder/index.html
Normal file
93
placeholder/index.html
Normal file
@@ -0,0 +1,93 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="color-scheme" content="dark">
|
||||
<meta name="theme-color" content="#060a13">
|
||||
<meta name="robots" content="noindex">
|
||||
<meta name="description" content="Cameleer is briefly offline. We'll be back on the trail in a moment.">
|
||||
|
||||
<title>Cameleer — Back shortly</title>
|
||||
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="./favicon.png">
|
||||
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link rel="stylesheet"
|
||||
href="https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,700;1,400&family=JetBrains+Mono&display=swap">
|
||||
|
||||
<style>
|
||||
:root {
|
||||
--bg: #060a13;
|
||||
--accent: #f0b429;
|
||||
--text: #e8eaed;
|
||||
--text-muted: #9aa3b2;
|
||||
--text-faint: #828b9b;
|
||||
}
|
||||
*, *::before, *::after { box-sizing: border-box; }
|
||||
html, body { margin: 0; padding: 0; }
|
||||
body {
|
||||
background-color: var(--bg);
|
||||
background-image: radial-gradient(60% 60% at 50% 50%, rgba(240, 180, 41, 0.10), transparent 70%);
|
||||
color: var(--text);
|
||||
font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
min-height: 100vh;
|
||||
}
|
||||
main {
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 2.5rem 1.5rem;
|
||||
text-align: center;
|
||||
}
|
||||
.logo {
|
||||
width: 96px;
|
||||
height: 96px;
|
||||
margin: 0 0 1.75rem;
|
||||
}
|
||||
.eyebrow {
|
||||
display: inline-block;
|
||||
margin: 0 0 1.5rem;
|
||||
font-size: 14px;
|
||||
font-style: italic;
|
||||
color: var(--accent);
|
||||
}
|
||||
h1 {
|
||||
margin: 0 0 1.5rem;
|
||||
font-weight: 700;
|
||||
font-size: clamp(2.25rem, 4.5vw, 4rem);
|
||||
line-height: 1.05;
|
||||
letter-spacing: -0.02em;
|
||||
max-width: 18ch;
|
||||
}
|
||||
.subhead {
|
||||
margin: 0 0 2rem;
|
||||
max-width: 42rem;
|
||||
font-size: 1.125rem;
|
||||
line-height: 1.55;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
.micro {
|
||||
margin: 0;
|
||||
font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
|
||||
font-size: 12px;
|
||||
color: var(--text-faint);
|
||||
}
|
||||
.micro a { color: inherit; text-decoration: none; }
|
||||
.micro a:hover, .micro a:focus { text-decoration: underline; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<main>
|
||||
<img class="logo" src="./cameleer-logo.png" alt="Cameleer" width="96" height="96">
|
||||
<p class="eyebrow">✦ Routes are remapping.</p>
|
||||
<h1>We're back on the trail<br>in a moment.</h1>
|
||||
<p class="subhead">Cameleer is the hosted runtime and observability platform for Apache Camel — auto-traced, replay-ready, cross-service correlated. The 3 AM page becomes a 30-second answer.</p>
|
||||
<p class="micro">cameleer.io · <a href="mailto:__SALES_EMAIL__">__SALES_EMAIL__</a></p>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
BIN
public/product/error-detail-1280.webp
Normal file
BIN
public/product/error-detail-1280.webp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 56 KiB |
BIN
public/product/error-detail-1920.webp
Normal file
BIN
public/product/error-detail-1920.webp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 107 KiB |
BIN
public/product/exchange-detail-1280.webp
Normal file
BIN
public/product/exchange-detail-1280.webp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 46 KiB |
BIN
public/product/exchange-detail-1920.webp
Normal file
BIN
public/product/exchange-detail-1920.webp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 83 KiB |
48
scripts/optimize-product-images.mjs
Normal file
48
scripts/optimize-product-images.mjs
Normal file
@@ -0,0 +1,48 @@
|
||||
// Generate WebP variants of source PNGs in public/product/.
|
||||
// Run after replacing/adding a source PNG; outputs are committed.
|
||||
//
|
||||
// For each <name>.png we emit:
|
||||
// <name>-1280.webp (q=82, used as inline srcset for desktop ≤ ~1280 px)
|
||||
// <name>-1920.webp (q=80, used as inline srcset for retina/wide viewports
|
||||
// and as the lightbox-modal full-size source)
|
||||
//
|
||||
// The original .png is kept as a <picture> fallback for the rare browser
|
||||
// without WebP support (~2 % globally).
|
||||
|
||||
import { readdir, stat } from 'node:fs/promises';
|
||||
import { join, parse } from 'node:path';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
import sharp from 'sharp';
|
||||
|
||||
const SRC_DIR = fileURLToPath(new URL('../public/product/', import.meta.url));
|
||||
|
||||
const VARIANTS = [
|
||||
{ width: 1280, quality: 82, suffix: '-1280' },
|
||||
{ width: 1920, quality: 80, suffix: '-1920' },
|
||||
];
|
||||
|
||||
const entries = await readdir(SRC_DIR);
|
||||
const pngs = entries.filter((f) => f.toLowerCase().endsWith('.png'));
|
||||
|
||||
if (pngs.length === 0) {
|
||||
console.error(`No PNGs found in ${SRC_DIR}`);
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
for (const file of pngs) {
|
||||
const { name } = parse(file);
|
||||
const inputPath = join(SRC_DIR, file);
|
||||
const inputBytes = (await stat(inputPath)).size;
|
||||
console.log(`\n${file} (${(inputBytes / 1024).toFixed(0)} KiB)`);
|
||||
|
||||
for (const v of VARIANTS) {
|
||||
const outName = `${name}${v.suffix}.webp`;
|
||||
const outPath = join(SRC_DIR, outName);
|
||||
const info = await sharp(inputPath)
|
||||
.resize({ width: v.width, withoutEnlargement: true })
|
||||
.webp({ quality: v.quality, effort: 6 })
|
||||
.toFile(outPath);
|
||||
const pct = ((1 - info.size / inputBytes) * 100).toFixed(0);
|
||||
console.log(` → ${outName} ${(info.size / 1024).toFixed(0)} KiB (-${pct}%)`);
|
||||
}
|
||||
}
|
||||
@@ -5,9 +5,14 @@ interface Props {
|
||||
width: number;
|
||||
height: number;
|
||||
loading?: 'eager' | 'lazy';
|
||||
fetchpriority?: 'high' | 'low' | 'auto';
|
||||
caption?: string;
|
||||
triggerClass?: string;
|
||||
imgClass?: string;
|
||||
/** Set to false for sources without sibling .webp variants. */
|
||||
optimized?: boolean;
|
||||
/** CSS sizes attribute for the WebP srcset. Defaults to a mobile-first guess. */
|
||||
sizes?: string;
|
||||
}
|
||||
|
||||
const {
|
||||
@@ -16,11 +21,20 @@ const {
|
||||
width,
|
||||
height,
|
||||
loading = 'lazy',
|
||||
fetchpriority,
|
||||
caption,
|
||||
triggerClass = '',
|
||||
imgClass = 'block w-full h-auto',
|
||||
optimized = true,
|
||||
sizes = '(min-width: 1024px) 56vw, 100vw',
|
||||
} = Astro.props;
|
||||
|
||||
// Auto-derive WebP variant paths from the PNG src. The optimize-product-images
|
||||
// script emits <name>-1280.webp and <name>-1920.webp next to each <name>.png.
|
||||
const webpBase = optimized && /\.png$/i.test(src) ? src.replace(/\.png$/i, '') : null;
|
||||
const webpSrcset = webpBase ? `${webpBase}-1280.webp 1280w, ${webpBase}-1920.webp 1920w` : null;
|
||||
const webpDialogSrc = webpBase ? `${webpBase}-1920.webp` : src;
|
||||
|
||||
// Unique per-instance id so multiple lightboxes on a page do not collide.
|
||||
const dialogId = `lb-${Math.random().toString(36).slice(2, 10)}`;
|
||||
---
|
||||
@@ -30,15 +44,32 @@ const dialogId = `lb-${Math.random().toString(36).slice(2, 10)}`;
|
||||
data-lightbox-open={dialogId}
|
||||
aria-label={`Enlarge: ${alt}`}
|
||||
>
|
||||
<img
|
||||
src={src}
|
||||
alt={alt}
|
||||
width={width}
|
||||
height={height}
|
||||
loading={loading}
|
||||
decoding="async"
|
||||
class={imgClass}
|
||||
/>
|
||||
{webpSrcset ? (
|
||||
<picture>
|
||||
<source type="image/webp" srcset={webpSrcset} sizes={sizes} />
|
||||
<img
|
||||
src={src}
|
||||
alt={alt}
|
||||
width={width}
|
||||
height={height}
|
||||
loading={loading}
|
||||
decoding="async"
|
||||
fetchpriority={fetchpriority}
|
||||
class={imgClass}
|
||||
/>
|
||||
</picture>
|
||||
) : (
|
||||
<img
|
||||
src={src}
|
||||
alt={alt}
|
||||
width={width}
|
||||
height={height}
|
||||
loading={loading}
|
||||
decoding="async"
|
||||
fetchpriority={fetchpriority}
|
||||
class={imgClass}
|
||||
/>
|
||||
)}
|
||||
<span aria-hidden="true" class="lightbox-zoom-badge">
|
||||
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
||||
<circle cx="11" cy="11" r="7.5"/>
|
||||
@@ -59,7 +90,7 @@ const dialogId = `lb-${Math.random().toString(36).slice(2, 10)}`;
|
||||
</svg>
|
||||
</button>
|
||||
</form>
|
||||
<img src={src} alt={alt} class="lightbox-image" />
|
||||
<img src={webpDialogSrc} alt={alt} class="lightbox-image" loading="lazy" decoding="async" />
|
||||
{caption && <p class="lightbox-caption">{caption}</p>}
|
||||
</dialog>
|
||||
|
||||
|
||||
@@ -58,6 +58,7 @@ const pins: Pin[] = [
|
||||
width={1920}
|
||||
height={945}
|
||||
loading="eager"
|
||||
fetchpriority="high"
|
||||
/>
|
||||
<div class="absolute inset-0 ring-1 ring-inset ring-accent/10 pointer-events-none rounded-lg"></div>
|
||||
{pins.map((pin) => (
|
||||
|
||||
@@ -3,12 +3,7 @@ import { getAuthConfig } from '../../config/auth';
|
||||
|
||||
const auth = getAuthConfig();
|
||||
|
||||
// PENDING — must be filled in before publish:
|
||||
// 1. [Founder Name] placeholder below.
|
||||
// 2. The "ex-nJAMS" mention is gated on Hendrik's trademark review
|
||||
// (same pattern as WhyUs.astro §10 caveat). If the review is not
|
||||
// cleared by publish time, drop the " · ex-nJAMS" suffix from the
|
||||
// attribution line.
|
||||
// PENDING — [Founder Name] placeholder must be filled in before publish.
|
||||
const founderName = '[Founder Name]';
|
||||
const designPartnerSubject = 'Design partner enquiry — Cameleer';
|
||||
const designPartnerHref = `mailto:${auth.salesEmail}?subject=${encodeURIComponent(designPartnerSubject)}`;
|
||||
@@ -24,7 +19,7 @@ const designPartnerHref = `mailto:${auth.salesEmail}?subject=${encodeURIComponen
|
||||
“We spent 15 years building integration monitoring for banks that couldn’t afford downtime. Cameleer is what we’d build today — purpose-built for Apache Camel, no retrofit.”
|
||||
</p>
|
||||
<footer class="text-sm font-mono text-text-muted">
|
||||
— <span class="text-text">{founderName}</span>, co-founder · ex-nJAMS
|
||||
— <span class="text-text">{founderName}</span>, co-founder
|
||||
</footer>
|
||||
</blockquote>
|
||||
<a
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
---
|
||||
// Final nJAMS-legacy wording is subject to Hendrik's trademark review before go-live
|
||||
// (see docs/superpowers/specs/2026-04-24-cameleer-website-design.md §10).
|
||||
---
|
||||
<section class="border-b border-border">
|
||||
<div class="max-w-content mx-auto px-6 py-20 md:py-24">
|
||||
|
||||
@@ -4,57 +4,57 @@ import { resolveAuthConfig } from './auth';
|
||||
describe('resolveAuthConfig', () => {
|
||||
it('returns both URLs and sales email from env', () => {
|
||||
const cfg = resolveAuthConfig({
|
||||
PUBLIC_AUTH_SIGNIN_URL: 'https://auth.cameleer.io/sign-in',
|
||||
PUBLIC_AUTH_SIGNUP_URL: 'https://auth.cameleer.io/sign-in?first_screen=register',
|
||||
PUBLIC_AUTH_SIGNIN_URL: 'https://app.cameleer.io/sign-in',
|
||||
PUBLIC_AUTH_SIGNUP_URL: 'https://app.cameleer.io/sign-in?first_screen=register',
|
||||
PUBLIC_SALES_EMAIL: 'sales@cameleer.io',
|
||||
});
|
||||
expect(cfg.signInUrl).toBe('https://auth.cameleer.io/sign-in');
|
||||
expect(cfg.signUpUrl).toBe('https://auth.cameleer.io/sign-in?first_screen=register');
|
||||
expect(cfg.signInUrl).toBe('https://app.cameleer.io/sign-in');
|
||||
expect(cfg.signUpUrl).toBe('https://app.cameleer.io/sign-in?first_screen=register');
|
||||
expect(cfg.salesEmail).toBe('sales@cameleer.io');
|
||||
});
|
||||
|
||||
it('throws if PUBLIC_AUTH_SIGNIN_URL is missing', () => {
|
||||
expect(() => resolveAuthConfig({
|
||||
PUBLIC_AUTH_SIGNUP_URL: 'https://auth.cameleer.io/sign-in?first_screen=register',
|
||||
PUBLIC_AUTH_SIGNUP_URL: 'https://app.cameleer.io/sign-in?first_screen=register',
|
||||
PUBLIC_SALES_EMAIL: 'sales@cameleer.io',
|
||||
})).toThrow(/PUBLIC_AUTH_SIGNIN_URL/);
|
||||
});
|
||||
|
||||
it('throws if a URL is not https', () => {
|
||||
expect(() => resolveAuthConfig({
|
||||
PUBLIC_AUTH_SIGNIN_URL: 'http://auth.cameleer.io/sign-in',
|
||||
PUBLIC_AUTH_SIGNUP_URL: 'https://auth.cameleer.io/sign-in?first_screen=register',
|
||||
PUBLIC_AUTH_SIGNIN_URL: 'http://app.cameleer.io/sign-in',
|
||||
PUBLIC_AUTH_SIGNUP_URL: 'https://app.cameleer.io/sign-in?first_screen=register',
|
||||
PUBLIC_SALES_EMAIL: 'sales@cameleer.io',
|
||||
})).toThrow(/must be https/);
|
||||
});
|
||||
|
||||
it('throws if sales email is not a valid mailto target', () => {
|
||||
expect(() => resolveAuthConfig({
|
||||
PUBLIC_AUTH_SIGNIN_URL: 'https://auth.cameleer.io/sign-in',
|
||||
PUBLIC_AUTH_SIGNUP_URL: 'https://auth.cameleer.io/sign-in?first_screen=register',
|
||||
PUBLIC_AUTH_SIGNIN_URL: 'https://app.cameleer.io/sign-in',
|
||||
PUBLIC_AUTH_SIGNUP_URL: 'https://app.cameleer.io/sign-in?first_screen=register',
|
||||
PUBLIC_SALES_EMAIL: 'not-an-email',
|
||||
})).toThrow(/PUBLIC_SALES_EMAIL/);
|
||||
});
|
||||
|
||||
it('throws if PUBLIC_AUTH_SIGNUP_URL is missing', () => {
|
||||
expect(() => resolveAuthConfig({
|
||||
PUBLIC_AUTH_SIGNIN_URL: 'https://auth.cameleer.io/sign-in',
|
||||
PUBLIC_AUTH_SIGNIN_URL: 'https://app.cameleer.io/sign-in',
|
||||
PUBLIC_SALES_EMAIL: 'sales@cameleer.io',
|
||||
})).toThrow(/PUBLIC_AUTH_SIGNUP_URL/);
|
||||
});
|
||||
|
||||
it('throws if PUBLIC_AUTH_SIGNUP_URL is not https', () => {
|
||||
expect(() => resolveAuthConfig({
|
||||
PUBLIC_AUTH_SIGNIN_URL: 'https://auth.cameleer.io/sign-in',
|
||||
PUBLIC_AUTH_SIGNUP_URL: 'http://auth.cameleer.io/sign-in?first_screen=register',
|
||||
PUBLIC_AUTH_SIGNIN_URL: 'https://app.cameleer.io/sign-in',
|
||||
PUBLIC_AUTH_SIGNUP_URL: 'http://app.cameleer.io/sign-in?first_screen=register',
|
||||
PUBLIC_SALES_EMAIL: 'sales@cameleer.io',
|
||||
})).toThrow(/must be https/);
|
||||
});
|
||||
|
||||
it('exposes signUpUrl distinct from signInUrl', () => {
|
||||
const cfg = resolveAuthConfig({
|
||||
PUBLIC_AUTH_SIGNIN_URL: 'https://auth.cameleer.io/sign-in',
|
||||
PUBLIC_AUTH_SIGNUP_URL: 'https://auth.cameleer.io/sign-in?first_screen=register',
|
||||
PUBLIC_AUTH_SIGNIN_URL: 'https://app.cameleer.io/sign-in',
|
||||
PUBLIC_AUTH_SIGNUP_URL: 'https://app.cameleer.io/sign-in?first_screen=register',
|
||||
PUBLIC_SALES_EMAIL: 'sales@cameleer.io',
|
||||
});
|
||||
expect(cfg.signUpUrl).not.toBe(cfg.signInUrl);
|
||||
|
||||
@@ -47,6 +47,8 @@ const ogUrl = new URL(ogImage, Astro.site ?? 'https://www.cameleer.io').toString
|
||||
<meta name="twitter:image" content={ogUrl} />
|
||||
|
||||
<meta name="robots" content="index,follow" />
|
||||
|
||||
<slot name="head" />
|
||||
</head>
|
||||
<body class="min-h-screen bg-bg text-text font-sans antialiased">
|
||||
<slot />
|
||||
|
||||
@@ -20,7 +20,7 @@ export function buildSecurityHeaders(): Record<string, string> {
|
||||
"connect-src 'self'",
|
||||
"frame-ancestors 'none'",
|
||||
"base-uri 'self'",
|
||||
// No forms on this marketing site today (all auth redirects go to auth.cameleer.io
|
||||
// No forms on this marketing site today (all auth redirects go to app.cameleer.io
|
||||
// as plain <a> navigations). If a future form is added, relax to 'self' or an allow-list.
|
||||
"form-action 'none'",
|
||||
"object-src 'none'",
|
||||
|
||||
@@ -14,6 +14,17 @@ import FinalCTA from '../components/sections/FinalCTA.astro';
|
||||
title="Cameleer — Ship Camel integrations. Sleep through the night."
|
||||
description="The hosted runtime and observability platform for Apache Camel. Auto-traced, replay-ready, cross-service correlated — so the 3 AM page becomes a 30-second answer."
|
||||
>
|
||||
<Fragment slot="head">
|
||||
<link
|
||||
rel="preload"
|
||||
as="image"
|
||||
type="image/webp"
|
||||
href="/product/exchange-detail-1280.webp"
|
||||
imagesrcset="/product/exchange-detail-1280.webp 1280w, /product/exchange-detail-1920.webp 1920w"
|
||||
imagesizes="(min-width: 1024px) 56vw, 100vw"
|
||||
fetchpriority="high"
|
||||
/>
|
||||
</Fragment>
|
||||
<SiteHeader />
|
||||
<main>
|
||||
<Hero />
|
||||
|
||||
@@ -67,7 +67,7 @@ const lastUpdated = '2026-04-24';
|
||||
<section class="mb-10">
|
||||
<h2 class="text-lg font-bold text-text mb-3">6. External links</h2>
|
||||
<p class="text-text-muted leading-relaxed">
|
||||
Sign-in and sign-up links on this site navigate you to <span class="font-mono text-accent">auth.cameleer.io</span> (Logto identity service) and subsequently <span class="font-mono text-accent">platform.cameleer.io</span>. Those services have their own privacy policies, which apply from the moment you arrive there.
|
||||
Sign-in and sign-up links on this site navigate you to <span class="font-mono text-accent">app.cameleer.io</span> (the Cameleer app, where authentication is handled by Logto). That service has its own privacy policy, which applies from the moment you arrive there.
|
||||
</p>
|
||||
</section>
|
||||
|
||||
|
||||
72
src/placeholder.test.ts
Normal file
72
src/placeholder.test.ts
Normal file
@@ -0,0 +1,72 @@
|
||||
import { describe, it, expect } from 'vitest';
|
||||
import { existsSync, readFileSync } from 'node:fs';
|
||||
import { join } from 'node:path';
|
||||
|
||||
const placeholderDir = join(process.cwd(), 'placeholder');
|
||||
const indexPath = join(placeholderDir, 'index.html');
|
||||
|
||||
describe('placeholder/index.html', () => {
|
||||
const html = readFileSync(indexPath, 'utf8');
|
||||
|
||||
it('starts with the HTML5 doctype', () => {
|
||||
expect(html.toLowerCase().trimStart()).toMatch(/^<!doctype html>/);
|
||||
});
|
||||
|
||||
it('has the back-shortly title', () => {
|
||||
expect(html).toContain('<title>Cameleer — Back shortly</title>');
|
||||
});
|
||||
|
||||
it('is not indexable by search engines', () => {
|
||||
expect(html).toContain('<meta name="robots" content="noindex">');
|
||||
});
|
||||
|
||||
it('declares the dark color-scheme matching the live site', () => {
|
||||
expect(html).toContain('<meta name="color-scheme" content="dark">');
|
||||
expect(html).toContain('<meta name="theme-color" content="#060a13">');
|
||||
});
|
||||
|
||||
it('contains the sentinel string the deploy workflow greps for', () => {
|
||||
// The workflow's post-deploy smoke test fails if this string is missing.
|
||||
expect(html).toContain('Routes are remapping');
|
||||
});
|
||||
|
||||
it('uses the live hero subhead verbatim', () => {
|
||||
expect(html).toContain(
|
||||
'Cameleer is the hosted runtime and observability platform for Apache Camel — auto-traced, replay-ready, cross-service correlated. The 3 AM page becomes a 30-second answer.'
|
||||
);
|
||||
});
|
||||
|
||||
it('contains __SALES_EMAIL__ tokens at both the mailto href and the link text', () => {
|
||||
const matches = html.match(/__SALES_EMAIL__/g) ?? [];
|
||||
expect(matches.length).toBeGreaterThanOrEqual(2);
|
||||
});
|
||||
|
||||
it('contains no other __TOKEN__ style placeholders', () => {
|
||||
// Guard against a forgotten token that would survive the sed substitution.
|
||||
const allTokens = html.match(/__[A-Z][A-Z0-9_]+__/g) ?? [];
|
||||
const nonSales = allTokens.filter((t) => t !== '__SALES_EMAIL__');
|
||||
expect(nonSales).toEqual([]);
|
||||
});
|
||||
|
||||
it('references the sibling cameleer-logo.png by relative path', () => {
|
||||
expect(html).toContain('src="./cameleer-logo.png"');
|
||||
});
|
||||
|
||||
it('references the sibling favicon.png by relative path', () => {
|
||||
expect(html).toContain('href="./favicon.png"');
|
||||
});
|
||||
|
||||
it('has no <script> tags (placeholder must work without JS)', () => {
|
||||
expect(html).not.toMatch(/<script[\s>]/i);
|
||||
});
|
||||
});
|
||||
|
||||
describe('placeholder/ asset siblings', () => {
|
||||
it('cameleer-logo.png exists on disk', () => {
|
||||
expect(existsSync(join(placeholderDir, 'cameleer-logo.png'))).toBe(true);
|
||||
});
|
||||
|
||||
it('favicon.png exists on disk', () => {
|
||||
expect(existsSync(join(placeholderDir, 'favicon.png'))).toBe(true);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user