Skip to content

Commit

Permalink
fix(site): pricing page anchors to bottom of page (#1728)
Browse files Browse the repository at this point in the history
<!-- Please make sure there is an issue that this PR is correlated to. -->

Fixes WEB-248

## Changes

<!-- If there are frontend changes, please include screenshots. -->
  • Loading branch information
jog1t committed Jan 8, 2025
1 parent d9d16f7 commit 6903892
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions site/src/app/(v2)/(framer)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@ export const metadata: Metadata = {
};

export default function IndexPage() {
// an empty div at the top of the page is a workaround for a bug in Next.js that causes the page to jump when the user navigates to it
// https://github.com/vercel/next.js/discussions/64534
return (
<>
<div />
<FancyHeader />
<FramerIndexPage />
</>
Expand Down
3 changes: 3 additions & 0 deletions site/src/app/(v2)/(framer)/pricing/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@ import { FramerPricingPage } from '@/components/framer/PricingPage';
import { FancyHeader } from '@/components/v2/FancyHeader';

export default function PricingPage() {
// an empty div at the top of the page is a workaround for a bug in Next.js that causes the page to jump when the user navigates to it
// https://github.com/vercel/next.js/discussions/64534
return (
<>
<div />
<FancyHeader active='pricing' />
<FramerPricingPage />
</>
Expand Down
3 changes: 3 additions & 0 deletions site/src/app/(v2)/(framer)/sales/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@ import { FramerSalesPage } from '@/components/framer/SalesPage';
import { FancyHeader } from '@/components/v2/FancyHeader';

export default function SalesPage() {
// an empty div at the top of the page is a workaround for a bug in Next.js that causes the page to jump when the user navigates to it
// https://github.com/vercel/next.js/discussions/64534
return (
<>
<div />
<FancyHeader />
<div className='bg-black pb-20 pt-32'>
<FramerSalesPage />
Expand Down

0 comments on commit 6903892

Please sign in to comment.