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

Vote-2343 Static cards for military and overseas voters (FVAP.gov) #848

Merged
merged 7 commits into from
Jul 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions web/modules/custom/vote_utility/translations/es.po
Original file line number Diff line number Diff line change
Expand Up @@ -252,3 +252,13 @@ msgstr "sábado"

msgid "Sunday"
msgstr "domingo"

# Temporary military and overseas voter cards
msgid "Voting as a military service member"
msgstr "Votar como miembro del servicio militar"

msgid "Learn more from the Federal Voting Assistance Program."
msgstr "Obtenga más información del Programa Federal de Asistencia para Votar (sigla en inglés)."

msgid "Voting as a U.S. citizenfrom outside the U.S."
msgstr "Votar como ciudadano en el extrajero"
11 changes: 11 additions & 0 deletions web/themes/custom/votegov/img/svg/Military.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions web/themes/custom/votegov/img/svg/Overseas.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,51 @@
</h2>
<div class="vote-card-group">
{{ cards }}

{# Start temporary cards. #}
{% if language != "es" %}
{% set fvap_link = "https://www.fvap.gov/" %}
{% else %}
{% set fvap_link = "https://www.fvap.gov/translated-materials" %}
{% endif %}

{# Temporary card for military FVAP.gov #}
<article class="node--voter-guide node--view-mode-teaser usa-card">
<a extlinkjs-ignore class="vote-card__link" href={{ fvap_link }} target="_blank" title={{"Voting as a military service member" | t }}>
<div class="usa-card__container">
<div class="vote-feature-card__icon">
{{ source( directory ~ '/img/svg/Military.svg' ) }}
</div>
<div class="vote-feature-card__content">
<h3 class="usa-card__heading">
<span>{{"Voting as a military service member" | t }}</span>
</h3>
<div class="usa-card__body">
{{ "Learn more from the Federal Voting Assistance Program." | t }}
</div>
</div>
</div>
</a>
</article>
{# Temporary card for overseas FVAP.gov #}
<article class="node--voter-guide node--view-mode-teaser usa-card">
<a extlinkjs-ignore class="vote-card__link" href={{ fvap_link }} target="_blank" title={{"Voting as a U.S. citizenfrom outside the U.S." | t }}>
<div class="usa-card__container">
<div class="vote-feature-card__icon">
{{ source( directory ~ '/img/svg/Overseas.svg' ) }}
</div>
<div class="vote-feature-card__content">
<h3 class="usa-card__heading">
<span>{{"Voting as a U.S. citizenfrom outside the U.S." | t }}</span>
</h3>
<div class="usa-card__body">
{{ "Learn more from the Federal Voting Assistance Program." | t }}
</div>
</div>
</div>
</a>
</article>
{# End temporary cards. #}

</div>
</div>