Refactor communities of practice page to replace slack-join-meeting-channel.svg with icon-slack.svg #5829
Labels
Complexity: Medium
Feature: Refactor HTML
P-Feature: Communities of Practice
https://www.hackforla.org/communities-of-practice
role: back end/devOps
Tasks for back-end developers
role: front end
Tasks for front end developers
size: 1pt
Can be done in 4-6 hours
Milestone
Overview
We need to store only a single Slack icon SVG file in the codebase, and use CSS to render the SVG in various colors throughout the website. In this issue, we modify the Communities of Practice page, replacing an
img
element with a liquid include tag referencing_includes/svg/icon-slack.svg
and modifying CSS as needed to maintain the current appearance.Action Items
pages/communities-of-practice.html
in your IDE and identify the 'img' tag with srcassets/images/communities-of-practice/slack-join-meeting-channel.svg
, and identify the rendered image in the current Communities of Practice webpageimg
tag identified in the previous step with a liquid tag{% include 'filename' %}
that will reference the file_includes/svg/icon-slack.svg
. Note that in the liquid include tag syntax,filename
is relative to the_includes
folder, so_includes
should not be part of the filename._sass/components/_communities-of-practice.scss
as needed so that the appearance of the icon in the local page matches the current webpage. Confirm the appearance of the graphic and the behavior of the associated hyperlink is unchanged from the current webpage.Resources/Instructions
Communities of Practice HTML
Communities of Practice webpage
The text was updated successfully, but these errors were encountered: