This is a solution to the QR code component challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.
Note: Delete this note and update the table of contents based on what sections you keep.
- Solution URL: Frontend Mentor - QR CODE
- Live Site URL: QR CODE by Vercel
- HTML5 markup
- Flexbox
- React - JS library
- Tailwind CSS - CSS Framework
- Vite - Building Tools & Bundler
- Vercel - PaaS
During the challenge process , i've learned how to using tailwind css in our project. We can start from install tailwind :
> npm install -D tailwindcss postcss autoprefixer
> npx tailwindcss init
the second command will create postcss.config.cjs and tailwind.config.cjs automaticly.
After two configuration files is created, we can start to config this file using the code below. The first code for postcss.config.cjs and the second for tailwind.config.cjs.
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
}
}module.exports = {
content: [
"./index.html",
"./src/**/*.{jsx,js}"
],
theme: {
extend: {},
},
plugins: [],
}And don't forget to config your main css file
@tailwind base;
@tailwind components;
@tailwind utilities;After you finished tailwind configuration you can start build process, it depeden on what package manager you are using.
pnpm run dev
Frontend Mentor - Yardan
