React MacBook Pro Showcase

image

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.

Features

  • Interactive 3D MacBook Pro model
  • Responsive navigation bar with Apple-style design
  • Scroll-based animations
  • Environment mapping for realistic rendering
  • Custom typography and styling

Technologies Used

  • React
  • React Three Fiber (@react-three/fiber)
  • React Three Drei (@react-three/drei)
  • Tailwind CSS

Prerequisites

Before you begin, ensure you have the following installed:

  • Node.js (v14.0.0 or later)
  • npm (v6.0.0 or later)

Installation

  1. Clone the repository:

    git clone https://github.com/your-username/react-macbook-pro-showcase.git
    
  2. Navigate to the project directory:

    cd react-macbook-pro-showcase
    
  3. Install the dependencies:

    npm install
    

Usage

To run the development server:

npm start

The application will be available at http://localhost:3000.

Project Structure

  • App.js: Main component containing the layout and 3D canvas
  • NavBar.js: Navigation bar component
  • Mac.js: 3D MacBook Pro model and animations (not included in the provided code snippet)
  • style.css: Custom styles for the application

Customization

  • To modify the 3D model or animations, edit the Mac.js file.
  • To change the navigation items or styling, update the NavBar component in App.js.
  • Adjust the main content and styling in the App component within App.js.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is open source and available under the MIT License.

Acknowledgements

  • 3D model and environment textures from [source]
  • Inspiration and design cues from Apple's official website