Skip to content
This repository was archived by the owner on Mar 9, 2023. It is now read-only.

morphiezy/qr-code-component

Repository files navigation

Frontend Mentor - QR code component solution

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.

Table of contents

Note: Delete this note and update the table of contents based on what sections you keep.

Overview

Screenshot

Links

My process

Built with

What I learned

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

Author

Frontend Mentor - Yardan

About

QR Code component using React x Tailwind

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published