Skip to content

tengznaim/portfolio-website-v2

Repository files navigation

Portfolio Website V2 (2022 - Current)

Deployment Status

This is the second version of my portfolio website built using Gatsby and hosted on Firebase hosting. This repository also includes a GitHub workflow that enables continuous deployment.

This takes inspiration from one of my favourite portfolio websites by Brittany Chiang found at https://brittanychiang.com/ in terms of professionally structuring a Gatsby project.

Plugins and Dependencies Used

  1. gatsby-plugin-react-svg
  2. gatsby-source-filesystem
  3. gatsby-transformer-remark
  4. gatsby-plugin-react-helmet
  5. AOS

Colour Scheme

Colour Hex
Primary Blue #18223C #18223C
Secondary Blue #233554 #233554
Light Purple #9DAAF2 #9DAAF2
Yellow #F4DB7D #F4DB7D
Purplish White #e6f1ff #E6F1FF
White #FFFFFF #FFFFFF

Running the Site Locally

For personal reference and/or for whoever who would like to run this site locally, use the following commands.

  1. Assuming the repository is initially cloned, navigate into the project directory and install the dependencies:
    npm install
    
  2. Run the development server:
    gatsby develop
    

Note: Bugs when working in development mode

  • Multiple "root" queries found. When working with VSCode and the Powershell terminal, sometimes the case of the directory is, for some reason, inaccurate, eg. Desktop -> desktop. This can cause an issue when building and hence, to fix it, cd out and into the project directory with the correct casing and run gatsby clean, gatsby develop.
  • The result of this StaticQuery could not be fetched. To fix this issue, first run gatsby clean to remove build cache and rerun gatsby develop.

References

  1. How to use useRef and the difference with useState
  2. Gatsby SEO component
  3. GitHub actions for deploying to Firebase
  4. Deploying a Gatsby application to Firebase
  5. Guide on GitHub actions for Gatsby Build + Firebase Deploy
  6. Fixing SSL issues with Firebase .web.app URLs
  7. Multiple Root Query Issue with Terminal Casing

About

Repository for the second version of my portfolio website.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published