fix: auto scroll on link

This commit is contained in:
Maze Winther
2026-03-04 16:53:04 +01:00
parent ed8815c755
commit 5ca2de25c6
+9 -1
View File
@@ -113,7 +113,15 @@ export default function BrandPage() {
description={
<>
Download OpenCut brand assets for use in your projects.{" "}
<Link href="#guidelines" className="underline underline-offset-4">
<Link
href="#guidelines"
className="underline underline-offset-4"
onClick={() =>
document
.getElementById("guidelines")
?.scrollIntoView({ behavior: "smooth" })
}
>
Read the brand guidelines.
</Link>
</>