Skip to content

Commit

Permalink
feat: add audio-tactile card diagram to cards page
Browse files Browse the repository at this point in the history
  • Loading branch information
BlueSlug committed Jul 12, 2022
1 parent 2134fd2 commit d517613
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/_data/translations.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
{
"en-CA": {
"approaches": "approaches",
"articleContentsSummary": "Article Contents",
"audioTactileCards": "cards",
"perspectives": "perspectives",
"techniques": "techniques",
"audioTactileCardDiagramAltText": "Example of a card with three elements being pointed out by arrows: the recommendation code on the top-left, the recommendation in the centre of the card, and an interactive button bottom-centre that indicates there is additional information on the card.",
"brandAltText": "Inclusive Learning Design Handbook - Home",
"menu": "Menu",
"collapseAll": "collapse all",
"expandAll": "expand all",
"articleContentsSummary": "Article Contents"
"menu": "Menu",
"perspectives": "perspectives",
"techniques": "techniques"
}
}
3 changes: 3 additions & 0 deletions src/_includes/layouts/audio-tactile-cards.njk
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@

{% block content %}
{{ content | safe }}
<div class="audio-tactile__diagram">
{%- svg_sprite "audio-tactile-card-diagram", translations[lang].audioTactileCardDiagramAltText -%}
</div>
{% endblock %}

{%- include "partials/components/sections-control.njk" -%}
Expand Down
14 changes: 14 additions & 0 deletions src/assets/images/sprites.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions src/assets/styles/pages/_audio-tactile.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,17 @@
margin-inline: auto;
}

.audio-tactile__diagram {
text-align: center;

svg {
height: 36.0625rem;
max-height: 77vw;
max-width: 100%;
width: 40.3125rem;
}
}

.audio-tactile__sections {
list-style: none;
margin: 0;
Expand Down

0 comments on commit d517613

Please sign in to comment.