Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion apps/web/src/components/landing-sections/navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,13 @@ const Navbar = () => {
}
});

const scrollToTop = () => {
window.scrollTo({
top: 0,
behavior: "smooth"
})
}

const links = [
{ name: "Pricing", href: "/pricing" },
{ name: "Testimonials", href: "/testimonials" },
Expand Down Expand Up @@ -78,7 +85,7 @@ const Navbar = () => {
>
{isOpen ? <X size={28} /> : <Menu size={28} />}
</button>
<div className="text-xl md:text-2xl font-medium tracking-tighter flex items-center gap-2">
<div className="text-xl md:text-2xl font-medium tracking-tighter flex items-center gap-2 cursor-pointer" onClick={scrollToTop}>
<div className="w-8 md:w-10 aspect-square overflow-hidden relative">
<Image
src="/assets/logo.svg"
Expand Down