Skip to content

Production-ready animations, transitions, backgrounds, and scenes for Remotion

feat: ai slop

dev_wandryba19788a52e1
diff --git a/app/(home)/components/site-header.tsx b/app/(home)/components/site-header.tsx
index 4bc12e9e..a9b0ffc8 100644
--- a/app/(home)/components/site-header.tsx
+++ b/app/(home)/components/site-header.tsx
@@ -93,11 +93,11 @@ export function SiteHeader({
: "border-border bg-background/70 backdrop-blur-xl",
)}
>
- {/* Inner bar uses the page `container`, so when scrolled it becomes a
- floating pill exactly the width of the page content. */}
+ {/* Inner bar matches the page content width (same utilities as SECTION),
+ so when scrolled it becomes a floating pill exactly that width. */}
<div
className={cn(
- "container flex items-center justify-between border transition-all duration-300",
+ "mx-auto flex w-full max-w-6xl items-center justify-between border px-4 transition-all duration-300 sm:px-6",
scrolled
? "h-14 rounded-2xl border-border bg-background/80 shadow-lg shadow-black/5 backdrop-blur-xl dark:shadow-black/30"
: "h-16 border-transparent",
diff --git a/app/globals.css b/app/globals.css
index 765f8170..b94f7543 100644
--- a/app/globals.css
+++ b/app/globals.css
@@ -140,23 +140,12 @@
/* ── Landing primitives ─────────────────────────────────────────────
Theme-aware surfaces and decorative backgrounds for app/(home).
- Everything derives from design tokens so light/dark stay unified. */
+ Everything derives from design tokens so light/dark stay unified.
-/* Page width container — single source of truth for the landing/sponsors
- content width. Scoped under `.page-shell` (applied only on the home/sponsors
- PageShell, never on the docs tree) so it can't override the precompiled
- Tailwind/fumadocs `.container` utility that ships in the docs preset CSS. */
-.page-shell .container {
- width: 100%;
- max-width: 72rem; /* == max-w-6xl */
- margin-inline: auto;
- padding-inline: 1rem; /* == px-4 */
-}
-@media (min-width: 640px) {
- .page-shell .container {
- padding-inline: 1.5rem; /* == sm:px-6 */
- }
-}
+ NOTE: page width is handled by plain utilities in `config/landing.ts`
+ (SECTION) — NOT by overriding the `.container` class. Overriding the
+ configured `.container` utility from an unlayered rule was fragile and
+ left-shifted the whole landing when the cascade flipped. */
/* Subtle dotted grid — fades toward the edges. Used behind the hero. */
.bg-grid-fade {
diff --git a/config/landing.ts b/config/landing.ts
index 7afdee97..267a2078 100644
--- a/config/landing.ts
+++ b/config/landing.ts
@@ -4,9 +4,12 @@ export const PEACH = "#FFB38E";
export const LAVENDER = "#D4B3FF";
export const MINT = "#A1EEBD";
-// Page width wrapper. Implemented as the scoped `.page-shell .container`
-// CSS class (see app/globals.css) so it stays a single source of truth.
-export const SECTION = "container";
+// Page width wrapper — single source of truth for the landing/sponsors content
+// width. Plain Tailwind utilities (not the `container` class) so it can't be
+// overridden by the configured `.container` utility, which has wider max-widths
+// and no centering/padding (that collision left-shifted the whole page).
+// Equivalent to: max-w-6xl (72rem), centered, px-4 / sm:px-6.
+export const SECTION = "mx-auto w-full max-w-6xl px-4 sm:px-6";
export const GITHUB_URL = "https://github.com/kapishdima/remocn";