fix: auto scroll on link

This commit is contained in:
Maze Winther 2026-03-04 16:53:04 +01:00
parent ed8815c755
commit 5ca2de25c6
1 changed files with 9 additions and 1 deletions

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>
</>