Dr. Ann E. Stapleton's personal website. Designed and developed by Onshore Studios.
Getting started is easy, assuming you have the relevant dependencies. Clone the project and install the dependencies:
git clone https://github.com/andrewmcodes/dr-stapleton-website
cd dr-stapleton-website
npm run develop
The project should now be running on localhost:8000.
In order to contribute to this project, you will need to make sure you have the following:
- git
- Node.js
- NPM (or Yarn)
- Gatsby CLI
Most non-Windows operating systems have git installed by default. Follow the official documentation if you have any trouble.
To make sure everything downloaded correctly, run the following command:
git --version
If all went well, you should get a version number like git version 2.21.0
To make sure everything downloaded correctly, run the following command:
node -v
If all went well, you should get a version number like v11.12.0
NPM is automatically installed with Node.js.
To make sure everything downloaded correctly, run the following command:
npm -v
If all went well, you should get a version number like 6.9.0
Install Gatsby CLI with the following command:
npm install -g gatsby-cli
Check the official documentation for more information.
npm run analyze
- See what ESLint and Prettier can fixnpm run fix
- Run Prettier and ESLint with the--fix
option
Use npm run build
to build your site for production.
Please consult this link for instructions on how to upload your site to the UNCW People Server.
Assets are typically referred to as external content that is loaded in to the site like pictures and documents.
If you would like to change out an asset, there are two steps:
- Find the actual asset. These will all be located in
./src/
folder. Simply delete the existing asset and copy in your new asset. - Unless the asset has the exact name of the old asset, you will have to update the reference. Simply search the HTML for the name of your asset (e.g. my-cv.pdf) and replace with the name of your new asset. Unless you move the asset, which there is no reason to do, you just have to change the file name.
Changing content is pretty simple and should not break any of the styling due to the component based style implemented. Simply find the content in the HTML, delete it, and paste in your new content.
Styling on this website is done via TailwindCSS base classes or custom CSS classes that extend the Tailwind classes. Refer to the Tailwind documentation for help.
Because of the component architecture of this site, changing the styling of a custom CSS class will change every element that uses that class across the site. To change a class, navigate to ./src/css/styles.css
, find the class you want to change, e.g. .btn
, and update the styles.