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 -5
View File
@@ -29,8 +29,13 @@ export default function Counter(props) {
export function IslandsSection() {
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
xmlns="http://www.w3.org/2000/svg"
class="icon icon-tabler icon-tabler-beach text-fresh"
@@ -56,9 +61,8 @@ export function IslandsSection() {
JavaScript only where needed.
</p>
<p>
Because it's{" "}
<a href="https://preactjs.com/" class="underline">Preact</a>, you
get best-in-class performance, plus the convenience of{" "}
Because it's Preact, you get best-in-class performance, plus the
convenience of{" "}
<a href="https://preactjs.com/guide/v10/signals/" class="underline">
Signals
</a>.