This project is a React-based web application that showcases the MacBook Pro using 3D rendering and animations. It features a responsive design with a navigation bar and a 3D model of a MacBook Pro that users can interact with.
- Interactive 3D MacBook Pro model
- Responsive navigation bar with Apple-style design
- Scroll-based animations
- Environment mapping for realistic rendering
- Custom typography and styling
- React
- React Three Fiber (@react-three/fiber)
- React Three Drei (@react-three/drei)
- Tailwind CSS
Before you begin, ensure you have the following installed:
- Node.js (v14.0.0 or later)
- npm (v6.0.0 or later)
-
Clone the repository:
git clone https://github.com/your-username/react-macbook-pro-showcase.git
-
Navigate to the project directory:
cd react-macbook-pro-showcase
-
Install the dependencies:
npm install
To run the development server:
npm start
The application will be available at http://localhost:3000
.
App.js
: Main component containing the layout and 3D canvasNavBar.js
: Navigation bar componentMac.js
: 3D MacBook Pro model and animations (not included in the provided code snippet)style.css
: Custom styles for the application
- To modify the 3D model or animations, edit the
Mac.js
file. - To change the navigation items or styling, update the
NavBar
component inApp.js
. - Adjust the main content and styling in the
App
component withinApp.js
.
Contributions are welcome! Please feel free to submit a Pull Request.
This project is open source and available under the MIT License.
- 3D model and environment textures from [source]
- Inspiration and design cues from Apple's official website