An open API service indexing awesome lists of open source software.

https://github.com/slygriyrsk/apple-web-clone

🍏 This Apple web clone is crafted to capture the essence of the original site, featuring smooth animations and eye-catching custom designs. ✨🎨
https://github.com/slygriyrsk/apple-web-clone

gsap javascript-mastery react sentry tailwindcss threejs

Last synced: 4 months ago
JSON representation

🍏 This Apple web clone is crafted to capture the essence of the original site, featuring smooth animations and eye-catching custom designs. ✨🎨

Awesome Lists containing this project

README

          

![Screenshot 2024-08-17 010825](https://github.com/user-attachments/assets/38f77dcb-989c-4de1-a6f9-e58d7f5b4e11)

# 🍏 Apple Website Clone

A modern clone of Apple's website built using React, GSAP, Three.js, and Tailwind CSS. This project demonstrates responsive design, animations, and interactive 3D elements.

## Features ✨

- **Navbar**: A responsive and stylish navigation bar.
- **Hero Section**: Eye-catching hero section with smooth animations.
- **Features Section**: Highlighting key features with GSAP animations.
- **Interactive Elements**: Engaging 3D graphics using Three.js.

## Technologies Used 🛠️

- **React**: Front-end library for building user interfaces.
- **GSAP**: Animation library for creating smooth and complex animations.
- **Three.js**: JavaScript library for creating 3D graphics.
- **Tailwind CSS**: Utility-first CSS framework for rapid UI development.
- **Sentry**: Error tracking and performance monitoring tool.

## Installation 🧑‍💻

### Prerequisites

Make sure you have the following installed:

- [Node.js](https://nodejs.org/) (version 14 or later)
- [npm](https://www.npmjs.com/) (comes with Node.js) or [Yarn](https://classic.yarnpkg.com/en/docs/install/)

### Clone the Repository

First, clone the repository:

```bash
git clone https://github.com/Slygriyrsk/apple-web-clone.git
cd apple-web-clone
```

### Install Dependencies

Use npm or Yarn to install the necessary packages:

With npm:

```bash
npm install
```

With Yarn:

```bash
yarn install
```

### Environment Variables 🌍

Create a `.env` file in the root directory and add the necessary environment variables. Example:

```bash
REACT_APP_SENTRY_DSN=your_sentry_dsn
```

Replace `your_sentry_dsn` with your actual Sentry DSN.

## Development 🚀

To start the development server, run:

With npm:
```bash
npm run dev
```

With Yarn:
```bash
yarn start
```

Open `http://localhost:5173` in your browser to view the application.

![Screenshot 2024-08-17 010949](https://github.com/user-attachments/assets/c9a1d4ac-7ba1-4b59-bb8a-b7225133c20f)

## Building for Production 🔧

To create a production build, run:

With npm:

```bash
npm run build
```

With Yarn:

```bash
yarn build
```

The production build will be generated in the `build` directory.

## Deployment 🌐
![Screenshot 2024-08-17 011014](https://github.com/user-attachments/assets/00e9a689-7014-4fcf-bfd7-ca57302b2307)

### Hosting on Vercel/Netlify

Deploy your application to platforms like Vercel or Netlify by connecting your GitHub repository and following their deployment guides.

### Sentry Integration

To monitor errors and performance, integrate Sentry into your React application:

1. **Install the Sentry SDK:**

With npm:

```bash
npm install @sentry/react @sentry/tracing
```

With Yarn:

```bash
yarn add @sentry/react @sentry/tracing
```

2. **Initialize Sentry in your `src/index.js` file:**

```javascript
import * as Sentry from "@sentry/react";
import { Integrations } from "@sentry/tracing";

Sentry.init({
dsn: process.env.REACT_APP_SENTRY_DSN,
integrations: [new Integrations.BrowserTracing()],
tracesSampleRate: 1.0, // Adjust this value as needed
});
```

3. **Deploy your application as described above.**

## Example Code Snippets 📋

### Navbar Component

Here's a simple example of a responsive Navbar using Tailwind CSS:

```jsx
import React from 'react';

const Navbar = () => {
return (


Apple Clone



);
};

export default Navbar;
```

### Hero Section with GSAP Animation

Using GSAP for animations in the Hero section:

```jsx
import React, { useEffect } from 'react';
import { gsap } from 'gsap';

const HeroSection = () => {
useEffect(() => {
gsap.from(".hero-title", { duration: 2, opacity: 0, y: -50 });
}, []);

return (

Welcome to the Apple Clone



);
};

export default HeroSection;
```

![Screenshot 2024-08-17 011058](https://github.com/user-attachments/assets/ce7d855c-c8df-4aff-8695-2f1a4ec547e8)

## Contributing 🤝

We welcome contributions from the community! Feel free to [open issues](https://github.com/Slygriyrsk/apple-web-clone/issues), [submit pull requests](https://github.com/Slygriyrsk/apple-web-clone/pulls), or offer feedback. Your input is invaluable and appreciated.

## License 📜

This project is licensed under the MIT License. See the LICENSE file for more details.

## Acknowledgments 🙌

- **[React](https://reactjs.org/)**: For its efficient and powerful UI development capabilities.
- **[GSAP](https://gsap.com/)**: For its advanced animation capabilities.
- **[Three.js](https://threejs.org/)**: For enabling interactive 3D graphics.
- **[Tailwind CSS](https://tailwindcss.com/)**: For its utility-first approach to CSS design.
- **[Sentry](https://sentry.io/)**: For providing robust error tracking and performance monitoring.