Skip to content

Create Component and Refactor HTML for "In-Kind" text on Donate page #4457

@roslynwythe

Description

@roslynwythe

Dependency

Overview

As developers we need to componentize donation elements which appear on multiple pages in the site, in order to present a consistent appearance and efficiently reuse code. In this issue, the text on the Donate page below "Provide In-Kind Software & Services" will be componentized.

Details

  • Please refer to the screenshot under Resources. The paragraphs depicted in the screenshot appear beneath the header "Provide In-Kind Software & Services" on the Donate page, and the HTML is contained in _includes/donate-card.html.
  • To create a reusable component, the paragraphs below the heading (but not the heading) will be moved to a new component

Action Items

  • Open the current file _includes/donate-card.html. Create a new component file _includes/donation/in-kind.html then remove the appropriate <p> elements from the current file and add them to the new file. Note that the heading "Provide In-Kind Software & Services" will not be moved into the new component; instead it should be retained in the existing files.
  • Update _includes/donate-card.html to reference the new component file using the liquid {% include <filename> %} syntax. Note that 'filename' is relative to the _includes folder.

Merge Team

Resources/Instructions

Screenshot of the new component elements

image

Metadata

Metadata

Assignees

Labels

Complexity: SmallTake this type of issues after the successful merge of your second good first issueFeature: Refactor CSSPage is working fine - CSS needs changes to become consistent with other pagesFeature: Refactor HTMLP-Feature: Donatehttps://www.hackforla.org/donate/role: front endTasks for front end developerssize: 0.5ptCan be done in 3 hours or lesstime sensitiveNeeds to be worked on by a particular timeframe

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions