Skip to content

Commit bf4d506

Browse files
Merge pull request #888 from Arun-webcode/Qr-generator
Qr generator
2 parents adc8a90 + 09bd3cd commit bf4d506

19 files changed

+5681
-0
lines changed

01-qrcode-gen/.eslintrc.cjs

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
module.exports = {
2+
root: true,
3+
env: { browser: true, es2020: true },
4+
extends: [
5+
'eslint:recommended',
6+
'plugin:react/recommended',
7+
'plugin:react/jsx-runtime',
8+
'plugin:react-hooks/recommended',
9+
],
10+
ignorePatterns: ['dist', '.eslintrc.cjs'],
11+
parserOptions: { ecmaVersion: 'latest', sourceType: 'module' },
12+
settings: { react: { version: '18.2' } },
13+
plugins: ['react-refresh'],
14+
rules: {
15+
'react/jsx-no-target-blank': 'off',
16+
'react-refresh/only-export-components': [
17+
'warn',
18+
{ allowConstantExport: true },
19+
],
20+
},
21+
}

01-qrcode-gen/.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?

01-qrcode-gen/README.md

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# QR Code Generator
2+
3+
<a href = "https://qr-generator-webcode.netlify.app/" >For live link Click here</a>
4+
5+
This project is a QR Code Generator built using React. It allows users to input text, select the background colour, and adjust the dimensions to generate a QR code. The generated QR code can be downloaded as well.
6+
7+
## Features
8+
9+
- Input text to generate a QR code
10+
- Select background colour for the QR code
11+
- Adjust dimensions of the QR code
12+
- Download the generated QR code
13+
14+
## Technologies Used
15+
16+
- React
17+
- Tailwind CSS
18+
19+
## Installation
20+
21+
1. Clone the repository:
22+
23+
```bash
24+
- git clone https://github.com/arun-webcode/Reactjs-mini-projects/edit/main/01-qrcode-gen
25+
- cd qr-code-generator
26+
- npm install
27+
- npm run dev
28+
Note - Remember to add this code on tailwind.config.js file.
29+
/** @type {import('tailwindcss').Config} */
30+
export default {
31+
content: ["./index.html", "./src/**/*.{js,ts,jsx,tsx}"],
32+
darkMode: "class",
33+
theme: {
34+
extend: {},
35+
},
36+
plugins: [],
37+
};
38+
```
39+
40+
## Usage
41+
42+
1. Open the application in your browser.
43+
2. Enter the text you want to encode in the QR code.
44+
3. Select the background colour using the colour picker.
45+
4. Adjust the dimensions using the range input.
46+
5. Click on the "Generate" button to create the QR code.
47+
6. Download the generated QR code by clicking the "Download" button.
48+
49+
##Project Structure
50+
src/
51+
52+
├── components/
53+
│ ├── Header.jsx
54+
│ ├── InputBox.jsx
55+
│ ├── ExtraOptions.jsx
56+
57+
├── App.jsx
58+
├── index.css
59+
├── main.jsx
60+
└── index.html
61+
62+
<img src ="src\assets\qr-gen.jpg" />
63+
64+
Currently, two official plugins are available:
65+
66+
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
67+
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
68+
69+
Made By - @Arun-webcode

01-qrcode-gen/index.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<!doctype html>
2+
<html lang="en">
3+
4+
<head>
5+
<meta charset="UTF-8" />
6+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
7+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
8+
<title>QrcodeGen</title>
9+
</head>
10+
11+
<body>
12+
<div id="root"></div>
13+
<script type="module" src="/src/main.jsx"></script>
14+
</body>
15+
16+
</html>

0 commit comments

Comments
 (0)