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
10 changes: 0 additions & 10 deletions src/components/HeroDrift/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,3 @@ 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>
);
}
12 changes: 7 additions & 5 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,8 @@ body {
height: 28px;
}

.sl-menu__group-label,
/* Two classes plus the element, to beat the inline-flex above. */
.sl-menu__item a.sl-menu__group-label,
.sl-submenu__desc {
display: none;
}
Expand Down Expand Up @@ -687,10 +688,11 @@ body {
}

/* The hamburger bars are hardcoded near-white in app.css, which vanishes
on the light theme. The open menu overlay is black, so the X keeps it. */
.header .sl-menu:not(.menu-open) .icon-menu span,
.header .sl-menu:not(.menu-open) .icon-menu::before,
.header .sl-menu:not(.menu-open) .icon-menu::after {
on the light theme. The open menu takes the page's ground in both themes,
so the X uses the theme's ink too, or it can't be seen to close the menu. */
.header .sl-menu .icon-menu span,
.header .sl-menu .icon-menu::before,
.header .sl-menu .icon-menu::after {
background-color: var(--sl-fg);
}

Expand Down
34 changes: 7 additions & 27 deletions src/pages/home.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -347,36 +347,10 @@
}
}

.heroDrift .chip,
.heroDriftRows .chip {
.heroDrift .chip {
opacity: 0.75;
}

/* Below the side columns' width: the same chips as two rows under the
buttons, faded at both edges so they drift in and out of view. */
.heroDriftRows {
position: relative;
z-index: 0;
display: flex;
flex-direction: column;
gap: 12px;
margin-top: 48px;
pointer-events: none;
-webkit-mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
}

.heroDriftRows .chip {
padding: 8px 14px;
font-size: 0.84rem;
}

@media (min-width: 1240px) {
.heroDriftRows {
display: none;
}
}

/* ── marquee ────────────────────────────────────────── */
.marquee {
overflow: hidden;
Expand Down Expand Up @@ -1912,3 +1886,9 @@
padding-top: 56px;
}


/* Keep "Local first." together: when the headline doesn't fit on one line,
the phrase drops whole to the second line instead of splitting. */
.heroHome .heroTitle .accent {
white-space: nowrap;
}
5 changes: 4 additions & 1 deletion src/pages/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -3032,8 +3032,11 @@ details[open] .faqQuestion::after {
text-align: right;
}

.gpuTable tr {
.gpuTable thead,
.gpuTable tr,
.gpuTable tr:nth-child(2n) {
background: transparent;
border: none;
}

@media (max-width: 560px) {
Expand Down
3 changes: 1 addition & 2 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Link from '@docusaurus/Link';
import Head from '@docusaurus/Head';
import Header from '../components/Header';
import Footer from '../components/Footer';
import HeroDrift, { HeroDriftRows } from '../components/HeroDrift';
import HeroDrift from '../components/HeroDrift';
import styles from './home.module.css';

// smartloop.ai is the company, the way 37signals sits over Basecamp and HEY:
Expand Down Expand Up @@ -263,7 +263,6 @@ export default function Home(): ReactNode {
</div>
</div>
</div>
<HeroDriftRows />
</section>

{/* ── The story ──────────────────────────────────── */}
Expand Down
Loading