A mobile-optimized web application for iPhone that helps healthcare professionals calculate medication dosages safely and accurately.
- Mobile-First Design: Optimized for iPhone screens with touch-friendly interfaces
- PWA Ready: Can be embedded in iDevice view with offline functionality
- Safe Area Support: Handles iPhone notch and home indicator properly
- Touch Optimized: Minimum 44px touch targets for accessibility
- Responsive: Works in both portrait and landscape orientations
- Next.js 14 with App Router
- Tailwind CSS for mobile-first styling
- Static export for offline embedding
- TypeScript support
- Node.js 18+ and npm
- Install dependencies:
npm install- Run the development server:
npm run dev- Open http://localhost:3000 in your browser
To create a static export for embedding in iDevice view:
npm run buildThe static files will be generated in the out/ directory.
- Viewport Configuration: Proper meta tags for iPhone display
- Touch Targets: All interactive elements meet 44px minimum size
- Safe Areas: Support for iPhone notch and home indicator
- Orientation Handling: Responsive design for portrait/landscape
- Performance: Optimized for mobile Safari
- PWA Features: App-like experience when embedded
src/
├── app/
│ ├── layout.js # Root layout with mobile viewport
│ ├── page.js # Main calculator interface
│ └── globals.css # Global styles with mobile optimizations
├── components/
│ └── MobileLayout.js # iPhone-optimized container
The project uses:
- Mobile-first Tailwind CSS configuration
- Custom touch-friendly component classes
- Responsive design utilities
- Safe area inset handling for modern iPhones