← back to Robet Site
initial scaffold: brutalist site + Smart Scheduling embed + API-key admin
37f01e124d3670ef8b1db4427e37349560c1c506 · 2026-06-29 14:56:17 -0700 · Steve
Files touched
A .env.exampleA .gitignoreA config.jsonA package-lock.jsonA package.jsonA public/admin.htmlA public/app.jsA public/hero.svgA public/index.htmlA public/styles.cssA server.js
Diff
commit 37f01e124d3670ef8b1db4427e37349560c1c506
Author: Steve <steve@designerwallcoverings.com>
Date: Mon Jun 29 14:56:17 2026 -0700
initial scaffold: brutalist site + Smart Scheduling embed + API-key admin
---
.env.example | 12 +
.gitignore | 10 +
config.json | 19 ++
package-lock.json | 828 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
package.json | 13 +
public/admin.html | 73 +++++
public/app.js | 69 +++++
public/hero.svg | 38 +++
public/index.html | 92 ++++++
public/styles.css | 126 +++++++++
server.js | 97 +++++++
11 files changed, 1377 insertions(+)
diff --git a/.env.example b/.env.example
new file mode 100644
index 0000000..f36c7aa
--- /dev/null
+++ b/.env.example
@@ -0,0 +1,12 @@
+# robet-site environment
+# Admin page (POST /api/keys) writes user-entered API keys into data/keys.json (gitignored).
+# These are the canonical knobs; copy to .env to override.
+
+PORT=9788
+
+# Basic-auth for the /admin API-key entry page
+ADMIN_USER=admin
+ADMIN_PASS=changeme
+
+# Optional: where the contact form forwards (left blank = stored locally only)
+CONTACT_FORWARD_EMAIL=
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..4114a93
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,10 @@
+node_modules/
+.env*
+!.env.example
+tmp/
+*.log
+.DS_Store
+dist/
+build/
+.next/
+data/keys.json
diff --git a/config.json b/config.json
new file mode 100644
index 0000000..92958f1
--- /dev/null
+++ b/config.json
@@ -0,0 +1,19 @@
+{
+ "brand": "ROBET",
+ "tagline": "BUILT BOLD. BOOKED FAST.",
+ "heroHeadline": "WE DON'T DECORATE.\nWE CONSTRUCT.",
+ "heroSub": "A studio with no soft edges. Book a slot, state your need, get an answer.",
+ "heroImage": "/hero.svg",
+ "contact": {
+ "email": "info@designerwallcoverings.com",
+ "phone": "",
+ "address": "",
+ "hours": "By appointment — see Smart Scheduling below"
+ },
+ "scheduling": {
+ "owner": "info@designerwallcoverings.com",
+ "embedLoader": "https://venturacorridor.com/embed/appointments.js",
+ "bookUrl": "https://venturacorridor.com/book?owner=info@designerwallcoverings.com"
+ },
+ "social": []
+}
diff --git a/package-lock.json b/package-lock.json
new file mode 100644
index 0000000..a0a0905
--- /dev/null
+++ b/package-lock.json
@@ -0,0 +1,828 @@
+{
+ "name": "robet-site",
+ "version": "0.1.0",
+ "lockfileVersion": 3,
+ "requires": true,
+ "packages": {
+ "": {
+ "name": "robet-site",
+ "version": "0.1.0",
+ "dependencies": {
+ "express": "^4.19.2"
+ }
+ },
+ "node_modules/accepts": {
+ "version": "1.3.8",
+ "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz",
+ "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==",
+ "license": "MIT",
+ "dependencies": {
+ "mime-types": "~2.1.34",
+ "negotiator": "0.6.3"
+ },
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/array-flatten": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz",
+ "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==",
+ "license": "MIT"
+ },
+ "node_modules/body-parser": {
+ "version": "1.20.5",
+ "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.5.tgz",
+ "integrity": "sha512-3grm+/2tUOvu2cjJkvsIxrv/wVpfXQW4PsQHYm7yk4vfpu7Ekl6nEsYBoJUL6qDwZUx8wUhQ8tR2qz+ad9c9OA==",
+ "license": "MIT",
+ "dependencies": {
+ "bytes": "~3.1.2",
+ "content-type": "~1.0.5",
+ "debug": "2.6.9",
+ "depd": "2.0.0",
+ "destroy": "~1.2.0",
+ "http-errors": "~2.0.1",
+ "iconv-lite": "~0.4.24",
+ "on-finished": "~2.4.1",
+ "qs": "~6.15.1",
+ "raw-body": "~2.5.3",
+ "type-is": "~1.6.18",
+ "unpipe": "~1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.8",
+ "npm": "1.2.8000 || >= 1.4.16"
+ }
+ },
+ "node_modules/bytes": {
+ "version": "3.1.2",
+ "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz",
+ "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/call-bind-apply-helpers": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz",
+ "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==",
+ "license": "MIT",
+ "dependencies": {
+ "es-errors": "^1.3.0",
+ "function-bind": "^1.1.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/call-bound": {
+ "version": "1.0.4",
+ "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz",
+ "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==",
+ "license": "MIT",
+ "dependencies": {
+ "call-bind-apply-helpers": "^1.0.2",
+ "get-intrinsic": "^1.3.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/content-disposition": {
+ "version": "0.5.4",
+ "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz",
+ "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==",
+ "license": "MIT",
+ "dependencies": {
+ "safe-buffer": "5.2.1"
+ },
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/content-type": {
+ "version": "1.0.5",
+ "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz",
+ "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/cookie": {
+ "version": "0.7.2",
+ "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.2.tgz",
+ "integrity": "sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/cookie-signature": {
+ "version": "1.0.7",
+ "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.7.tgz",
+ "integrity": "sha512-NXdYc3dLr47pBkpUCHtKSwIOQXLVn8dZEuywboCOJY/osA0wFSLlSawr3KN8qXJEyX66FcONTH8EIlVuK0yyFA==",
+ "license": "MIT"
+ },
+ "node_modules/debug": {
+ "version": "2.6.9",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
+ "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
+ "license": "MIT",
+ "dependencies": {
+ "ms": "2.0.0"
+ }
+ },
+ "node_modules/depd": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz",
+ "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/destroy": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz",
+ "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8",
+ "npm": "1.2.8000 || >= 1.4.16"
+ }
+ },
+ "node_modules/dunder-proto": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz",
+ "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==",
+ "license": "MIT",
+ "dependencies": {
+ "call-bind-apply-helpers": "^1.0.1",
+ "es-errors": "^1.3.0",
+ "gopd": "^1.2.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/ee-first": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",
+ "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==",
+ "license": "MIT"
+ },
+ "node_modules/encodeurl": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz",
+ "integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/es-define-property": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz",
+ "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/es-errors": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz",
+ "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/es-object-atoms": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.2.tgz",
+ "integrity": "sha512-HWcBoN6NileqtSydK2FqHbS/LoDd2pqrnQHLyJzBj4kOp/ky2MWMN694xOfkK8/SnUsW2DH7EfyVlydKCsm1Zw==",
+ "license": "MIT",
+ "dependencies": {
+ "es-errors": "^1.3.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/escape-html": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz",
+ "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==",
+ "license": "MIT"
+ },
+ "node_modules/etag": {
+ "version": "1.8.1",
+ "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz",
+ "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/express": {
+ "version": "4.22.2",
+ "resolved": "https://registry.npmjs.org/express/-/express-4.22.2.tgz",
+ "integrity": "sha512-IuL+Elrou2ZvCFHs18/CIzy2Nzvo25nZ1/D2eIZlz7c+QUayAcYoiM2BthCjs+EBHVpjYjcuLDAiCWgeIX3X1Q==",
+ "license": "MIT",
+ "dependencies": {
+ "accepts": "~1.3.8",
+ "array-flatten": "1.1.1",
+ "body-parser": "~1.20.5",
+ "content-disposition": "~0.5.4",
+ "content-type": "~1.0.4",
+ "cookie": "~0.7.1",
+ "cookie-signature": "~1.0.6",
+ "debug": "2.6.9",
+ "depd": "2.0.0",
+ "encodeurl": "~2.0.0",
+ "escape-html": "~1.0.3",
+ "etag": "~1.8.1",
+ "finalhandler": "~1.3.1",
+ "fresh": "~0.5.2",
+ "http-errors": "~2.0.0",
+ "merge-descriptors": "1.0.3",
+ "methods": "~1.1.2",
+ "on-finished": "~2.4.1",
+ "parseurl": "~1.3.3",
+ "path-to-regexp": "~0.1.12",
+ "proxy-addr": "~2.0.7",
+ "qs": "~6.15.1",
+ "range-parser": "~1.2.1",
+ "safe-buffer": "5.2.1",
+ "send": "~0.19.0",
+ "serve-static": "~1.16.2",
+ "setprototypeof": "1.2.0",
+ "statuses": "~2.0.1",
+ "type-is": "~1.6.18",
+ "utils-merge": "1.0.1",
+ "vary": "~1.1.2"
+ },
+ "engines": {
+ "node": ">= 0.10.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/express"
+ }
+ },
+ "node_modules/finalhandler": {
+ "version": "1.3.2",
+ "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.3.2.tgz",
+ "integrity": "sha512-aA4RyPcd3badbdABGDuTXCMTtOneUCAYH/gxoYRTZlIJdF0YPWuGqiAsIrhNnnqdXGswYk6dGujem4w80UJFhg==",
+ "license": "MIT",
+ "dependencies": {
+ "debug": "2.6.9",
+ "encodeurl": "~2.0.0",
+ "escape-html": "~1.0.3",
+ "on-finished": "~2.4.1",
+ "parseurl": "~1.3.3",
+ "statuses": "~2.0.2",
+ "unpipe": "~1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/forwarded": {
+ "version": "0.2.0",
+ "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz",
+ "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/fresh": {
+ "version": "0.5.2",
+ "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz",
+ "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/function-bind": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
+ "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",
+ "license": "MIT",
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/get-intrinsic": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz",
+ "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==",
+ "license": "MIT",
+ "dependencies": {
+ "call-bind-apply-helpers": "^1.0.2",
+ "es-define-property": "^1.0.1",
+ "es-errors": "^1.3.0",
+ "es-object-atoms": "^1.1.1",
+ "function-bind": "^1.1.2",
+ "get-proto": "^1.0.1",
+ "gopd": "^1.2.0",
+ "has-symbols": "^1.1.0",
+ "hasown": "^2.0.2",
+ "math-intrinsics": "^1.1.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/get-proto": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz",
+ "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==",
+ "license": "MIT",
+ "dependencies": {
+ "dunder-proto": "^1.0.1",
+ "es-object-atoms": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/gopd": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz",
+ "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/has-symbols": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz",
+ "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/hasown": {
+ "version": "2.0.4",
+ "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.4.tgz",
+ "integrity": "sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A==",
+ "license": "MIT",
+ "dependencies": {
+ "function-bind": "^1.1.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/http-errors": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.1.tgz",
+ "integrity": "sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==",
+ "license": "MIT",
+ "dependencies": {
+ "depd": "~2.0.0",
+ "inherits": "~2.0.4",
+ "setprototypeof": "~1.2.0",
+ "statuses": "~2.0.2",
+ "toidentifier": "~1.0.1"
+ },
+ "engines": {
+ "node": ">= 0.8"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/express"
+ }
+ },
+ "node_modules/iconv-lite": {
+ "version": "0.4.24",
+ "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
+ "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==",
+ "license": "MIT",
+ "dependencies": {
+ "safer-buffer": ">= 2.1.2 < 3"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/inherits": {
+ "version": "2.0.4",
+ "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
+ "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
+ "license": "ISC"
+ },
+ "node_modules/ipaddr.js": {
+ "version": "1.9.1",
+ "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz",
+ "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/math-intrinsics": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz",
+ "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/media-typer": {
+ "version": "0.3.0",
+ "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz",
+ "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/merge-descriptors": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.3.tgz",
+ "integrity": "sha512-gaNvAS7TZ897/rVaZ0nMtAyxNyi/pdbjbAwUpFQpN70GqnVfOiXpeUUMKRBmzXaSQ8DdTX4/0ms62r2K+hE6mQ==",
+ "license": "MIT",
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/methods": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz",
+ "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/mime": {
+ "version": "1.6.0",
+ "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz",
+ "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==",
+ "license": "MIT",
+ "bin": {
+ "mime": "cli.js"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/mime-db": {
+ "version": "1.52.0",
+ "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",
+ "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/mime-types": {
+ "version": "2.1.35",
+ "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",
+ "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
+ "license": "MIT",
+ "dependencies": {
+ "mime-db": "1.52.0"
+ },
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/ms": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
+ "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==",
+ "license": "MIT"
+ },
+ "node_modules/negotiator": {
+ "version": "0.6.3",
+ "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz",
+ "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/object-inspect": {
+ "version": "1.13.4",
+ "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz",
+ "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/on-finished": {
+ "version": "2.4.1",
+ "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz",
+ "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==",
+ "license": "MIT",
+ "dependencies": {
+ "ee-first": "1.1.1"
+ },
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/parseurl": {
+ "version": "1.3.3",
+ "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz",
+ "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/path-to-regexp": {
+ "version": "0.1.13",
+ "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.13.tgz",
+ "integrity": "sha512-A/AGNMFN3c8bOlvV9RreMdrv7jsmF9XIfDeCd87+I8RNg6s78BhJxMu69NEMHBSJFxKidViTEdruRwEk/WIKqA==",
+ "license": "MIT"
+ },
+ "node_modules/proxy-addr": {
+ "version": "2.0.7",
+ "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz",
+ "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==",
+ "license": "MIT",
+ "dependencies": {
+ "forwarded": "0.2.0",
+ "ipaddr.js": "1.9.1"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/qs": {
+ "version": "6.15.3",
+ "resolved": "https://registry.npmjs.org/qs/-/qs-6.15.3.tgz",
+ "integrity": "sha512-O9gl3zCl5h5blw1KGUzQKhA5oUXSl8rwUIM5o0S3nCXMliSvy5Dzx7/DJcI+SwgICv+IneSZwhBh1oSyEHA71A==",
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "es-define-property": "^1.0.1",
+ "side-channel": "^1.1.1"
+ },
+ "engines": {
+ "node": ">=0.6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/range-parser": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz",
+ "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/raw-body": {
+ "version": "2.5.3",
+ "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.3.tgz",
+ "integrity": "sha512-s4VSOf6yN0rvbRZGxs8Om5CWj6seneMwK3oDb4lWDH0UPhWcxwOWw5+qk24bxq87szX1ydrwylIOp2uG1ojUpA==",
+ "license": "MIT",
+ "dependencies": {
+ "bytes": "~3.1.2",
+ "http-errors": "~2.0.1",
+ "iconv-lite": "~0.4.24",
+ "unpipe": "~1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/safe-buffer": {
+ "version": "5.2.1",
+ "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
+ "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/feross"
+ },
+ {
+ "type": "patreon",
+ "url": "https://www.patreon.com/feross"
+ },
+ {
+ "type": "consulting",
+ "url": "https://feross.org/support"
+ }
+ ],
+ "license": "MIT"
+ },
+ "node_modules/safer-buffer": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
+ "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==",
+ "license": "MIT"
+ },
+ "node_modules/send": {
+ "version": "0.19.2",
+ "resolved": "https://registry.npmjs.org/send/-/send-0.19.2.tgz",
+ "integrity": "sha512-VMbMxbDeehAxpOtWJXlcUS5E8iXh6QmN+BkRX1GARS3wRaXEEgzCcB10gTQazO42tpNIya8xIyNx8fll1OFPrg==",
+ "license": "MIT",
+ "dependencies": {
+ "debug": "2.6.9",
+ "depd": "2.0.0",
+ "destroy": "1.2.0",
+ "encodeurl": "~2.0.0",
+ "escape-html": "~1.0.3",
+ "etag": "~1.8.1",
+ "fresh": "~0.5.2",
+ "http-errors": "~2.0.1",
+ "mime": "1.6.0",
+ "ms": "2.1.3",
+ "on-finished": "~2.4.1",
+ "range-parser": "~1.2.1",
+ "statuses": "~2.0.2"
+ },
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/send/node_modules/ms": {
+ "version": "2.1.3",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
+ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
+ "license": "MIT"
+ },
+ "node_modules/serve-static": {
+ "version": "1.16.3",
+ "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.16.3.tgz",
+ "integrity": "sha512-x0RTqQel6g5SY7Lg6ZreMmsOzncHFU7nhnRWkKgWuMTu5NN0DR5oruckMqRvacAN9d5w6ARnRBXl9xhDCgfMeA==",
+ "license": "MIT",
+ "dependencies": {
+ "encodeurl": "~2.0.0",
+ "escape-html": "~1.0.3",
+ "parseurl": "~1.3.3",
+ "send": "~0.19.1"
+ },
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/setprototypeof": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz",
+ "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==",
+ "license": "ISC"
+ },
+ "node_modules/side-channel": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.1.tgz",
+ "integrity": "sha512-6x6dK6zJdpTzF4sQeNYxwtvBzf6Eg4GtlesS94HOvTudUeyK2WXAaIfmDgsyslYrRBeFIlsi54AYsFGUuhmvrQ==",
+ "license": "MIT",
+ "dependencies": {
+ "es-errors": "^1.3.0",
+ "object-inspect": "^1.13.4",
+ "side-channel-list": "^1.0.1",
+ "side-channel-map": "^1.0.1",
+ "side-channel-weakmap": "^1.0.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/side-channel-list": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.1.tgz",
+ "integrity": "sha512-mjn/0bi/oUURjc5Xl7IaWi/OJJJumuoJFQJfDDyO46+hBWsfaVM65TBHq2eoZBhzl9EchxOijpkbRC8SVBQU0w==",
+ "license": "MIT",
+ "dependencies": {
+ "es-errors": "^1.3.0",
+ "object-inspect": "^1.13.4"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/side-channel-map": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz",
+ "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==",
+ "license": "MIT",
+ "dependencies": {
+ "call-bound": "^1.0.2",
+ "es-errors": "^1.3.0",
+ "get-intrinsic": "^1.2.5",
+ "object-inspect": "^1.13.3"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/side-channel-weakmap": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz",
+ "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==",
+ "license": "MIT",
+ "dependencies": {
+ "call-bound": "^1.0.2",
+ "es-errors": "^1.3.0",
+ "get-intrinsic": "^1.2.5",
+ "object-inspect": "^1.13.3",
+ "side-channel-map": "^1.0.1"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/statuses": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.2.tgz",
+ "integrity": "sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/toidentifier": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz",
+ "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.6"
+ }
+ },
+ "node_modules/type-is": {
+ "version": "1.6.18",
+ "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz",
+ "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==",
+ "license": "MIT",
+ "dependencies": {
+ "media-typer": "0.3.0",
+ "mime-types": "~2.1.24"
+ },
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/unpipe": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz",
+ "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/utils-merge": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz",
+ "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4.0"
+ }
+ },
+ "node_modules/vary": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz",
+ "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ }
+ }
+}
diff --git a/package.json b/package.json
new file mode 100644
index 0000000..542ace3
--- /dev/null
+++ b/package.json
@@ -0,0 +1,13 @@
+{
+ "name": "robet-site",
+ "version": "0.1.0",
+ "private": true,
+ "description": "Brutalist marketing site with Smart Scheduling booking + API-key admin",
+ "main": "server.js",
+ "scripts": {
+ "start": "node server.js"
+ },
+ "dependencies": {
+ "express": "^4.19.2"
+ }
+}
diff --git a/public/admin.html b/public/admin.html
new file mode 100644
index 0000000..e207abe
--- /dev/null
+++ b/public/admin.html
@@ -0,0 +1,73 @@
+<!doctype html>
+<html lang="en">
+<head>
+ <meta charset="utf-8" />
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
+ <title>ROBET · Admin — API Keys</title>
+ <link rel="stylesheet" href="/styles.css" />
+</head>
+<body>
+ <header class="topbar">
+ <a class="logo" href="/">ROBET</a>
+ <span class="mono" style="text-transform:uppercase">Admin · API Keys</span>
+ </header>
+
+ <div class="admin-shell">
+ <span class="kicker">/ credentials</span>
+ <h1 class="sec-h" style="font-size:clamp(30px,6vw,56px)">Enter API keys.</h1>
+ <p class="mono" style="font-weight:600;margin-bottom:24px">
+ Stored server-side in <code>data/keys.json</code> (gitignored). Values are never shown back —
+ only a <code>…last4</code> mask. This page is basic-auth gated.
+ </p>
+
+ <!-- add / update -->
+ <div class="keyrow" style="grid-template-columns:1fr 1fr auto">
+ <input id="kName" placeholder="KEY NAME (e.g. OPENAI_API_KEY)" />
+ <input id="kVal" placeholder="value" type="password" />
+ <button class="btn" id="saveBtn">Save</button>
+ </div>
+ <div class="formmsg" id="msg" style="margin:12px 0 28px"></div>
+
+ <!-- stored keys -->
+ <div class="keytable" id="table"></div>
+ </div>
+
+ <script>
+ const $ = (s) => document.querySelector(s);
+ const api = (p, opt) => fetch(p, opt).then((r) => r.json());
+
+ async function load() {
+ const rows = await api('/api/keys');
+ const t = $('#table');
+ if (!rows.length) { t.innerHTML = '<p class="mono" style="font-weight:600">No keys stored yet.</p>'; return; }
+ t.innerHTML =
+ '<div class="keyrow head"><div>Name</div><div>Value</div><div>Action</div></div>' +
+ rows.map((r) =>
+ `<div class="keyrow">
+ <div class="mono">${r.name}</div>
+ <div class="mono">${r.masked}</div>
+ <div><button class="btn warn" data-del="${r.name}">Delete</button></div>
+ </div>`).join('');
+ t.querySelectorAll('[data-del]').forEach((b) =>
+ b.addEventListener('click', async () => {
+ await api('/api/keys/' + encodeURIComponent(b.dataset.del), { method: 'DELETE' });
+ load();
+ }));
+ }
+
+ $('#saveBtn').addEventListener('click', async () => {
+ const name = $('#kName').value.trim(), value = $('#kVal').value;
+ const msg = $('#msg');
+ if (!name || !value) { msg.textContent = '✗ name and value required'; return; }
+ const j = await api('/api/keys', {
+ method: 'POST', headers: { 'Content-Type': 'application/json' },
+ body: JSON.stringify({ name, value }),
+ });
+ msg.textContent = j.ok ? `✓ Saved ${j.name} (${j.masked})` : '✗ ' + (j.error || 'Failed');
+ if (j.ok) { $('#kName').value = ''; $('#kVal').value = ''; load(); }
+ });
+
+ load();
+ </script>
+</body>
+</html>
diff --git a/public/app.js b/public/app.js
new file mode 100644
index 0000000..ea35ff2
--- /dev/null
+++ b/public/app.js
@@ -0,0 +1,69 @@
+// ROBET front-end: hydrate config, hamburger, Smart Scheduling embed, contact form.
+(async function () {
+ const $ = (s) => document.querySelector(s);
+ let cfg = {};
+ try { cfg = await (await fetch('/api/config')).json(); } catch (_) {}
+
+ // ── brand + hero from config ──
+ if (cfg.brand) {
+ $('#logo').textContent = cfg.brand;
+ $('#footBrand').textContent = cfg.brand;
+ document.title = cfg.brand;
+ }
+ if (cfg.heroHeadline) $('#heroHeadline').textContent = cfg.heroHeadline;
+ if (cfg.heroSub) $('#heroSub').textContent = cfg.heroSub;
+ const heroUrl = (cfg.heroImage || '/hero.jpg');
+ $('#heroImg').style.backgroundImage = `url("${heroUrl}")`;
+ $('#year').textContent = new Date().getFullYear();
+
+ // ── contact info ──
+ const c = cfg.contact || {};
+ const info = $('#contactInfo');
+ const row = (label, val) => val ? `<dt>${label}</dt><dd>${val}</dd>` : '';
+ info.innerHTML =
+ row('Email', c.email ? `<a href="mailto:${c.email}">${c.email}</a>` : '') +
+ row('Phone', c.phone ? `<a href="tel:${c.phone}">${c.phone}</a>` : '') +
+ row('Address', c.address) +
+ row('Hours', c.hours);
+
+ // ── hamburger ──
+ const panel = $('#navpanel'), burger = $('#hamburger');
+ const open = (v) => { panel.classList.toggle('open', v); burger.setAttribute('aria-expanded', v); };
+ burger.addEventListener('click', () => open(true));
+ $('#navclose').addEventListener('click', () => open(false));
+ panel.querySelectorAll('a').forEach((a) => a.addEventListener('click', () => open(false)));
+ document.addEventListener('keydown', (e) => { if (e.key === 'Escape') open(false); });
+
+ // ── Smart Scheduling embed ──
+ const sched = cfg.scheduling || {};
+ const bookLink = $('#bookLink');
+ if (bookLink && sched.bookUrl) bookLink.href = sched.bookUrl;
+ if (sched.embedLoader) {
+ // The venturacorridor embed loader injects the booking widget where invoked.
+ const s = document.createElement('script');
+ s.src = sched.embedLoader;
+ if (sched.owner) s.setAttribute('data-owner', sched.owner);
+ s.async = true;
+ s.onerror = () => {
+ $('#bookFallback') && ($('#bookFallback').innerHTML =
+ `Booking widget unavailable right now — <a class="cta" href="${sched.bookUrl || '#'}" target="_blank" rel="noopener noreferrer">Open booking page →</a>`);
+ };
+ $('#embedBox').appendChild(s);
+ }
+
+ // ── contact form ──
+ $('#contactForm').addEventListener('submit', async (e) => {
+ e.preventDefault();
+ const msg = $('#formMsg');
+ const body = { name: $('#cName').value, email: $('#cEmail').value, message: $('#cMsg').value };
+ msg.textContent = 'Sending…';
+ try {
+ const r = await fetch('/api/contact', {
+ method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(body),
+ });
+ const j = await r.json();
+ msg.textContent = j.ok ? '✓ Received. We will reach out.' : '✗ ' + (j.error || 'Failed');
+ if (j.ok) e.target.reset();
+ } catch (_) { msg.textContent = '✗ Network error'; }
+ });
+})();
diff --git a/public/hero.svg b/public/hero.svg
new file mode 100644
index 0000000..b4176a1
--- /dev/null
+++ b/public/hero.svg
@@ -0,0 +1,38 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1600 1000" preserveAspectRatio="xMidYMid slice" role="img" aria-label="Brutalist concrete structure">
+ <defs>
+ <linearGradient id="conc" x1="0" y1="0" x2="0" y2="1">
+ <stop offset="0" stop-color="#3a3a38"/>
+ <stop offset="1" stop-color="#15140f"/>
+ </linearGradient>
+ <pattern id="dots" width="22" height="22" patternUnits="userSpaceOnUse">
+ <circle cx="3" cy="3" r="2.4" fill="#f5f500" fill-opacity="0.18"/>
+ </pattern>
+ <filter id="grain"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="2" stitchTiles="stitch"/>
+ <feColorMatrix type="saturate" values="0"/><feComponentTransfer><feFuncA type="linear" slope="0.06"/></feComponentTransfer>
+ <feComposite operator="over" in2="SourceGraphic"/></filter>
+ </defs>
+
+ <rect width="1600" height="1000" fill="url(#conc)"/>
+ <rect width="1600" height="1000" fill="url(#dots)"/>
+
+ <!-- structural slabs -->
+ <g stroke="#0a0a0a" stroke-width="6">
+ <rect x="120" y="140" width="430" height="720" fill="#4a4945"/>
+ <rect x="120" y="140" width="430" height="120" fill="#f5f500"/>
+ <rect x="600" y="320" width="300" height="540" fill="#2b2a26"/>
+ <rect x="950" y="80" width="520" height="500" fill="#56544e"/>
+ <rect x="950" y="600" width="520" height="320" fill="#ff2e1f"/>
+ </g>
+
+ <!-- girders -->
+ <g stroke="#0a0a0a" stroke-width="10" stroke-linecap="square">
+ <line x1="0" y1="900" x2="1600" y2="900"/>
+ <line x1="335" y1="140" x2="335" y2="860"/>
+ <line x1="1210" y1="80" x2="1210" y2="580"/>
+ </g>
+
+ <!-- diagonal brace -->
+ <polygon points="600,860 900,320 940,340 640,880" fill="#f5f500" stroke="#0a0a0a" stroke-width="4"/>
+
+ <rect width="1600" height="1000" filter="url(#grain)" opacity="0.5"/>
+</svg>
diff --git a/public/index.html b/public/index.html
new file mode 100644
index 0000000..8e0e465
--- /dev/null
+++ b/public/index.html
@@ -0,0 +1,92 @@
+<!doctype html>
+<html lang="en">
+<head>
+ <meta charset="utf-8" />
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
+ <title>ROBET</title>
+ <meta name="description" content="Brutalist studio. Book a slot, state your need, get an answer." />
+ <link rel="stylesheet" href="/styles.css" />
+</head>
+<body>
+ <!-- top bar: logo UL · hamburger UR -->
+ <header class="topbar">
+ <a class="logo" id="logo" href="#top">ROBET</a>
+ <button class="hamburger" id="hamburger" aria-label="Open menu" aria-expanded="false">
+ <span></span><span></span><span></span>
+ </button>
+ </header>
+
+ <!-- nav overlay -->
+ <div class="navpanel" id="navpanel" role="dialog" aria-modal="true">
+ <button class="close" id="navclose" aria-label="Close menu">×</button>
+ <nav>
+ <a href="#top">Home</a>
+ <a href="#work">Work</a>
+ <a href="#booking">Book</a>
+ <a href="#contact">Contact</a>
+ <a href="/admin">Admin</a>
+ </nav>
+ </div>
+
+ <main id="top">
+ <!-- HUGE hero -->
+ <section class="hero" style="padding:0;border-bottom:5px solid #0a0a0a">
+ <div class="hero-img" id="heroImg"></div>
+ <div class="hero-inner">
+ <h1 id="heroHeadline">WE DON'T DECORATE.
+WE CONSTRUCT.</h1>
+ <p id="heroSub"></p>
+ <a class="cta" href="#booking">Book a slot →</a>
+ </div>
+ </section>
+
+ <!-- work / services -->
+ <section id="work">
+ <span class="kicker">/ what we do</span>
+ <h2 class="sec-h">No fluff. Just structure.</h2>
+ <div class="grid3">
+ <div class="cell"><h3>Consult</h3><p>Book a slot. Bring the problem. Leave with a plan — not a brochure.</p></div>
+ <div class="cell"><h3>Build</h3><p>Hard lines, load-bearing decisions, shipped on your terms.</p></div>
+ <div class="cell"><h3>Maintain</h3><p>We keep it standing. Monitored, patched, accountable.</p></div>
+ </div>
+ </section>
+
+ <!-- booking: Smart Scheduling -->
+ <section id="booking">
+ <span class="kicker">/ smart scheduling</span>
+ <h2 class="sec-h">Pick a time.</h2>
+ <div class="embed-box" id="embedBox">
+ <div class="fallback" id="bookFallback" class="mono">
+ Loading available slots… <a class="cta" id="bookLink" href="#">Open booking →</a>
+ </div>
+ </div>
+ </section>
+
+ <!-- contact -->
+ <section id="contact">
+ <span class="kicker">/ contact</span>
+ <h2 class="sec-h">Talk to us.</h2>
+ <div class="contact-wrap">
+ <dl class="contact-info" id="contactInfo"></dl>
+ <form class="contact-form" id="contactForm">
+ <label for="cName">Name</label>
+ <input id="cName" name="name" autocomplete="name" />
+ <label for="cEmail">Email *</label>
+ <input id="cEmail" name="email" type="email" required autocomplete="email" />
+ <label for="cMsg">Message *</label>
+ <textarea id="cMsg" name="message" rows="4" required></textarea>
+ <button type="submit">Send →</button>
+ <div class="formmsg" id="formMsg"></div>
+ </form>
+ </div>
+ </section>
+ </main>
+
+ <footer>
+ <span class="mono">© <span id="year"></span> <span id="footBrand">ROBET</span></span>
+ <span class="mono">Booking by Smart Scheduling · <a href="/admin">Admin</a></span>
+ </footer>
+
+ <script src="/app.js"></script>
+</body>
+</html>
diff --git a/public/styles.css b/public/styles.css
new file mode 100644
index 0000000..bd2a8b7
--- /dev/null
+++ b/public/styles.css
@@ -0,0 +1,126 @@
+/* ROBET — brutalist system.
+ Black/white + one harsh accent. Thick borders, zero radius, raw grid,
+ oversized grotesk + monospace. No gradients, no shadows-as-softness. */
+:root {
+ --ink: #0a0a0a;
+ --paper: #f3f1ea;
+ --accent: #f5f500; /* electric yellow */
+ --accent2: #ff2e1f; /* alarm red */
+ --bord: 5px solid var(--ink);
+}
+* { margin: 0; padding: 0; box-sizing: border-box; }
+html { scroll-behavior: smooth; }
+body {
+ background: var(--paper);
+ color: var(--ink);
+ font-family: "Helvetica Neue", Arial, sans-serif;
+ font-weight: 800;
+ -webkit-font-smoothing: none;
+ line-height: 1.05;
+}
+.mono { font-family: "SF Mono", "Courier New", monospace; font-weight: 700; }
+a { color: inherit; }
+
+/* ── top bar: logo UL, hamburger UR ── */
+.topbar {
+ position: sticky; top: 0; z-index: 50;
+ display: flex; align-items: center; justify-content: space-between;
+ padding: 14px 20px; background: var(--paper);
+ border-bottom: var(--bord);
+}
+.logo {
+ font-size: 28px; letter-spacing: -1px; text-transform: uppercase;
+ background: var(--ink); color: var(--paper); padding: 6px 12px;
+ text-decoration: none;
+}
+.logo:hover { background: var(--accent2); color: var(--ink); }
+.hamburger {
+ width: 54px; height: 46px; background: var(--accent); border: var(--bord);
+ cursor: pointer; display: grid; place-content: center; gap: 5px; padding: 0;
+}
+.hamburger span { display: block; width: 28px; height: 5px; background: var(--ink); }
+.hamburger:hover { background: var(--accent2); }
+
+/* ── nav overlay ── */
+.navpanel {
+ position: fixed; inset: 0; z-index: 60; background: var(--ink);
+ display: none; flex-direction: column; padding: 28px 24px;
+}
+.navpanel.open { display: flex; }
+.navpanel .close {
+ align-self: flex-end; background: var(--accent); border: var(--bord);
+ font-size: 26px; width: 54px; height: 54px; cursor: pointer; line-height: 1;
+}
+.navpanel nav { margin-top: 8vh; display: flex; flex-direction: column; gap: 6px; }
+.navpanel a {
+ color: var(--paper); text-decoration: none; text-transform: uppercase;
+ font-size: clamp(34px, 9vw, 88px); letter-spacing: -2px; line-height: 1;
+ border-bottom: 4px solid transparent; width: fit-content;
+}
+.navpanel a:hover { color: var(--accent); border-bottom-color: var(--accent2); }
+
+/* ── HUGE hero ── */
+.hero {
+ position: relative; min-height: 86vh; display: flex; align-items: flex-end;
+ border-bottom: var(--bord); overflow: hidden;
+}
+.hero-img { position: absolute; inset: 0; background-size: cover; background-position: center;
+ filter: grayscale(0.2) contrast(1.1); }
+.hero-img::after { content: ""; position: absolute; inset: 0;
+ background: linear-gradient(0deg, rgba(10,10,10,.72) 0%, rgba(10,10,10,.15) 55%, rgba(10,10,10,.35) 100%); }
+.hero-inner { position: relative; padding: 0 24px 48px; max-width: 1100px; }
+.hero h1 {
+ color: var(--paper); text-transform: uppercase; white-space: pre-line;
+ font-size: clamp(46px, 12vw, 150px); letter-spacing: -4px; line-height: 0.88;
+ text-shadow: 6px 6px 0 var(--ink);
+}
+.hero p { color: var(--accent); font-size: clamp(16px, 2.4vw, 26px); margin-top: 18px; max-width: 640px; }
+.cta {
+ display: inline-block; margin-top: 26px; background: var(--accent);
+ color: var(--ink); text-decoration: none; text-transform: uppercase;
+ font-size: 22px; padding: 16px 30px; border: var(--bord);
+ box-shadow: 8px 8px 0 var(--ink);
+}
+.cta:hover { background: var(--accent2); color: var(--paper); transform: translate(2px,2px); box-shadow: 6px 6px 0 var(--ink); }
+
+/* ── sections ── */
+section { padding: 70px 24px; border-bottom: var(--bord); }
+.kicker { font-family: "SF Mono", monospace; background: var(--ink); color: var(--accent);
+ display: inline-block; padding: 4px 10px; text-transform: uppercase; font-size: 13px; letter-spacing: 2px; }
+.sec-h { font-size: clamp(34px, 7vw, 76px); text-transform: uppercase; letter-spacing: -2px; margin: 16px 0 26px; }
+.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 0; }
+.cell { border: var(--bord); padding: 26px; margin: -2.5px 0 0 -2.5px; background: var(--paper); }
+.cell h3 { font-size: 24px; text-transform: uppercase; margin-bottom: 8px; }
+.cell p { font-weight: 600; line-height: 1.3; }
+.cell:hover { background: var(--accent); }
+
+/* booking embed */
+#booking .embed-box { border: var(--bord); background: #fff; padding: 0; min-height: 420px; }
+#booking .fallback { padding: 22px; }
+
+/* contact */
+.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
+@media (max-width: 720px) { .contact-wrap { grid-template-columns: 1fr; } }
+.contact-info, .contact-form { border: var(--bord); padding: 28px; margin: -2.5px 0 0 -2.5px; }
+.contact-info dt { font-family: "SF Mono", monospace; color: var(--accent2); text-transform: uppercase; font-size: 13px; letter-spacing: 1px; margin-top: 16px; }
+.contact-info dd { font-size: 20px; }
+.contact-form label { display: block; font-family: "SF Mono", monospace; font-size: 13px; text-transform: uppercase; margin: 14px 0 4px; }
+.contact-form input, .contact-form textarea {
+ width: 100%; border: var(--bord); padding: 12px; font-family: inherit; font-weight: 700; font-size: 16px; background: #fff; }
+.contact-form button { margin-top: 18px; background: var(--ink); color: var(--paper); border: var(--bord);
+ text-transform: uppercase; font-size: 18px; padding: 14px 26px; cursor: pointer; }
+.contact-form button:hover { background: var(--accent2); }
+.formmsg { margin-top: 12px; font-family: "SF Mono", monospace; }
+
+/* footer */
+footer { padding: 40px 24px; background: var(--ink); color: var(--paper); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
+footer a { color: var(--accent); }
+
+/* admin */
+.admin-shell { max-width: 760px; margin: 0 auto; padding: 40px 24px; }
+.keyrow { display: grid; grid-template-columns: 1fr auto auto; gap: 0; align-items: center; }
+.keyrow > * { border: var(--bord); padding: 12px; margin: -2.5px 0 0 -2.5px; background: #fff; }
+.keytable .head { background: var(--ink); color: var(--accent); font-family: "SF Mono", monospace; text-transform: uppercase; }
+.btn { background: var(--ink); color: var(--paper); border: var(--bord); padding: 12px 20px; text-transform: uppercase; cursor: pointer; font-weight: 800; font-family: inherit; }
+.btn.warn { background: var(--accent2); }
+.btn:hover { background: var(--accent); color: var(--ink); }
diff --git a/server.js b/server.js
new file mode 100644
index 0000000..343d421
--- /dev/null
+++ b/server.js
@@ -0,0 +1,97 @@
+'use strict';
+/*
+ * robet-site — brutalist marketing site
+ * • config-driven brand/contact (config.json)
+ * • Smart Scheduling booking (embeds venturacorridor.com appointments loader)
+ * • /admin API-key entry page (basic-auth) → data/keys.json (gitignored)
+ *
+ * Zero external deps beyond express. A tiny inline .env loader avoids dotenv.
+ */
+const express = require('express');
+const fs = require('fs');
+const path = require('path');
+
+// ── tiny .env loader (no dotenv dependency) ──
+(function loadEnv() {
+ const p = path.join(__dirname, '.env');
+ if (!fs.existsSync(p)) return;
+ for (const line of fs.readFileSync(p, 'utf8').split('\n')) {
+ const m = line.match(/^\s*([A-Z0-9_]+)\s*=\s*(.*)\s*$/);
+ if (m && !(m[1] in process.env)) process.env[m[1]] = m[2];
+ }
+})();
+
+const PORT = process.env.PORT || 9788;
+const ADMIN_USER = process.env.ADMIN_USER || 'admin';
+const ADMIN_PASS = process.env.ADMIN_PASS || 'changeme';
+const KEYS_FILE = path.join(__dirname, 'data', 'keys.json');
+const CONTACTS_FILE = path.join(__dirname, 'data', 'contacts.jsonl');
+const CONFIG_FILE = path.join(__dirname, 'config.json');
+
+const app = express();
+app.use(express.json({ limit: '64kb' }));
+app.use(express.urlencoded({ extended: false }));
+
+// ── helpers ──
+const readJson = (f, fallback) => {
+ try { return JSON.parse(fs.readFileSync(f, 'utf8')); } catch { return fallback; }
+};
+const writeJson = (f, obj) => {
+ fs.mkdirSync(path.dirname(f), { recursive: true });
+ fs.writeFileSync(f, JSON.stringify(obj, null, 2));
+};
+const last4 = (v) => (v && v.length >= 4 ? '…' + v.slice(-4) : '…');
+
+// Basic-auth gate for admin surfaces. Never logs the password.
+function adminAuth(req, res, next) {
+ const hdr = req.headers.authorization || '';
+ const [scheme, b64] = hdr.split(' ');
+ if (scheme === 'Basic' && b64) {
+ const [u, p] = Buffer.from(b64, 'base64').toString().split(':');
+ if (u === ADMIN_USER && p === ADMIN_PASS) return next();
+ }
+ res.set('WWW-Authenticate', 'Basic realm="robet-admin"').status(401).send('Auth required');
+}
+
+// ── public config (secrets stripped) ──
+app.get('/api/config', (_req, res) => res.json(readJson(CONFIG_FILE, {})));
+
+// ── contact form ──
+app.post('/api/contact', (req, res) => {
+ const { name = '', email = '', message = '' } = req.body || {};
+ if (!email || !message) return res.status(400).json({ ok: false, error: 'email and message required' });
+ fs.mkdirSync(path.dirname(CONTACTS_FILE), { recursive: true });
+ fs.appendFileSync(CONTACTS_FILE, JSON.stringify({ name, email, message, at: new Date().toISOString() }) + '\n');
+ res.json({ ok: true });
+});
+
+// ── API-key admin (basic-auth) ──
+// GET → masked list; POST → upsert {name,value}; DELETE → remove. Full values never returned.
+app.get('/api/keys', adminAuth, (_req, res) => {
+ const keys = readJson(KEYS_FILE, {});
+ res.json(Object.entries(keys).map(([name, v]) => ({
+ name, masked: last4(v.value), updated_at: v.updated_at,
+ })));
+});
+
+app.post('/api/keys', adminAuth, (req, res) => {
+ const { name, value } = req.body || {};
+ if (!name || !value) return res.status(400).json({ ok: false, error: 'name and value required' });
+ const keys = readJson(KEYS_FILE, {});
+ keys[name] = { value, updated_at: new Date().toISOString() };
+ writeJson(KEYS_FILE, keys);
+ res.json({ ok: true, name, masked: last4(value) });
+});
+
+app.delete('/api/keys/:name', adminAuth, (req, res) => {
+ const keys = readJson(KEYS_FILE, {});
+ delete keys[req.params.name];
+ writeJson(KEYS_FILE, keys);
+ res.json({ ok: true });
+});
+
+app.get('/admin', adminAuth, (_req, res) => res.sendFile(path.join(__dirname, 'public', 'admin.html')));
+
+app.use(express.static(path.join(__dirname, 'public')));
+
+app.listen(PORT, () => console.log(`robet-site → http://127.0.0.1:${PORT}`));
(oldest)
·
back to Robet Site
·
rebrand to Designer Wallcoverings appointments + deploy conf f9c0545 →