A stunning, responsive recreation of Apple's iPhone showcase website built with React and Vite. This project demonstrates modern web development techniques while capturing the sleek design and smooth animations characteristic of Apple's web presence.
- Pixel-Perfect Design: Faithful recreation of Apple's design language and aesthetics
- Smooth Animations: Fluid scroll-triggered animations and micro-interactions
- 3D Product Showcase: Interactive 3D iPhone models and product demonstrations
- Responsive Layout: Optimized for all devices from mobile to desktop
- Performance Optimized: Built with Vite for lightning-fast development and production builds
- Modern React: Uses latest React features and hooks for optimal performance
- Accessibility: WCAG compliant with proper ARIA labels and keyboard navigation
Make sure you have the following installed on your machine:
- Node.js (version 16 or higher)
- npm, yarn, or pnpm package manager
- Clone the repository:
git clone https://github.com/ItsMeYash777/Apple-iPhone.git
cd Apple-iPhone- Install dependencies:
npm install
# or
yarn install
# or
pnpm install- Start the development server:
npm run dev
# or
yarn dev
# or
pnpm dev- Open your browser and navigate to
http://localhost:5173to see the application.
- React - JavaScript library for building user interfaces
- Vite - Next generation frontend tooling
- JavaScript/ES6+ - Modern JavaScript features
- CSS3 - Advanced styling and animations
- Three.js - 3D graphics library (if used for 3D models)
- GSAP - Professional animation library (if used)
Apple-iPhone/
βββ public/ # Static assets
β βββ images/ # iPhone images and icons
β βββ models/ # 3D models (if applicable)
βββ src/ # Source code
β βββ components/ # React components
β β βββ Hero/ # Hero section component
β β βββ Features/ # Features showcase
β β βββ Gallery/ # Image gallery
β β βββ Navigation/ # Navigation components
β βββ styles/ # CSS/SCSS files
β βββ hooks/ # Custom React hooks
β βββ utils/ # Utility functions
β βββ App.jsx # Main App component
β βββ main.jsx # Entry point
βββ index.html # HTML template
βββ package.json # Dependencies and scripts
βββ vite.config.js # Vite configuration
βββ README.md
- Eye-catching iPhone showcase with smooth animations
- Dynamic text animations and call-to-action buttons
- Responsive background and layout
- Interactive feature demonstrations
- Scroll-triggered animations
- Technical specifications display
- High-resolution iPhone images
- Color variant switcher
- Zoom and pan functionality
- Detailed iPhone specs and features
- Comparison tables
- Interactive elements
# Start development server
npm run dev
# Build for production
npm run build
# Preview production build
npm run preview
# Lint code
npm run lint
# Fix linting issues
npm run lint:fixThe project uses Vite's default React configuration with potential customizations for:
- Asset optimization
- Build output customization
- Development server settings
- Plugin configurations
- Code Splitting: Lazy loading of components for better initial load times
- Image Optimization: Compressed and properly sized images
- Bundle Analysis: Optimized chunk sizes and dependencies
- Caching Strategies: Proper cache headers for static assets
- Tree Shaking: Elimination of unused code
The application is fully responsive across all device sizes:
- Mobile First: Optimized for mobile devices (320px+)
- Tablet: Enhanced experience for tablets (768px+)
- Desktop: Full-featured desktop experience (1024px+)
- Large Screens: Optimized for large displays (1440px+)
- Install Vercel CLI:
npm install -g vercel- Deploy:
vercel --prod- Build the project:
npm run build- Deploy the
distfolder to Netlify
- Install gh-pages:
npm install --save-dev gh-pages- Add deployment script to package.json:
{
"scripts": {
"deploy": "gh-pages -d dist"
}
}- Deploy:
npm run build && npm run deployContributions are welcome! Here's how you can contribute:
- Fork the project
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
- Follow React best practices and hooks patterns
- Maintain consistent code formatting
- Write meaningful commit messages
- Test responsiveness across devices
- Ensure accessibility standards are met
- None currently reported
- Add more iPhone models and variations
- Implement AR view functionality
- Add comparison tool between different models
- Include purchase flow integration
- Add dark mode support
- Implement user reviews and ratings
This project is licensed under the MIT License - see the LICENSE file for details.
This project is created for educational and portfolio purposes only. All Apple trademarks, logos, and product names are property of Apple Inc. This is not an official Apple website or product.
Yash - @ItsMeYash777
Project Link: https://github.com/ItsMeYash777/Apple-iPhone
- Apple Inc. for design inspiration
- React Team for the amazing library
- Vite Team for the excellent build tool
- The open-source community for various libraries and resources
β If you liked this project, please give it a star on GitHub!
π± "Think Different" - Apple