A modern, responsive clone of Apple's website built with React, Vite, and Tailwind CSS. Features pixel-perfect UI components, smooth animations, and protected images.
- π¨ Pixel-Perfect Design - Matches Apple's aesthetic with precise spacing, typography, and colors
- π± Fully Responsive - Optimized for all screen sizes from mobile to 4K displays
- πΌοΈ Protected Images - Anti-drag, anti-download, and anti-right-click image protection
- β‘ Lightning Fast - Built with Vite for instant hot module replacement
- π Smooth Animations - Hover effects, transitions, and transforms
- π§© Component-Based - Modular, reusable React components
- π― Modern Footer - Comprehensive footer with all Apple sections and legal text
- π Product Grid - Modern card-based product showcase with shadows and hover effects
- Node.js 16.x or higher
- npm or yarn package manager
-
Clone the repository
git clone https://github.com/ChamathDilshanC/Apple-Web-Clone.git cd Apple-Web-Clone -
Install dependencies
npm install
-
Start development server
npm run dev
-
Open your browser Navigate to
http://localhost:5173
npm run buildThe optimized production build will be in the dist/ folder.
npm run previewApple-Web-Clone/
βββ public/ # Static assets
β βββ Iphone17pro.png
β βββ Iphone17Air.png
β βββ MacBook-Air-M3-2.png
β βββ MacBook_Air_15.png
β βββ MacBook-Air-M3-1.png
β βββ ...
βββ src/
β βββ components/ # React components
β β βββ Header.jsx # Navigation bar
β β βββ Hero.jsx # iPhone 17 Pro hero section
β β βββ IPhoneAirSection.jsx # iPhone Air showcase
β β βββ MacBookProSection.jsx # MacBook with decorative images
β β βββ ProductGrid.jsx # Modern product cards
β β βββ Footer.jsx # Comprehensive footer
β βββ assets/ # Additional assets
β βββ App.jsx # Main app component
β βββ main.jsx # App entry point
β βββ index.css # Global styles + Tailwind
βββ index.html
βββ vite.config.js
βββ tailwind.config.cjs
βββ postcss.config.cjs
βββ package.json
- Frontend Framework: React 18.x
- Build Tool: Vite 5.x
- Styling: Tailwind CSS 3.x
- Language: JavaScript (ES6+)
- Package Manager: npm
Modern navigation bar with Apple logo and menu items. Sticky positioning for seamless scrolling.
Full-width hero featuring the iPhone 17 Pro with responsive typography and call-to-action buttons.
Showcase section with side-positioned image and descriptive text. Features protected image implementation.
Multi-image display with center MacBook flanked by decorative left/right images using absolute positioning.
Responsive 2-column grid (1 column on mobile) featuring:
- Modern card design with rounded corners
- Box shadows and hover scale effects
- Protected images with event handlers
- Alternating light/dark themes
Comprehensive footer matching Apple.com with:
- Legal disclaimers and trade-in information
- Five-column navigation (responsive)
- Shop and Learn, Account, Entertainment sections
- Apple Store, Business, Education, Healthcare, Government
- Apple Values and About Apple
- Bottom bar with legal links and country selector
All product images include multiple protection layers:
// Protection container
onContextMenu={(e) => e.preventDefault()}
onDragStart={(e) => e.preventDefault()}
// Protected image
className="protected-image"
draggable="false"CSS classes provide cross-browser compatibility:
protected-image-container- Wrapper protectionprotected-image- Image-level protection with vendor prefixes
- Mobile: < 640px
- Tablet: 640px - 768px
- Desktop: 768px - 1024px
- Large Desktop: 1024px - 1280px
- XL Desktop: 1280px+
- Background:
#f5f5f7,#fbfbfd - Black:
#000000,#1d1d1f - Text Gray:
#6e6e73,#86868b - Link Blue:
#06c - Border:
#d2d2d7
Contributions are welcome! Please feel free to submit a Pull Request.
- 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
This project is licensed under the MIT License - see the LICENSE file for details.
Chamath Dilshan C
- GitHub: @ChamathDilshanC
- Design inspiration from Apple.com
- Built as an educational project to practice modern web development
- Special thanks to the React and Tailwind CSS communities
If you have any questions or run into issues, please open an issue on GitHub.
Made with β€οΈ and β