Skip to content

Commit 437f5a3

Browse files
Merge pull request #3342 from ava-labs/olivia/integrations
`Integrations`: Page Refresh, More Providers, README
2 parents b8f1934 + 19ec783 commit 437f5a3

File tree

157 files changed

+8996
-609
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

157 files changed

+8996
-609
lines changed

app/global.css

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,41 @@ body:has([data-granite-banner]) .h-\[calc\(100vh-var\(--header-height\)-1rem\)\]
124124
height: calc(100vh - var(--fd-banner-height, 3rem) - var(--header-height) - 1rem) !important;
125125
}
126126

127+
/* Integrations page: Add padding-top when banner exists */
128+
body:has([data-granite-banner]) .integrations-page {
129+
padding-top: calc(var(--fd-banner-height, 3rem) + 3rem) !important;
130+
scroll-padding-top: calc(var(--fd-banner-height, 3rem) + 4rem) !important;
131+
}
132+
133+
/* Integrations page: Default scroll padding (no banner) */
134+
.integrations-page {
135+
scroll-padding-top: 4rem;
136+
}
137+
138+
/* Integrations page: Adjust sticky sidebar position when banner exists */
139+
body:has([data-granite-banner]) .integrations-page aside > div[class*="sticky"] {
140+
top: calc(6rem + var(--fd-banner-height, 3rem)) !important;
141+
}
142+
143+
/* Integrations page: Add scroll margin to section anchors for proper positioning */
144+
.integrations-page section[id] {
145+
scroll-margin-top: 4rem;
146+
}
147+
148+
body:has([data-granite-banner]) .integrations-page section[id] {
149+
scroll-margin-top: calc(var(--fd-banner-height, 3rem) + 4rem);
150+
}
151+
152+
/* Integration detail page: Add padding-top when banner exists */
153+
body:has([data-granite-banner]) .integration-detail-page {
154+
padding-top: calc(var(--fd-banner-height, 3rem) + 1rem) !important;
155+
}
156+
157+
/* Integration detail page: Default padding (no banner) */
158+
.integration-detail-page {
159+
padding-top: 1rem;
160+
}
161+
127162
/* Remove ALL left whitespace from navbar to fill screen edge */
128163
body > div > nav,
129164
body > div > header,

app/integrations/[...slug]/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export default async function Page(props: {
2525
const path = `content/integrations${page.url.replace('/integrations/', '/')}.mdx`;
2626

2727
return (
28-
<>
28+
<div className="integration-detail-page">
2929
<div
3030
className="container rounded-xl border mt-5 py-12 md:px-8"
3131
style={{
@@ -141,7 +141,7 @@ export default async function Page(props: {
141141
</div>
142142
</div>
143143
</article>
144-
</>
144+
</div>
145145
);
146146
}
147147

app/integrations/page.client.tsx

Lines changed: 327 additions & 0 deletions
Large diffs are not rendered by default.

app/integrations/page.tsx

Lines changed: 2 additions & 252 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)