29 - Dec - 2022
React Fitness - Landing Page 🔗
- Vite
- React
- TypeScript
- Tailwind CSS
- Framer Motion
Host at Cloud Flare
- tailwind documentation extension (
ctrl + alt + t
) vit
&ts
config for shot file name import- config tailwind for custom colors, fonts, scree sizes & images...
- file extension must be
.ts
or.tsx
instead of.js
useMediaQuery.ts
hook is only detect for, it mobile size screen or not?
- go to ==>
vite.config.ts
file & past this...- for convenient to import files
import path from 'path';
resolve: {
alias: [{ find: '@', replacement: path.resolve(__dirname, 'src') }],
},
- go to ==>
tsconfig.json
file & past this...- for convenient to import files
"paths" : {
"@/*" : ["./src/*"],
},