Skip to content

Latest commit

Β 

History

History
107 lines (79 loc) Β· 2.76 KB

File metadata and controls

107 lines (79 loc) Β· 2.76 KB

Matthew Feroz - Portfolio Website

A clean, accessible portfolio website showcasing sponsors, YouTube channel, and contact information.

Features

  • 🎨 Modern, responsive design with dark mode support
  • β™Ώ WCAG AA accessible with proper contrast ratios and keyboard navigation
  • πŸ”— Clean URLs (no .html extensions)
  • πŸ“± Mobile-friendly responsive layout
  • 🎯 Modular code structure (CSS, JS, and data separated)

GitHub Pages Setup

Initial Setup

  1. Create a GitHub repository (if you haven't already)

    git init
    git add .
    git commit -m "Initial commit"
    git branch -M main
    git remote add origin https://github.com/YOUR_USERNAME/YOUR_REPO_NAME.git
    git push -u origin main
  2. Enable GitHub Pages

    • Go to your repository on GitHub
    • Click Settings β†’ Pages
    • Under Source, select Deploy from a branch
    • Choose main branch and / (root) folder
    • Click Save
  3. Your site will be live at:

    • https://YOUR_USERNAME.github.io/YOUR_REPO_NAME/
    • Or if the repo is named YOUR_USERNAME.github.io, it will be at:
    • https://YOUR_USERNAME.github.io/

Clean URLs

The site uses clean URLs (without .html extensions):

  • / or /home β†’ index.html
  • /sponsors β†’ sponsors.html
  • /sponsor-me β†’ sponsor-me.html

This is handled by the 404.html redirect script and _config.yml configuration.

Updating Your Site

After making changes:

git add .
git commit -m "Your commit message"
git push

GitHub Pages will automatically rebuild your site (usually takes 1-2 minutes).

Local Development

Simply open index.html in your browser or use a local server:

# Using Python
python -m http.server 8000

# Using Node.js (http-server)
npx http-server

# Using PHP
php -S localhost:8000

Then visit http://localhost:8000

File Structure

.
β”œβ”€β”€ index.html          # Home page (portfolio)
β”œβ”€β”€ sponsors.html       # Sponsors page
β”œβ”€β”€ sponsor-me.html     # Sponsor contact page
β”œβ”€β”€ 404.html           # Clean URL redirect handler
β”œβ”€β”€ _config.yml        # GitHub Pages/Jekyll config
β”œβ”€β”€ css/
β”‚   └── styles.css     # Custom styles
β”œβ”€β”€ js/
β”‚   β”œβ”€β”€ config.js      # Tailwind configuration
β”‚   β”œβ”€β”€ theme.js       # Theme toggle functionality
β”‚   └── components.js  # Reusable components
└── data/
    β”œβ”€β”€ links.js       # Portfolio links data
    └── sponsors.js    # Sponsors data

Customization

  • Add/Edit Links: Edit data/links.js
  • Add/Edit Sponsors: Edit data/sponsors.js
  • Change Colors: Edit js/config.js and css/styles.css
  • Modify Footer: Edit js/components.js

License

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