Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/components/Footer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ export default function Footer() {
<span>&copy; {new Date().getFullYear()} Smartloop Inc.</span>
<span>Made in San Francisco, CA</span>
<div className="sl-footer__links">
<Link to="/about">About</Link>
<Link to="/docs/getting-started">Docs</Link>
<Link to="/pricing">Pricing</Link>
<Link to="/contact/?for=partner">Partners</Link>
<Link to="/terms">Terms</Link>
<Link to="/privacy">Privacy</Link>
Expand Down
146 changes: 146 additions & 0 deletions src/components/GoldenGate/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,146 @@
import { type ReactNode } from 'react';
import s from './styles.module.css';

// The Golden Gate as an inline illustration: a sunset in the light theme, a
// night with stars and deck lights in the dark one. Every colour is a --gg-*
// variable (styles.module.css) so both themes come from the same drawing.

const DECK = 262;
const TOWERS = [360, 840];
const TOP = 74;

type Pt = [number, number];
const quad = (a: Pt, c: Pt, b: Pt, t: number): Pt => [
(1 - t) ** 2 * a[0] + 2 * t * (1 - t) * c[0] + t ** 2 * b[0],
(1 - t) ** 2 * a[1] + 2 * t * (1 - t) * c[1] + t ** 2 * b[1],
];

// The three cable spans, as quadratic curves: [start, control, end].
const SPANS: [Pt, Pt, Pt][] = [
[[TOWERS[0], TOP], [250, 255], [40, DECK]],
[[TOWERS[0], TOP], [600, 430], [TOWERS[1], TOP]],
[[TOWERS[1], TOP], [950, 255], [1160, DECK]],
];

// Vertical suspender ropes, hanging from the cable to the deck.
const suspenders: [number, number][] = SPANS.flatMap(([a, c, b], i) => {
const n = i === 1 ? 38 : 16;
const out: [number, number][] = [];
for (let k = 1; k < n; k++) {
const [x, y] = quad(a, c, b, k / n);
if (DECK - y > 4) out.push([x, y]);
}
return out;
});

const STARS: [number, number, number][] = [
[80, 40, 1.2], [170, 95, 0.9], [260, 30, 1.4], [420, 52, 0.8], [520, 24, 1.1], [690, 60, 0.9],
[760, 26, 1.3], [1010, 44, 1], [1090, 120, 0.8], [1150, 36, 1.2], [300, 150, 0.7], [640, 140, 0.8],
];

function Tower({ x }: { x: number }): ReactNode {
const legW = 14;
const gap = 24;
const l = x - gap / 2 - legW;
const r = x + gap / 2;
const beams = [[TOP + 6, 10], [128, 9], [178, 8], [226, 8], [292, 8]];
return (
<g className={s.bridge}>
{/* the stepped tops of each leg */}
<rect x={l + 2} y={TOP - 8} width={legW - 4} height={10} />
<rect x={r + 2} y={TOP - 8} width={legW - 4} height={10} />
<rect x={l} y={TOP} width={legW} height={320 - TOP} />
<rect x={r} y={TOP} width={legW} height={320 - TOP} />
{beams.map(([y, h]) => <rect key={y} x={l} y={y} width={legW * 2 + gap} height={h} />)}
<rect className={s.pier} x={x - 34} y={316} width={68} height={14} rx={2} />
<circle className={s.beacon} cx={l + legW / 2} cy={TOP - 10} r={2.4} />
<circle className={s.beacon} cx={r + legW / 2} cy={TOP - 10} r={2.4} />
</g>
);
}

export default function GoldenGate({ className = '' }: { className?: string }): ReactNode {
return (
<figure className={`${s.frame} ${className}`}>
<svg viewBox="0 0 1200 460" className={s.svg} role="img" aria-label="Illustration of the Golden Gate Bridge in San Francisco">
<defs>
<linearGradient id="gg-sky" x1="0" y1="0" x2="0" y2="1">
<stop offset="0" style={{ stopColor: 'var(--gg-sky-1)' }} />
<stop offset="0.6" style={{ stopColor: 'var(--gg-sky-2)' }} />
<stop offset="1" style={{ stopColor: 'var(--gg-sky-3)' }} />
</linearGradient>
<linearGradient id="gg-water" x1="0" y1="0" x2="0" y2="1">
<stop offset="0" style={{ stopColor: 'var(--gg-water-1)' }} />
<stop offset="1" style={{ stopColor: 'var(--gg-water-2)' }} />
</linearGradient>
<radialGradient id="gg-sun">
<stop offset="0" style={{ stopColor: 'var(--gg-sun)', stopOpacity: 1 }} />
<stop offset="0.55" style={{ stopColor: 'var(--gg-sun)', stopOpacity: 1 }} />
<stop offset="1" style={{ stopColor: 'var(--gg-sun)', stopOpacity: 0 }} />
</radialGradient>
<filter id="gg-blur" x="-20%" y="-50%" width="140%" height="200%">
<feGaussianBlur stdDeviation="14" />
</filter>
</defs>

{/* sky, stars and the sun or moon */}
<rect width="1200" height="460" fill="url(#gg-sky)" />
<g className={s.stars}>
{STARS.map(([x, y, r]) => <circle key={`${x}-${y}`} cx={x} cy={y} r={r} />)}
</g>
<circle className={s.sun} cx="600" cy="318" r="120" fill="url(#gg-sun)" />
<circle className={s.moon} cx="985" cy="92" r="22" />

{/* far hills: the Marin Headlands on the right, the city on the left */}
<path className={s.hillFar} d="M700 320 C760 300 800 250 880 228 C960 206 1030 196 1090 214 C1140 228 1180 240 1200 236 L1200 320 Z" />
<path className={s.hillFar} d="M0 286 C60 276 120 282 170 290 C220 296 260 300 300 320 L0 320 Z" />
<g className={s.city}>
<rect x="40" y="262" width="12" height="26" /><rect x="58" y="252" width="10" height="36" />
<path d="M80 288 L86 236 L92 288 Z" /><rect x="100" y="266" width="14" height="22" />
<rect x="120" y="258" width="9" height="30" /><rect x="134" y="270" width="16" height="18" />
</g>

{/* the bay */}
<rect y="320" width="1200" height="140" fill="url(#gg-water)" />
<g className={s.glint}>
<rect x="540" y="338" width="120" height="2.5" rx="1.25" />
<rect x="560" y="356" width="80" height="2" rx="1" />
<rect x="575" y="374" width="50" height="2" rx="1" />
<rect x="586" y="392" width="28" height="1.5" rx="0.75" />
</g>

{/* fog rolling in under the bridge */}
<g className={s.fog} filter="url(#gg-blur)">
<ellipse cx="220" cy="306" rx="260" ry="26" />
<ellipse cx="980" cy="300" rx="300" ry="30" />
</g>

{/* near shore on each side */}
<path className={s.hillNear} d="M0 300 C30 290 60 280 90 284 C110 288 130 300 150 320 L150 330 L0 330 Z" />
<path className={s.hillNear} d="M1080 330 C1100 300 1130 276 1170 268 L1200 266 L1200 330 Z" />

{/* the bridge: suspenders, cables, deck, towers */}
<g className={s.ropes}>
{suspenders.map(([x, y]) => <line key={x} x1={x} y1={y} x2={x} y2={DECK} />)}
</g>
<g className={s.cable}>
{SPANS.map(([a, c, b]) => <path key={a[0] + b[0]} d={`M${a[0]} ${a[1]} Q${c[0]} ${c[1]} ${b[0]} ${b[1]}`} />)}
</g>
<g className={s.bridge}>
<rect x="0" y={DECK} width="1200" height="7" />
<rect className={s.truss} x="0" y={DECK + 7} width="1200" height="4" />
</g>
{TOWERS.map((x) => <Tower key={x} x={x} />)}
<g className={s.lights}>
{Array.from({ length: 40 }, (_, i) => <circle key={i} cx={15 + i * 30} cy={DECK - 2} r={1.6} />)}
</g>

{/* a drifting veil of fog in front */}
<g className={`${s.fog} ${s.fogFront}`} filter="url(#gg-blur)">
<ellipse cx="520" cy="334" rx="320" ry="18" />
</g>
</svg>
<figcaption className={s.caption}>San Francisco, CA</figcaption>
</figure>
);
}
101 changes: 101 additions & 0 deletions src/components/GoldenGate/styles.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
/* Golden Gate illustration: a sunset in light, a night in dark. */
.frame {
--gg-sky-1: #fde2ec;
--gg-sky-2: #fbd0c4;
--gg-sky-3: #f9c3a6;
--gg-sun: #fb9a6c;
--gg-water-1: #e9a7a0;
--gg-water-2: #b9c3d6;
--gg-hill-far: #c99aa6;
--gg-hill-near: #8d6a78;
--gg-city: #b58d9b;
--gg-bridge: #c0392b;
--gg-fog: rgba(255, 255, 255, 0.75);
--gg-glint: rgba(255, 255, 255, 0.7);

position: relative;
margin: 0;
border-radius: 28px;
overflow: hidden;
border: 1px solid var(--sl-line);
box-shadow: 0 1px 2px rgba(10, 10, 20, 0.04), 0 30px 80px -24px rgba(10, 10, 20, 0.22);
background: var(--gg-sky-1);
}

[data-theme='dark'] .frame {
--gg-sky-1: #07071a;
--gg-sky-2: #1a1033;
--gg-sky-3: #3a1838;
--gg-sun: #ec4899;
--gg-water-1: #1d1027;
--gg-water-2: #07070d;
--gg-hill-far: #1b1424;
--gg-hill-near: #0e0b14;
--gg-city: #241a30;
--gg-bridge: #a2352b;
--gg-fog: rgba(190, 170, 220, 0.16);
--gg-glint: rgba(236, 72, 153, 0.5);
}

.svg {
display: block;
width: 100%;
height: auto;
}

.bridge,
.bridge rect { fill: var(--gg-bridge); }
.truss { opacity: 0.55; }
.pier { fill: var(--gg-hill-near); }
.cable path { fill: none; stroke: var(--gg-bridge); stroke-width: 3.5; stroke-linecap: round; }
.ropes line { stroke: var(--gg-bridge); stroke-width: 1; opacity: 0.8; }
.hillFar { fill: var(--gg-hill-far); }
.hillNear { fill: var(--gg-hill-near); }
.city { fill: var(--gg-city); }
.fog { fill: var(--gg-fog); }
.glint rect { fill: var(--gg-glint); }

/* Night-only details */
.stars circle { fill: #fff; }
.stars, .moon, .lights, .beacon { opacity: 0; transition: opacity 0.4s; }
.moon { fill: #f4f1ff; }
.lights circle { fill: #fcd34d; }
.beacon { fill: #ff4d4d; }
[data-theme='dark'] .stars { opacity: 0.8; }
[data-theme='dark'] .moon { opacity: 0.95; }
[data-theme='dark'] .lights { opacity: 0.9; }
[data-theme='dark'] .beacon { opacity: 1; }
[data-theme='dark'] .sun { opacity: 0.35; }

/* Fog drifts slowly; held still for reduced motion. */
.fog { animation: gg-drift 26s ease-in-out infinite alternate; }
.fogFront { animation-duration: 34s; animation-direction: alternate-reverse; }

@keyframes gg-drift {
from { transform: translateX(-40px); }
to { transform: translateX(40px); }
}

@media (prefers-reduced-motion: reduce) {
.fog { animation: none; }
}

.caption {
position: absolute;
left: 20px;
bottom: 16px;
padding: 5px 12px;
border-radius: 999px;
font-family: var(--sl-mono);
font-size: 0.64rem;
letter-spacing: 0.16em;
text-transform: uppercase;
color: #fff;
background: rgba(10, 10, 20, 0.35);
backdrop-filter: blur(6px);
}

@media (max-width: 640px) {
.frame { border-radius: 18px; }
.caption { left: 12px; bottom: 10px; font-size: 0.56rem; }
}
51 changes: 42 additions & 9 deletions src/components/Header/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,27 @@
import Link from '@docusaurus/Link';
import { useState, useEffect } from 'react';

// A product's mark in the Products menu, matching the cards on the home page:
// Docent Studio's mark drawn in the site colors, Docent Code's prompt, gpushed's icon.
function ProductMark({ product }: { product: 'studio' | 'docent' | 'gpushed' }) {
if (product === 'studio') {
return (
<span className="sl-submenu__mark" aria-hidden="true">
<svg viewBox="0 0 24 24" width="18" height="18">
<path d="M10 5H11A6 6 0 0 1 17 11V18H10A6 6 0 0 1 4 12V11A6 6 0 0 1 10 5Z" fill="var(--sl-white)" />
<circle cx="16.7" cy="8.4" r="3" fill="var(--sl-accent)" />
</svg>
</span>
);
}
if (product === 'docent') {
return <span className="sl-submenu__mark sl-submenu__mark--prompt" aria-hidden="true">›_</span>;
}
return <img className="sl-submenu__mark sl-submenu__mark--img" src="/img/logos/gpushed.svg" alt="" width={32} height={32} />;
}

// One header on every page. Like anthropic.com, the toolbar is the company's
// (products, docs, about); pricing is linked from the footer.
export default function Header() {
const [isMenuOpen, setIsMenuOpen] = useState(false);
const [theme, setTheme] = useState<'light' | 'dark'>('light');
Expand Down Expand Up @@ -118,29 +139,41 @@ export default function Header() {
</button>
<nav className="sl-menu__body">
<ul className="sl-menu__list">
{/* Docent is one product used in two places, so it is one item: on desktop the panel
opens on hover or keyboard focus; in the mobile menu the two
links stand in its place. */}
{/* All products live under one menu: on desktop the panel opens on
hover or keyboard focus; in the mobile menu the links stand in its place. */}
<li className="sl-menu__item sl-menu__group">
<Link to="/docent" className="sl-menu__link sl-menu__group-label" aria-haspopup="true" onClick={closeMenu}>
Docent
Products
<svg className="sl-menu__chevron" width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2.4" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true"><polyline points="6 9 12 15 18 9" /></svg>
</Link>
<div className="sl-submenu">
<div className="sl-submenu__panel">
<Link to="/docent#desktop" className="sl-menu__link sl-submenu__link" onClick={closeMenu}>
<span className="sl-submenu__name">Docent Studio</span>
<span className="sl-submenu__desc">Your private AI assistant: documents, systems, skills</span>
<ProductMark product="studio" />
<span className="sl-submenu__text">
<span className="sl-submenu__name">Docent Studio</span>
<span className="sl-submenu__desc">Your private AI assistant: documents, systems, skills</span>
</span>
</Link>
<Link to="/docent#coding" className="sl-menu__link sl-submenu__link" onClick={closeMenu}>
<span className="sl-submenu__name">Docent</span>
<span className="sl-submenu__desc">The coding agent for your terminal: writes, builds and fixes</span>
<ProductMark product="docent" />
<span className="sl-submenu__text">
<span className="sl-submenu__name">Docent Code</span>
<span className="sl-submenu__desc">The coding agent for your terminal: writes, builds and fixes</span>
</span>
</Link>
<a href="https://gpushed.dev" className="sl-menu__link sl-submenu__link" target="_blank" rel="noopener noreferrer" onClick={closeMenu}>
<ProductMark product="gpushed" />
<span className="sl-submenu__text">
<span className="sl-submenu__name">gpushed <span className="sl-submenu__ext" aria-hidden="true">↗</span></span>
<span className="sl-submenu__desc">A GPU by the second from your Mac: no cloud account needed</span>
</span>
</a>
</div>
</div>
</li>
<li className="sl-menu__item"><a href="https://gpushed.dev" className="sl-menu__link" target="_blank" rel="noopener noreferrer" onClick={closeMenu}>gpushed</a></li>
<li className="sl-menu__item"><Link to="/docs/intro" className="sl-menu__link" onClick={closeMenu}>Docs</Link></li>
<li className="sl-menu__item"><Link to="/about" className="sl-menu__link" onClick={closeMenu}>About</Link></li>
</ul>
</nav>
</div>
Expand Down
11 changes: 11 additions & 0 deletions src/components/HeroDrift/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,14 @@ export default function HeroDrift(): ReactNode {
</>
);
}

/** The same names as two full-width rows under the hero on narrower screens,
* where the side columns would sit on top of the headline. */
export function HeroDriftRows(): ReactNode {
return (
<div className={styles.heroDriftRows} aria-hidden="true">
<Marquee items={MODELS} />
<Marquee items={HARDWARE} reverse slow />
</div>
);
}
Loading
Loading