Skip to content

CubeLoop — a Pythonic, async-native agent harness core designed for high performance, readability, and production-grade persistence.

feat(website): Hero component with social preview banner

xf gong69a31d3d555a
diff --git a/website/src/components/Home/Hero.module.css b/website/src/components/Home/Hero.module.css
new file mode 100644
index 0000000..1aa54b1
--- /dev/null
+++ b/website/src/components/Home/Hero.module.css
@@ -0,0 +1,15 @@
+.hero { max-width: 880px; margin: 48px auto 64px; padding: 0 24px; text-align: left; }
+.banner { display: block; width: 100%; height: auto; border: 1px solid var(--ink-5); border-radius: 6px; margin-bottom: 40px; }
+.eyebrow { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; color: var(--ink-7); letter-spacing: 0.06em; margin-bottom: 12px; }
+.h1 { font-family: 'Inter Tight', 'Inter', system-ui; font-size: 44px; line-height: 1.08; letter-spacing: -0.02em; font-weight: 600; color: var(--ink-12); margin: 0 0 16px; }
+.lead { font-size: 16px; line-height: 1.55; color: var(--ink-9); margin: 0 0 28px; max-width: 640px; }
+.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
+.cta { display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 14px; border: 1px solid var(--ink-5); border-radius: 5px; background: var(--surface); font-size: 14px; color: var(--ink-11); font-weight: 500; cursor: pointer; text-decoration: none; }
+.cta:hover { background: var(--ink-3); }
+.ctaPrimary { background: var(--ink-12); border-color: var(--ink-12); color: var(--surface); }
+.ctaPrimary:hover { background: var(--ink-11); }
+.ctaPrimary code { background: transparent; color: inherit; font-size: 13px; }
+.ctaGhost { background: transparent; }
+.kbd { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 10.5px; height: 18px; min-width: 18px; padding: 0 5px; display: inline-flex; align-items: center; border: 1px solid var(--ink-5); border-bottom-width: 2px; border-radius: 4px; background: var(--surface); color: var(--ink-9); opacity: 0.85; }
+.ctaPrimary .kbd { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.85); border-color: transparent; }
+@media (max-width: 640px) { .h1 { font-size: 32px; } .hero { margin-top: 24px; } }
diff --git a/website/src/components/Home/Hero.tsx b/website/src/components/Home/Hero.tsx
new file mode 100644
index 0000000..48d215c
--- /dev/null
+++ b/website/src/components/Home/Hero.tsx
@@ -0,0 +1,41 @@
+import React from 'react';
+import Link from '@docusaurus/Link';
+import useBaseUrl from '@docusaurus/useBaseUrl';
+import styles from './Hero.module.css';
+
+export default function Hero() {
+ const social = useBaseUrl('/img/brand/cubepi-social-preview.png');
+ const installCmd = 'pip install cubepi';
+
+ return (
+ <section className={styles.hero}>
+ <img
+ className={styles.banner}
+ src={social}
+ alt="CubePi · A Pythonic, async-native agent framework"
+ width={1280}
+ height={640}
+ />
+ <div className={styles.eyebrow}>cubepi · v0.3.0 · alpha</div>
+ <h1 className={styles.h1}>A Pythonic, async-native agent framework.</h1>
+ <p className={styles.lead}>
+ Plain async functions instead of graph nodes. 3 deps. Append-only checkpointing.
+ </p>
+ <div className={styles.actions}>
+ <button
+ type="button"
+ className={`${styles.cta} ${styles.ctaPrimary}`}
+ onClick={() => navigator.clipboard?.writeText(installCmd)}
+ aria-label={`Copy install command: ${installCmd}`}
+ >
+ <code>{installCmd}</code>
+ <kbd className={styles.kbd}>⌘C</kbd>
+ </button>
+ <Link className={`${styles.cta} ${styles.ctaGhost}`} to="/getting-started/quick-start">
+ Quick Start →
+ <kbd className={styles.kbd}>G Q</kbd>
+ </Link>
+ </div>
+ </section>
+ );
+}