Skip to content
Open
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
12 changes: 7 additions & 5 deletions docs/app/(home)/components/TweetWall/TweetWall.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,16 @@
}

.column {
flex: 0 0 200px;
flex: 0 0 230px;
}

/* Render the card at 250px then scale the whole box down with zoom (shrinks the
layout box too, so columns stay tight and the loop has no gaps). 250 * 0.8 = 200. */
/* Render the card at 320px then scale the whole box down with zoom (shrinks the
layout box too, so columns stay tight and the loop has no gaps). 320 * 0.72 ≈ 230.
The wide base width lets tweet text breathe so cards aren't squeezed/too tall,
while the 0.72 scale keeps the cards compact. */
.slot {
width: 250px;
zoom: 0.8;
width: 320px;
zoom: 0.72;
margin-bottom: 0.625rem;
}
}
8 changes: 4 additions & 4 deletions docs/app/(home)/openclaw-os/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,13 @@ export default function OpenClawOSPage() {
/>
}
align="left"
desktopPreviewImage="/openclaw-os/hero-light.svg"
desktopPreviewImageDark="/openclaw-os/hero-dark.svg"
desktopPreviewImage="/openclaw-os/hero-light.webp"
desktopPreviewImageDark="/openclaw-os/hero-dark.webp"
desktopPreviewImageAlt="OpenClaw OS workspace"
desktopPreviewImageWidth={1568}
desktopPreviewImageHeight={940}
mobilePreviewImage="/openclaw-os/hero-light.svg"
mobilePreviewImageDark="/openclaw-os/hero-dark.svg"
mobilePreviewImage="/openclaw-os/hero-light.webp"
mobilePreviewImageDark="/openclaw-os/hero-dark.webp"
mobilePreviewImageAlt="OpenClaw OS workspace"
mobilePreviewImageWidth={1568}
mobilePreviewImageHeight={940}
Expand Down
8 changes: 4 additions & 4 deletions docs/app/(home)/sections/HeroSection/HeroSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ function commandVariants(command: string): CommandVariant[] {
}

const DESKTOP_HERO_IMAGE = {
light: "/homepage/hero-web.svg",
dark: "/homepage/hero-web-dark.svg",
light: "/homepage/hero-web.webp",
dark: "/homepage/hero-web-dark.webp",
width: 768,
height: 454,
} as const;
const MOBILE_HERO_IMAGE = {
light: "/homepage/mobile-hero-light.svg",
dark: "/homepage/mobile-hero-dark.svg",
light: "/homepage/mobile-hero-light.webp",
dark: "/homepage/mobile-hero-dark.webp",
width: 333,
height: 440,
} as const;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,46 @@
font-size: 0.9375rem;
}

.statText {
min-width: 0;
}

.statNumber {
font-weight: 600;
font-variant-numeric: tabular-nums;
/* Keep "1 Million+" / "7,657" from ever splitting across lines. */
white-space: nowrap;
}

.statLabel {
color: var(--openui-text-neutral-secondary);
}

/* Narrow phones: stack the two stats and let each label wrap as flowing text
right after its number, so the icon/number/label never get stranded apart. */
@media (max-width: 480px) {
.stats {
flex-direction: column;
align-items: center;
gap: 0.625rem;
}

/* Render each stat as one centered line of text that wraps as a unit, with
the icon inline at the start — so the icon hugs its number instead of being
stranded, and nothing gets pushed apart on narrow screens. */
.statChip {
display: block;
max-width: 100%;
text-align: center;
}

.statChip svg {
display: inline-block;
vertical-align: middle;
margin-right: 0.35rem;
}
}

@media (min-width: 1024px) {
.section {
padding-inline: 2rem;
Expand Down
12 changes: 8 additions & 4 deletions docs/app/(home)/sections/TweetWallSection/TweetWallStats.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,17 @@ export function TweetWallStats() {
<div className={styles.stats}>
<span className={styles.statChip}>
<GitHubMark size={16} />
<span className={styles.statNumber}>{stars.toLocaleString()}</span>
<span className={styles.statLabel}>stars</span>
<span className={styles.statText}>
<span className={styles.statNumber}>{stars.toLocaleString()}</span>{" "}
<span className={styles.statLabel}>stars</span>
</span>
</span>
<span className={styles.statChip}>
<NpmMark />
<span className={styles.statNumber}>1 Million+</span>
<span className={styles.statLabel}>downloads across all packages</span>
<span className={styles.statText}>
<span className={styles.statNumber}>1 Million+</span>{" "}
<span className={styles.statLabel}>downloads across all packages</span>
</span>
</span>
</div>
);
Expand Down
334 changes: 0 additions & 334 deletions docs/public/homepage/hero-web-dark.svg

This file was deleted.

Binary file added docs/public/homepage/hero-web-dark.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
348 changes: 0 additions & 348 deletions docs/public/homepage/hero-web.svg

This file was deleted.

Binary file added docs/public/homepage/hero-web.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
168 changes: 0 additions & 168 deletions docs/public/homepage/mobile-hero-dark.svg

This file was deleted.

Binary file added docs/public/homepage/mobile-hero-dark.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
188 changes: 0 additions & 188 deletions docs/public/homepage/mobile-hero-light.svg

This file was deleted.

Binary file added docs/public/homepage/mobile-hero-light.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
948 changes: 0 additions & 948 deletions docs/public/openclaw-os/hero-dark.svg

This file was deleted.

Binary file added docs/public/openclaw-os/hero-dark.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
948 changes: 0 additions & 948 deletions docs/public/openclaw-os/hero-light.svg

This file was deleted.

Binary file added docs/public/openclaw-os/hero-light.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading