A React-based Instagram clone that allows users to create, view, like, and comment on posts. Features include a profile header, image grid, post modals, and more.
- Profile Header: Displays user profile information including profile picture, name, posts, followers, and following count.
- Image Grid: Shows a grid of user posts with options to like, comment, and edit posts.
- Post Modals: Allows users to create new posts and update existing ones.
- Comments: Users can add comments to posts and view all comments in a modal.
- Likes: Users can like posts and see the like count.
- Clone the repository:
git clone https://github.com/ArisLooi/instagram-clone.git
- Navigate to the project directory:
cd instagram-clone
- Install dependencies:
npm install
- Start the development server:
npm start
- Profile Header: Displays user profile information.
- Image Grid: Shows user posts with options to like, comment, and edit.
- Add Post: Click the plus icon to open the modal and create a new post.
- Edit Post: Click the pencil icon on a post to edit it.
- Like Post: Click the thumbs-up icon to like a post.
- Comment on Post: Click the comment icon to open the comment modal and add a comment.
The main component that sets up the profile context and renders the profile header, image grid, and modals.
Redux slice for managing posts, including actions for creating, updating, deleting, liking, and commenting on posts.
Component for creating new posts.
Component for adding comments to posts.
Component for displaying the image grid with options to like, comment, and edit posts.
Component for displaying the profile header with user information.
Component for updating existing posts.
Component for rendering icon buttons.