since it's a personal portfolio, I want to make it pretty, so I choose to follow a tutorial.
but remember you need to learn vanilla css first!
npm install --legacy-peer-deps @react-three/fiber @react-three/drei maath react-tilt react-vertical-timeline-component @emailjs/browser framer-motion react-router-dom
--legacy-peer-deps
is used to bypass the peer dependency check.@react-three/fiber
is a react renderer for three.js@react-three/drei
is a collection of useful helpers and abstractions for react-three-fibermaath
is a library for math functions, since there will be geometry envoledreact-tilt
is a parallax hover effect for reactreact-vertical-timeline-component
is a vertical timeline for react, similar to linkedin's timelineframer-motion
is a library for animationsreact-router-dom
is a library for routing in react
unzip
the public.zip to replace project public folder,unzip
the src.zip to replace project src folderunzip
the components.zip to replace project components folder
cd ~/Portfolio_x/
npm create vite@latest ./ -- --template react
- install packages
- tailwindcss:
npm install -D tailwindcss
npx tailwindcss init
- install older packages:
npm install --legacy-peer-deps
@react-three/fiber
, react based 3js libary@react-three/drei
maath
, math libraryreact-tilt
, hovering animationreact-vertical-timeline-component
react-vertical-timeline-component
@emailjs/browser
framer-motion
react-router-dom
- tailwindcss:
npm install --legacy-peer-deps @react-three/fiber @react-three/drei maath react-tilt react-vertical-timeline-component @emailjs/browser framer-motion react-router-dom
- delete app.css
- modify app.jsx vet deafult structure
- utils/motion.js framer-motion utils
constant/index.js
store all the constants
npm run dev
- issue 1: [ERROR] Could not resolve "three"
npm install three