Skip to content

Commit

Permalink
feat: add smooth scrolling (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
hamedtkd authored Mar 31, 2024
1 parent 1fe7450 commit 9e362e8
Show file tree
Hide file tree
Showing 13 changed files with 296 additions and 38 deletions.
211 changes: 207 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,23 @@
"build": "tsc && vite build",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview",
"predeploy" : "npm run build",
"deploy" : "gh-pages -d build"
"predeploy": "npm run build",
"deploy": "gh-pages -d build"
},
"dependencies": {
"@studio-freight/lenis": "^1.0.42",
"@studio-freight/react-lenis": "^0.0.46",
"clsx": "^2.1.0",
"gsap": "^3.12.5",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-hash-link": "^2.4.3",
"tailwind-merge": "^2.2.2"
},
"devDependencies": {
"@types/react": "^18.2.66",
"@types/react-dom": "^18.2.22",
"@types/react-router-hash-link": "^2.4.9",
"@typescript-eslint/eslint-plugin": "^7.2.0",
"@typescript-eslint/parser": "^7.2.0",
"@vitejs/plugin-react": "^4.2.1",
Expand Down
13 changes: 8 additions & 5 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
import Home from "components/Home";
import "./App.css";
import { Header, Footer } from "layout";
import { ReactLenis } from "@studio-freight/react-lenis";

function App() {
return (
<>
<Header />
<main>
<Home />
</main>
<Footer />
<ReactLenis root>
<Header />
<main>
<Home />
</main>
<Footer />
</ReactLenis>
</>
);
}
Expand Down
Loading

0 comments on commit 9e362e8

Please sign in to comment.