Skip to content
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

Merged
merged 17 commits into from
Feb 6, 2025
Merged

Update About Page Leadership Section #691

merged 17 commits into from
Feb 6, 2025

Conversation

puranamp
Copy link
Contributor

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

  • pass new generated json data to the officer cards

next.config.js

  • added some new domain names

@puranamp puranamp requested a review from snigdha-kansal May 30, 2024 02:23
Copy link
Contributor

@snigdha-kansal snigdha-kansal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome work, Kevin! 🔥💪🏼

Cat Apple

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),
Copy link
Contributor

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,
Copy link
Contributor

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'));
Copy link
Contributor

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',
Copy link
Contributor

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';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can be removed?

@Kevin-D23 Kevin-D23 merged commit ba061f6 into main Feb 6, 2025
8 checks passed
@Kevin-D23 Kevin-D23 deleted the leadership-updates branch February 6, 2025 05:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature request: Automate updating the leadership section
3 participants