This code is for my personal website, which can be found here: http://johnduncanscott.github.io. Please feel free to use this as a template for your own website. You can find a theme demo at https://johnduncanscott.github.io/#/themedemo.
If you enjoy this project, please consider
- Google Analytics 4
- React 17
- React Bootstrap 2.4
- Bootstrap 5
- Sass (SCSS)
- You must create a .env file and setup the variables below otherwise the site will not load correctly.
dark.scss
- contains all the stylesThemeDemo.tsx
- unlinked page that lets you see how the different components will appear (/#/themedemo
)
See https://create-react-app.dev/docs/adding-custom-environment-variables/. These are used in the app via config.ts
where possible. index.html
has to use the %...%
format.
REACT_APP_DISPLAY_NAME
- your name you want displayed everywhereREACT_APP_GITHUB_LINK
- your GitHub profile pageREACT_APP_LINKEDIN_LINK
- your LinkedIn profile pageREACT_APP_OCCUPATION
- your occupationREACT_APP_TIP_LINK
- your donation / support / tip page
FUNDING.yaml
- contains your donation / support / tip page. See https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/displaying-a-sponsor-button-in-your-repositorymanifest.json
-name
contains your namepackage.json
-homepage
contains your websiteviews
- these contain your personal information
This project was bootstrapped with Create React App.
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
See the section about deployment for more information.
Deploys the code to the GitHub webpage.
fatal: A branch named 'gh-pages' already exists.
- runrm -rf node_modules/.cache/gh-pages
and try againfatal: could not read Username for 'https://github.com': Invalid argument
-git credential-manager-core
was updated in a later version of Git For Windows and the old version is no longer compatible. Re-installing Git For Windows fixed this