-
Notifications
You must be signed in to change notification settings - Fork 6
How to Update
This document outlines how to update parts of the website. See Contributing to see how to contribute to the repo.
Open src/pages/about/components/execList.js
. This file contains the full list of exec and staff including their names,
roles, and description. By editing this file you can update the contents of the site.
Edit the content in execList.js
.
To update profile pictures, replace the corresponding images in src/pages/about/assets
. Make sure the file names match
the imported images in execList.js
.
Add a new individual in execList.js
. Be sure to include the position, name, image and description fields.
To upload an image, add the image to src/pages/about/assets
. Then import the image in execList.js
:
import Exec from '../assets/exec.jpeg';
Open execList.js
, find the individual and either comment them out or delete their section. Also delete their image in
src/pages/about/assets
.
The original policy documents can be found on the SOCIS google drive.
Go to src/pages/policy/assets
and replace the policy documents with the newer version. Next, open src/pages/policy/components/header.jsx
and update the Last updated
string to today's date.
To add new policy documents, first add the new policy document to src/pages/policy/assets
. Then in src/pages/policy/index.jsx
import the policy document:
import policyDocument from './assets/Policy.pdf';
Then add the component to the functional component:
<FileViewer heading="Policy" file={policyDocument} />
To remove policies, delete the corresponding document in src/pages/policy/assets
. Then open src/pages/policy/index.jsx
and remove the lines for the component:
import policyDocument from './assets/Policy.pdf';
<FileViewer heading="Policy" file={policyDocument} />