How peterargueta/qr works
Project type and purpose
• This is a single-page, static web application built with React and Vite.
File structure
• Top-level:
• README.md – project description, features, stack
• package.json / package-lock.json – dependencies, scripts
• vite.config.js – build/dev-server configuration
• src/ – React source code
• dist/ – production build artifacts (index.html, CSS, JS, assets)
• node_modules/ – installed libraries
• src/ layout:
• main.jsx – React entry point, mounts App component
• App.jsx – root component (theme switch, high-level layout)
• components/QRGenerator.jsx + QRGenerator.css – the QR code generator UI logic and styling
README for additional insights
• Core library: qrcode.react – renders a Canvas or SVG QR
• Theme: automatic light/dark based on OS
• Deployment: static hosting (GitHub Pages or any static file server)