cartesiancorp / README.md
EnergyVenom's picture
Deploy Cartesian Corp website
dc445bf verified
|
Raw History Blame Contribute Delete
3.86 kB
---
title: Cartesian Corp
emoji: πŸ“ˆ
colorFrom: blue
colorTo: indigo
sdk: static
app_file: index.html
pinned: false
short_description: AI agents & enterprise engineering β€” cartesiancorp.com
---
# Cartesian Corp β€” cartesiancorp.com
Multi-page static website (no framework, no build step needed to serve).
| Page | File |
|---|---|
| Home | `index.html` |
| Services | `services.html` |
| Work (case study index) | `work.html` |
| Case studies | `work/<slug>.html` (6 pages) |
| AI Project Scoper | `ai-scoper.html` |
| About & team | `about.html` |
| Contact | `contact.html` |
## Editing content
All pages are generated from one file so the header, footer and data stay consistent:
1. Edit `build.js` (team, services, case studies, stats, contact email are at the top).
2. Run `node build.js` β€” it rewrites the HTML pages and `data.js`.
Other files: `styles.css` (design; the color palette is at the top), `main.js` (animation, interactions),
`hero3d.js` (Three.js hero), `ai.js` (AI Scoper + chat assistant).
**Credibility slots (hidden until filled, in `build.js`):** only add real, approved information.
- `COMPANY.location`, `COMPANY.registration` (e.g. CIN / company number), `COMPANY.linkedin`: shown in the footer.
- `linkedin` on each `TEAM` member: adds a LinkedIn button to their card.
- `TESTIMONIALS`: client quotes, shown on the home page.
- `CLIENT_LOGOS`: logo files in `assets/clients/`, shown on the home page (only with the client's permission).
- `CERTIFICATIONS`: team certifications, shown on the About page.
**Insights articles** live in `content/insights.js`. Add a new object to publish another article.
**SEO:** `SITE_URL` in `build.js` sets canonical URLs, `sitemap.xml`, `robots.txt` and the social preview image
(`assets/og-image.png`). Once cartesiancorp.com points at the site, submit `https://cartesiancorp.com/sitemap.xml`
in Google Search Console.
**Team photos:** add square-ish headshots as `assets/team/bk.jpg`, `kc.jpg`, `nk.jpg`, `gm.jpg`, `sk.jpg`, `su.jpg`.
They replace the monograms automatically.
**Case studies:** the six projects in `build.js` are illustrative examples β€” replace them with real work before launch.
## Preview locally
```
python -m http.server 8765
```
## Deploy to Hugging Face Spaces
```
hf auth login # once, with a write token from https://huggingface.co/settings/tokens
python deploy_hf.py # creates/updates the Space <your-username>/cartesiancorp
```
## Product demo videos
Each case study has a walkthrough video in `assets/video/<slug>.mp4` (+ `.jpg` poster), shown on its case page
and as a hover preview on the Work cards. The videos are rendered from animated UI scenes in `demos/`:
```bash
npm i playwright-core # once
set FFMPEG=C:\path\to\ffmpeg.exe # ffmpeg with libx264 (e.g. from `pip install imageio-ffmpeg`)
node tools/record_demos.js # re-render all six videos
node tools/record_demos.js --showreel # rebuild assets/showreel.mp4 from them
```
Open any `demos/<slug>.html` in a browser to preview a scene live. When you have real product recordings,
replace the `.mp4`/`.jpg` files with the same names.
## Three.js components
`hero3d.js` (home hero surface plot) and `three-components.js`: the interactive architecture stack (Services),
the delivery globe (About, Contact) and the AI orb (AI Scoper). They render only while visible and are skipped
when WebGL is unavailable.
## Showreel video
The home showreel plays a live animated agent console. Drop an MP4 at `assets/showreel.mp4` to use a real recording instead.
## Real LLM for the AI components (optional)
The Scoper and chat run on a built-in engine (no API key exposed). To connect a real model, deploy a small serverless
function that holds your key server-side and returns `{ "reply": "..." }`, then set `AI_ENDPOINT` at the top of `ai.js`.