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-depsis used to bypass the peer dependency check.@react-three/fiberis a react renderer for three.js@react-three/dreiis a collection of useful helpers and abstractions for react-three-fibermaathis a library for math functions, since there will be geometry envoledreact-tiltis a parallax hover effect for reactreact-vertical-timeline-componentis a vertical timeline for react, similar to linkedin's timelineframer-motionis a library for animationsreact-router-domis a library for routing in react
unzipthe public.zip to replace project public folder,unzipthe src.zip to replace project src folderunzipthe components.zip to replace project components folder
cd ~/Portfolio_x/
npm create vite@latest ./ -- --template react- install packages
- tailwindcss:
npm install -D tailwindcssnpx tailwindcss init
- install older packages:
npm install --legacy-peer-deps@react-three/fiber, react based 3js libary@react-three/dreimaath, math libraryreact-tilt, hovering animationreact-vertical-timeline-componentreact-vertical-timeline-component@emailjs/browserframer-motionreact-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.jsstore all the constants
npm run dev- issue 1: [ERROR] Could not resolve "three"
npm install three