Change side-by-side sections to sticky (#2445)

This commit is contained in:
Josh Collinsworth
2024-05-22 12:08:41 -05:00
committed by GitHub
parent cda9bdec6f
commit 8ef3e89a8c
14 changed files with 186 additions and 44 deletions
+9 -4
View File
@@ -35,8 +35,13 @@ export const Recipes = () => (
export function PartialsSection() {
return (
<PageSection>
<SideBySide mdColSplit="3/2" lgColSplit="3/2" reverseOnDesktop={true}>
<div class="flex flex-col gap-4">
<SideBySide
mdColSplit="3/2"
lgColSplit="3/2"
reverseOnDesktop={true}
class="!items-start"
>
<div class="flex flex-col gap-4 md:sticky md:top-4">
<svg
role="img"
alt="Arrows transferring data down "
@@ -62,8 +67,8 @@ export function PartialsSection() {
<SectionHeading>Stream HTML straight from the server</SectionHeading>
<p>
Fresh Partials let you fetch HTML and update only the parts of the
page that need to change, without reloading the entire page.
Fresh Partials let you fetch HTML and slot it directly into the
page, without a full page reload.
</p>
<FancyLink href="/docs/concepts/partials" class="mt-4">
Learn more about Partials