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
+6 -4
View File
@@ -16,8 +16,8 @@ const serverCode = `export default function HomePage() {
export function RenderingSection() {
return (
<PageSection>
<SideBySide mdColSplit="2/3" lgColSplit="2/3">
<div class="flex flex-col gap-4">
<SideBySide mdColSplit="2/3" lgColSplit="2/3" 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-atom text-fresh"
@@ -41,8 +41,10 @@ export function RenderingSection() {
Build fast apps fast
</SectionHeading>
<p>
Fresh routes are dynamically server-rendered Preact components, so
there's zero JavaScript shipped to the browser by default.
Fresh routes are dynamically server-rendered{" "}
<a href="https://preactjs.com/" class="underline">Preact</a>{" "}
components, so there's zero JavaScript shipped to the browser by
default.
</p>
<p>Simple to write; fast to run.</p>
</div>