Skip to content

Commit

Permalink
fix SEO
Browse files Browse the repository at this point in the history
  • Loading branch information
clementroche committed Jun 6, 2024
1 parent f06d31f commit 435a966
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 16 deletions.
6 changes: 3 additions & 3 deletions website/pages/home/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ export default function Home() {
seo={{
title: 'Lenis – Get smooth or die trying',
description:
'A smooth scroll library fresh out of the Studio Freight Darkroom',
'A smooth scroll library fresh out of the darkroom.engineering.',
}}
className={s.home}
>
Expand Down Expand Up @@ -257,10 +257,10 @@ export default function Home() {
<p className="p-s">A smooth scroll library</p>
</HeroTextIn>
<HeroTextIn introOut={introOut}>
<p className="p-s">fresh out of the darkroom</p>
<p className="p-s">fresh out of darkroom.engineering</p>
</HeroTextIn>
<HeroTextIn introOut={introOut}>
<p className="p-s">designed by Studio Freight</p>
<p className="p-s">website designed by Studio Freight</p>
</HeroTextIn>
</h1>
<Button
Expand Down
40 changes: 27 additions & 13 deletions website/pages/snap/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import cn from 'clsx'
import { CustomHead } from 'components/custom-head'
import { useEffect, useRef } from 'react'
import Snap from '../../../dist/lenis-snap.mjs'
import Lenis from '../../../dist/lenis.mjs'
Expand All @@ -10,6 +11,9 @@ export default function Page() {
useEffect(() => {
const lenis = new Lenis({
lerp: 0.1,
prevent: (node) => {
node.nodeName === 'VERCEL-LIVE-FEEDBACK'
},
})
window.lenis = lenis

Expand Down Expand Up @@ -49,18 +53,28 @@ export default function Page() {
}, [])

return (
<div className={s.page}>
{Array.from({ length: 4 }).map((_, index) => (
<section
key={index}
className={cn(s.section, s[`section-${index + 1}`])}
ref={(node) => {
sectionRefs.current[index] = node
}}
>
<div className={s.inner}></div>
</section>
))}
</div>
<>
<CustomHead
{...{
title: 'Lenis – Get smooth or die trying',
description:
'A smooth scroll library fresh out of darkroom.engineering.',
}}
/>

<div className={s.page}>
{Array.from({ length: 4 }).map((_, index) => (
<section
key={index}
className={cn(s.section, s[`section-${index + 1}`])}
ref={(node) => {
sectionRefs.current[index] = node
}}
>
<div className={s.inner}></div>
</section>
))}
</div>
</>
)
}

0 comments on commit 435a966

Please sign in to comment.