Skip to content

Commit 480d6da

Browse files
tym83claude
andcommitted
feat(site): Live Demo — the real console, mocked, in the browser
Adds a /demo section: the actual cozystack-ui SPA running entirely client-side with MSW-mocked Kubernetes API, so visitors can browse the real marketplace and console without a cluster, signup, or install. Data fixtures are captured from a live cluster (27 catalog apps + demo instances), so it looks real rather than invented. Also adds a Live Demo top-menu entry (weight 15) and a promo block on the home page linking to it. The mock layer lives in cozystack-ui behind VITE_DEMO=1; the built static output is vendored here under static/demo. A follow-up PR should land the demo-mode source in cozystack-ui so CI can reproduce the build. Known limitation: deep links / refresh on /demo/<subpath> fall through to the site 404 on GitHub Pages (SPA served from a subpath). Entering at /demo/ works; a hash-router or SPA-fallback is the follow-up. Co-Authored-By: Claude <[email protected]> Signed-off-by: tym83 <[email protected]>
1 parent 390fc10 commit 480d6da

115 files changed

Lines changed: 70271 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎content/en/_index.md‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,17 @@ features:
7676
<!-- Screenshot Gallery -->
7777
{{< home/screenshot-gallery >}}
7878

79+
<!-- Live Demo -->
80+
<div class="section-live-demo">
81+
{{< blocks/lead color="primary" >}}
82+
<h2 class="section-label">See the console before you install anything</h2>
83+
84+
Cozystack's real dashboard, running entirely in your browser — no cluster, no signup, no setup. Browse the marketplace, open managed services, click through the console. It's the actual UI, just with demo data.
85+
86+
<a class="btn btn-lg btn-primary mt-4" href="/demo/">Open the live demo &rarr;</a>
87+
{{< /blocks/lead >}}
88+
</div>
89+
7990
<!-- Benefits & Features -->
8091

8192
{{< home/benefits >}}

‎hugo.yaml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,9 @@ menus:
354354
- name: GitHub
355355
url: https://github.com/cozystack/cozystack
356356
weight: 10
357+
- name: Live Demo
358+
url: /demo/
359+
weight: 15
357360

358361
services:
359362
googleAnalytics:

‎static/demo/404.html‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/demo/favicon.svg" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Cozystack</title>
8+
<script type="module" crossorigin src="/demo/assets/index-DuRgF9V5.js"></script>
9+
<link rel="modulepreload" crossorigin href="/demo/assets/chunk-BEqpzyXh.js">
10+
<link rel="modulepreload" crossorigin href="/demo/assets/preload-helper-CrqUGr72.js">
11+
<link rel="modulepreload" crossorigin href="/demo/assets/jsx-runtime-BwJb0T-f.js">
12+
<link rel="stylesheet" crossorigin href="/demo/assets/index-D1Rd8xyN.css">
13+
</head>
14+
<body>
15+
<div id="root"></div>
16+
</body>
17+
</html>

‎static/demo/assets/YamlEditor-BumjngwU.js‎

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎static/demo/assets/abap-Bl4JpRfJ.js‎

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎static/demo/assets/apex-DjKKh_1r.js‎

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎static/demo/assets/azcli-CZ7ugqCJ.js‎

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎static/demo/assets/bat-BDEa95DY.js‎

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)