JavaScriptJavaScript
CSSCSS
HTMLHTML
No Screenshots Uploaded Yet
COMPLETED

T Farhat Portfolio

This is a modern, responsive portfolio website for Tayyaba Farhat, a Ph.D. Scholar and Incubation Manager, built with React, Vite, and Tailwind CSS. 🚀 Getting Started Prerequisites Make sure you

About the Project

This is a modern, responsive portfolio website for Tayyaba Farhat, a Ph.D. Scholar and Incubation Manager, built with React, Vite, and Tailwind CSS.

🚀 Getting Started

Prerequisites

Make sure you have Node.js installed on your machine.

Installation

  1. Clone the repository (if you haven't already):

    git clone https://github.com/TayyabaFarhat/tayyaba-portfolio.git
    cd tayyaba-portfolio
    
  2. Install dependencies:

    npm install
    

Running Locally

To start the development server:

npm run dev

The application will typically run at http://localhost:5173.


🌐 How to Deploy to GitHub Pages

Follow these steps to make your portfolio live on GitHub Pages.

1. Create a GitHub Repository

If you haven't already, create a new public repository on GitHub (e.g., tayyaba-portfolio).

2. Connect Your Local Project

Run these commands in your project terminal:

git init
git add .
git commit -m "Initial commit"
git branch -M main
git remote add origin https://github.com/TayyabaFarhat/tayyaba-portfolio.git
git push -u origin main

3. Install gh-pages

We will use a package to handle the deployment automatically.

npm install gh-pages --save-dev

4. Update vite.config.js

Open vite.config.js and add the base property with your repository name.

import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
// ... other imports

export default defineConfig({
  plugins: [react(), ...],
  base: "/tayyaba-portfolio/", // <--- ADD THIS LINE (e.g., "/tayyaba-portfolio/")
  resolve: {
    // ...
  },
});

5. Update package.json

Open package.json and add these two items:

  1. Add homepage at the top level:

    "homepage": "https://TayyabaFarhat.github.io/tayyaba-portfolio",
    
  2. Add predeploy and deploy scripts under "scripts":

    "scripts": {
      "dev": "vite",
      "build": "vite build",
      // ...
      "predeploy": "npm run build",
      "deploy": "gh-pages -d dist"
    }
    

6. Deploy!

Now, simply run:

npm run deploy

This command will build your project and push existing files to a gh-pages branch on your GitHub repository.

7. Configure GitHub

  1. Go to your repository on GitHub.
  2. Click on Settings > Pages (on the left sidebar).
  3. Ensure the Source is set to Deploy from a branch.
  4. Ensure the Branch is set to gh-pages / /root.
  5. Your site should be live in a few minutes!

🛠️ Built With

Project Timeline

Dec 2025 - Feb 2026

Technologies

JavaScriptCSSHTML

External Links

Related Projects

Projects built with similar technologies.

Online Html Editor And Viewer
COMPLETED
JavaScriptHTMLCSS+1 more

Online Html Editor And Viewer

The Online HTML Editor and Viewer is a simple web application built with Flask that allows users to write and preview HTML code in real-time.

Rasikh Ali
Qrgen
COMPLETED
Jupyter NotebookHTMLPython

Qrgen

A premium, feature-rich QR Code Generator engineered with Python (Flask) and a pristine Glassmorphism frontend.

Rasikh Ali
Examina Ai
COMPLETED
TypeScriptPythonCSS+2 more

Examina Ai

Using AI, It transforms raw study materials into structured, verified examination sets with support for institutional export formats like Moodle XML.

Rasikh Ali