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
35 changes: 35 additions & 0 deletions app/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,41 @@ body:has([data-granite-banner]) .h-\[calc\(100vh-var\(--header-height\)-1rem\)\]
height: calc(100vh - var(--fd-banner-height, 3rem) - var(--header-height) - 1rem) !important;
}

/* Integrations page: Add padding-top when banner exists */
body:has([data-granite-banner]) .integrations-page {
padding-top: calc(var(--fd-banner-height, 3rem) + 3rem) !important;
scroll-padding-top: calc(var(--fd-banner-height, 3rem) + 4rem) !important;
}

/* Integrations page: Default scroll padding (no banner) */
.integrations-page {
scroll-padding-top: 4rem;
}

/* Integrations page: Adjust sticky sidebar position when banner exists */
body:has([data-granite-banner]) .integrations-page aside > div[class*="sticky"] {
top: calc(6rem + var(--fd-banner-height, 3rem)) !important;
}

/* Integrations page: Add scroll margin to section anchors for proper positioning */
.integrations-page section[id] {
scroll-margin-top: 4rem;
}

body:has([data-granite-banner]) .integrations-page section[id] {
scroll-margin-top: calc(var(--fd-banner-height, 3rem) + 4rem);
}

/* Integration detail page: Add padding-top when banner exists */
body:has([data-granite-banner]) .integration-detail-page {
padding-top: calc(var(--fd-banner-height, 3rem) + 1rem) !important;
}

/* Integration detail page: Default padding (no banner) */
.integration-detail-page {
padding-top: 1rem;
}

/* Remove ALL left whitespace from navbar to fill screen edge */
body > div > nav,
body > div > header,
Expand Down
4 changes: 2 additions & 2 deletions app/integrations/[...slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default async function Page(props: {
const path = `content/integrations${page.url.replace('/integrations/', '/')}.mdx`;

return (
<>
<div className="integration-detail-page">
<div
className="container rounded-xl border mt-5 py-12 md:px-8"
style={{
Expand Down Expand Up @@ -141,7 +141,7 @@ export default async function Page(props: {
</div>
</div>
</article>
</>
</div>
);
}

Expand Down
327 changes: 327 additions & 0 deletions app/integrations/page.client.tsx

Large diffs are not rendered by default.

254 changes: 2 additions & 252 deletions app/integrations/page.tsx

Large diffs are not rendered by default.

Loading