Skip to content

The Twitter Clone project is a web application that mimics the functionality and design of the Twitter website. It includes features such as dark mode, loading posts, showing trends, and a responsive design.

License

Notifications You must be signed in to change notification settings

Abdelrahman-wahed/twitter-clone

Repository files navigation

Twitter Clone

Table of Contents

👋Introduction

The Twitter Clone project is a web application that mimics the functionality and design of the Twitter website. It includes features such as dark mode, loading posts, showing trends, and a responsive design.

🌟Features

  • Loading Posts: Users show loader spinner spinning when wait posts is loading.

  • Dark Mode: Users can switch between dark mode and lite mode .

  • showing Trends: Users can show Top of Trends in right screen .

  • View Nav Bar: Users can view Nav Bar in left Screen and in small screen traspher to icons.

🚀 Live project

Twitter Clone

📸 Screenshots

Dark + Wide

Lite + Wide

Dark + mobile

Dark + mobile

Lite + mobile*

Lite + mobile*

💡Technique Skills

  • TypeScript i used TypeScript for type safety
function Btn({children,style}:{ children:React.ReactNode,style?:string}) 
  • Reusable Button created reusable Button component like Btn.

function Btn({children,style}) {
    return (
      <button className={style?"btn w-fit": `btn bg-transparent hover:text-white duration-300 hover:bg-[rgb(96,165,250)] text-[rgb(96,165,250)] border-[2px] border-[rgb(96,165,250)]`}>
    {children}
  </button>
  )
}

export default Btn

  • Reusable Components created reusable components like Post.
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import {
  faComment,
  faRetweet,
  faHeart,
  faShare,
} from "@fortawesome/free-solid-svg-icons";
function Post() {
  return (
    <div className="section">
      <div className="flex items-center">
        <img
          src="./abdo.jpg"
          alt="photoProfile"
          className="w-10 h-10 rounded-full mr-2 inline-block cursor-pointer"
        />
        <div className="space-x-1  flex items-center flex-wrap">
          <h1 className="md:w-full  font-bold">Abd El-Rahman Waheed</h1>
          <a className="text-dark-gray " href="#">
            @abdowaheed
          </a>
          <span className="text-dark-gray">&#46;</span>
          <p className=" text-dark-gray capitalize">nov 2</p>
        </div>
      </div>
      {/* start caption and photo and reacts */}
      <div className="pl-5 pr-2">
        <p className="text-xl leading-7 mt-3">
          Any fool can write code that a computer can understand. Good
          programmers write code that humans can understand.
          <br />
          <br />
          Experience is the name everyone gives to their{" "}
          <span className="text-[rgb(96,165,250)] cursor-pointer">
            #mistakes
          </span>{" "}
          <br />
          <br />
          Simplicity is the soul of efficiency.
        </p>
        <img
          src="./post.jpg"
          alt="post"
          className="my-4 w-full border rounded-2xl border-[#4b5563]"
        />
        <ul className=" flex justify-between items-center">
          <li className="react hover:text-blue-400 ">
            <FontAwesomeIcon icon={faComment} className="mr-4 " />
            12.3 k
          </li>
          <li className="react hover:text-green-400">
            <FontAwesomeIcon icon={faRetweet} className="mr-4 " />
            14 k
          </li>
          <li className="react hover:text-red-600">
            <FontAwesomeIcon icon={faHeart} className="mr-4 " />
            14 k
          </li>
          <li className="react  hover:text-blue-400">
            <FontAwesomeIcon icon={faShare} className="mr-4 " />
          </li>
        </ul>
      </div>
      {/* End caption and photo and reacts  */}
    </div>
  );
}

export default Post;

🛠️Technologies Used

The Twitter Clone project utilizes the following technologies:

🏁Getting Started

To set up the Twitter Clone project locally, follow the instructions below.

⬇️Installation

To set up the project locally, follow these steps:

  1. Clone the repository:
git clone https://github.com/Abdelrahman-wahed/twitter-clone.git
  1. Navigate to the project directory:
cd twitter-clone
  1. Install the required dependencies:
npm install

🔧Usage

  1. Run the development server:
npm run dev
  1. Open your browser and go to http://localhost:5173/ to view the application.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

The Twitter Clone project is a web application that mimics the functionality and design of the Twitter website. It includes features such as dark mode, loading posts, showing trends, and a responsive design.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published