Skip to content

Commit

Permalink
health services component migration (#2090)
Browse files Browse the repository at this point in the history
* health services component migration

* retrigger checks

* PR feedback
  • Loading branch information
jtmst authored May 22, 2024
1 parent 8fe1e67 commit 38664d6
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 24 deletions.
5 changes: 5 additions & 0 deletions src/site/assets/sass/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@
}
}

.spotlight-card {
min-width: 30%;
word-wrap: break-word;
}

// START: Styles for mobile app promo banner

.smartbanner {
Expand Down
14 changes: 3 additions & 11 deletions src/site/facilities/health_service.drupal.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,11 @@
{% assign facility = location.entity.fieldFacilityLocation.entity %}
{% if location.entity.status and facility != empty %}
<li class="vads-u-margin-bottom--2">
<a
onclick='recordEvent(
{
"event": "nav-accordion-link-click",
"accordion-parent-label": "{{ serviceTaxonomy.name | escape }}",
"accordion-child-label": "{{ serviceTaxonomy.fieldAlsoKnownAs | escape }}",
"accordion-section-label": "{{ sectionName | escape }}"
})'
<va-link
href="{{ facility.entityUrl.path }}"
text="{{ facility.title }}"
>
{{ facility.title }}
</a>
</va-link>
</li>
{% endif %}
{% endfor %}
Expand Down
11 changes: 6 additions & 5 deletions src/site/layouts/health_services_listing.drupal.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,12 @@

{% if fieldFeaturedContentHealthser %}
<section class="featured-services" id="featured-services">
<h3>In the spotlight at {{ facilitySidebar.name }}</h3>
<ul
class="usa-grid usa-grid-full vads-u-margin-top--3 vads-u-margin-bottom--4 vads-u-display--flex vads-u-flex-direction--column medium-screen:vads-u-flex-direction--row">
<h2>In the spotlight at {{ facilitySidebar.name }}</h2>
<div class="vads-u-display--flex vads-u-flex-direction--column vads-u-justify-content--space-between medium-screen:vads-u-flex-direction--row vads-u-margin-bottom--4">
{% for featuredService in fieldFeaturedContentHealthser %}
{% include "src/site/paragraphs/link_teaser_featured_content.drupal.liquid" with linkTeaser = featuredService.entity %}
{% endfor %}
</ul>
</div>
</section>
{% endif %}

Expand Down Expand Up @@ -78,9 +77,11 @@
{% if clinicalHealthServices.length == 0 %}
<div>No health services at this time.</div>
{% endif %}
<va-back-to-top></va-back-to-top>
{% include "src/site/includes/above-footer-elements.drupal.liquid" %}
</article>
<!-- Last updated & feedback button-->
{% include "src/site/includes/above-footer-elements.drupal.liquid" %}

</div>
</div>
</main>
Expand Down
14 changes: 6 additions & 8 deletions src/site/paragraphs/link_teaser_featured_content.drupal.liquid
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
<li data-template="paragraphs/link_teaser_featured_content" data-entity-id="{{ linkTeaser.entityId }}"
class="featured-content-list-item vads-u-background-color--primary-alt-lightest vads-u-padding-y--1p5 vads-u-padding-x--1p5 vads-u-margin-bottom--2 medium-screen:vads-u-margin-bottom--0 vads-u-display--flex vads-u-flex-direction--column">
<va-card data-template="paragraphs/link_teaser_featured_content" data-entity-id="{{ linkTeaser.entityId }}"
class="vads-u-flex--fill vads-u-margin-bottom--2 vads-u-margin-right--0 medium-screen:vads-u-margin-x--0p5 spotlight-card">
{% assign link = linkTeaser.fieldLink %}
{% if link.title != empty %}
<b>{{ link.title }}</b>
<hr class="featured-content-hr vads-u-margin-y--1p5 vads-u-border-color--primary">
<h3 class="vads-u-margin-top--0">{{ link.title }}</h3>

{% endif %}
{% if linkTeaser.fieldLinkSummary != empty %}
<p class="va-nav-linkslist-description">{{ linkTeaser.fieldLinkSummary }}</p>
{% endif %}
<a onClick="recordEvent({ event: 'nav-featured-content-link-click', 'featured-content-header': '{{link.title}}' });" class="vads-u-display--block vads-u-padding-top--1" href="{{link.url.path}}" {% if linkTeaser.options["target"] %}target="{{ linkTeaser.options["target"] }}"{% endif %} onClick="recordEvent({ event: 'nav-linkslist' });">
<span>Read more<i class="fa fa-chevron-right vads-facility-hub-cta-arrow"></i></span>
</a>
</li>
<va-link active class="vads-u-display--block vads-u-padding-top--1" href="{{link.url.path}}" text="Read more"></va-link>
</va-card>

0 comments on commit 38664d6

Please sign in to comment.