-
-
Notifications
You must be signed in to change notification settings - Fork 847
Closed
Labels
Complexity: SmallTake this type of issues after the successful merge of your second good first issueTake this type of issues after the successful merge of your second good first issueFeature: Refactor JS / LiquidPage is working fine - JS / Liquid needs changes to become consistent with other pagesPage is working fine - JS / Liquid needs changes to become consistent with other pagesP-Feature: Citizen Engagementhttps://www.hackforla.org/citizen-engagementhttps://www.hackforla.org/citizen-engagementrole: front endTasks for front end developersTasks for front end developerssize: 0.25ptCan be done in 0.5 to 1.5 hoursCan be done in 0.5 to 1.5 hours
Milestone
Description
Dependency
Overview
We need to refactor the code on the Citizen Engagement page to use image instead of card-image-src so that we aren't duplicating information.
Details
- The
imageandcard-image-srcare fields in the project's Markdown files in_projectdirectory. (Note: Not all of the project Markdown files havecard-image-srcyet.) - The
imageandcard-image-srcfields both have the path to the project's logo image. Since this information is the same, we don't need both fields. So, we will be removing thecard-image-srcfields from the Markdown files in_projectsdirectory. - Also, the alt text for each project logo on the Citizen Engagement page is empty (meaning
alt="") because the project name is displayed next to the logo. So, we will be removing thecard-image-altfields from the Markdown files in_projectsdirectory.
Action Items
- In
_includes/program-area-pages-cards.html, do the following:- change
to
<img class="card-image" src="{{ item.card-image-src }}" alt="{{ item.card-image-alt }}"/><img class="card-image" src="{{ item.image }}" alt=""> - In the if statement, remove the line:
item.card-image-src.size > 0 and
- change
- Remove the
card-image-src:andcard-image-alt:fields and the content of each of those fields in the following files:- _projects/311-data.md
- _projects/access-the-data.md
- _projects/engage.md
- _projects/lucky-parking.md
- _projects/open-community-survey.md
- Using the search function in VS Code or IDE, search for
card-image-srcandcard-image-alt. If you find any files with that, update the code in those files accordingly. - Using Docker, check the Citizen Engagement page looks good in mobile, tablet, and desktop views.
Merge Team, Technical Lead, or Product Manager
- Once the pull request associated with this issue is merged, go to issue Create each program area page automatically using a layout #3328 and check if all the issues listed under the
Dependencysection are closed. If they are all closed, move that issue (Create each program area page automatically using a layout #3328) into theNew Issue Approvalcolumn, remove theDependencylabel on it, and add aready for dev leadlabel to it.
Resources/Instructions
- Citizen Engagement page: https://www.hackforla.org/citizen-engagement
- _includes/program-area-pages-cards.html
- Liquid template language
- This issue is tracked in Rollout Plan: Move, refactor, and add SDG info and images #4153
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Complexity: SmallTake this type of issues after the successful merge of your second good first issueTake this type of issues after the successful merge of your second good first issueFeature: Refactor JS / LiquidPage is working fine - JS / Liquid needs changes to become consistent with other pagesPage is working fine - JS / Liquid needs changes to become consistent with other pagesP-Feature: Citizen Engagementhttps://www.hackforla.org/citizen-engagementhttps://www.hackforla.org/citizen-engagementrole: front endTasks for front end developersTasks for front end developerssize: 0.25ptCan be done in 0.5 to 1.5 hoursCan be done in 0.5 to 1.5 hours
Type
Projects
Status
Done