A mobile-optimized React application for viewing PDF documents in Polish and English.
- 🌐 Language selection (Polish/English)
- 📱 Mobile-optimized PDF viewer
- 🎨 Beautiful gradient design
- ⚡ Fast loading with Vite
- 📄 Automatic PDF width adjustment for mobile devices
- Install dependencies:
npm install- Start the development server:
npm run dev- Open http://localhost:5173 in your browser
Build the project:
npm run buildThe built files will be in the dist folder.
-
Push to GitHub:
git init git add . git commit -m "Initial commit" git remote add origin <your-github-repo-url> git push -u origin main
-
Connect to Netlify:
- Go to netlify.com
- Click "Add new site" → "Import an existing project"
- Choose "GitHub" and select your repository
- Configure build settings:
- Build command:
npm run build - Publish directory:
dist
- Build command:
- Click "Deploy site"
-
Install Netlify CLI:
npm install -g netlify-cli
-
Build and deploy:
npm run build netlify deploy --prod
- Build the project:
npm run build - Go to app.netlify.com/drop
- Drag the
distfolder to the page
pizza-connect/
├── public/
│ ├── Gdańsk Pizza Connect 2025 (PL).pdf
│ └── Gdańsk Pizza Connect 2025 (ENG).pdf
├── src/
│ ├── components/
│ │ ├── LanguageSelector.jsx
│ │ ├── LanguageSelector.css
│ │ ├── PDFViewer.jsx
│ │ └── PDFViewer.css
│ ├── App.jsx
│ ├── App.css
│ └── index.css
└── package.json
- React - UI library
- Vite - Build tool
- react-pdf - PDF rendering
- pdfjs-dist - PDF.js library
The application is optimized for mobile devices with:
- Responsive design
- Touch-friendly buttons
- Automatic PDF width adjustment
- Optimized loading for mobile networks