QR Code Generator
Features
- Responsive UI: Flexbox layout for seamless design across devices.
- QR Code Generation: Instantly create QR codes based on user input.
- Download and Share Options: Allows users to download the QR code or copy it to the clipboard.
- Accessibility Support:
aria-label
added for better screen reader support.
- Tailwind CSS Integration: For efficient styling and customization.
Technologies Used
- React.js
- Tailwind CSS
- QRCode.react Library
Installation
Git Commands
The following commands will help you set up and push your code to a GitHub repository:
- Initialize a new Git repository: This creates a local Git repository in your project folder.
- Add all files to the staging area: This stages all changes (new files, modifications, deletions) for the next commit.
- Commit the changes: This saves the staged changes to your local repository with a message describing the update.
- Add the remote repository: This connects your local repository to a remote one on GitHub.
- Push the code to the main branch: This uploads your code to the specified branch in the remote repository.
# Initialize a new git repository
git init
# Add all files to the staging area
git add .
# Commit the changes
git commit -m "Initial commit"
# Add the remote repository
git remote add origin https://github.com/yourusername/qr-code-generator.git
# Push the code to the main branch
git push -u origin main
Clone the repository:
git clone https://github.com/yourusername/qr-code-generator.git
Navigate to the project directory:
cd qr-code-generator
Install dependencies:
npm install
Run the application:
npm start
Open your browser and visit http://localhost:3000
Usage
- Enter text or a URL in the input field.
- Click the Generate QR Code button.
- Download the QR code or copy it to the clipboard.
Contributing
Contributions are welcome! Feel free to fork the repository and submit pull requests.