-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update About Page Leadership Section #691
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pages/about.js
Outdated
const convertedData = officerContent.map(officer => ({ | ||
name: officer.name, | ||
pronouns: officer.pronouns, | ||
position: (officer.role === officer.committee ? officer.role : officer.role + ', ' + officer.committee), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will need to update position
to role
to match offoutput.json and in turn what OfficerCard component expects.
pages/about.js
Outdated
committee: officer.committee, | ||
major: officer.major, | ||
year: officer.year, | ||
img: officer.photo, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will need to update img
to photo
to match offoutput.json and in turn what OfficerCard component expects.
pages/about.js
Outdated
major: officer.major, | ||
year: officer.year, | ||
img: officer.photo, | ||
})).filter(officer => officer.position.includes('President')); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here, will need to update position
to role
to match offoutput.json and in turn what OfficerCard component expects.
next.config.js
Outdated
'www.uclaacm.com', | ||
'raw.githubusercontent.com', | ||
't4.ftcdn.net', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this (t4.ftcdn.net) appears twice
pages/about.js
Outdated
@@ -6,17 +6,32 @@ import React from 'react'; | |||
import Banner from '../components/Banner'; | |||
import Layout from '../components/Layout'; | |||
import Officers from '../components/OfficerCard'; | |||
// import Officers from '../components/Officers/OfficerCard'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can be removed?
Overview
Resolves #684. We now use the parser script generated data to populated the leadership section on the "About" page. Note that the current implementation requires the generated json to be within the "scripts" folder.
Changes
pages/about.js
next.config.js