<div class="
        profile-card
                    profile-card--background-is-white
            ">
        <img class="profile-card__image" src="holder.js/450x450?auto=yes&outline=yes&random=yes" width="450" height="450" alt='placeholder' />
        <div class="profile-card__info">
            <a class="linked-text-with-icon linked-text-with-icon--bodyLarge" href="">Wendy D. Sanchez<span class="linked-text-with-icon__chevron-icon">
                    <svg role="img" class="right-chevron" xmlns="http://www.w3.org/2000/svg" fill="currentColor" aria-hidden="true" viewBox="0 0 8 12">
                        <title>right chevron</title>
                        <path class="_mark right-chevron__shape" d="M4.50496 5.98003L0.00107202 0.0064757L0.00964937 2.55136e-07L3.49611 5.59932e-07L8 5.97463L3.48968 12L-9.53674e-07 12L4.50496 5.98003Z" />
                    </svg>
                </span></a>
            <div class="profile-card__title">
                Program Manager-Partner Relations
            </div>
            <div class="profile-card__badges">
                <ul class="tag-badge-list ">
                    <li class="tag-badge-list__item">
                        <span class="tag-badge  tag-badge--white tag-badge--border">
                            NNPHI Staff
                        </span>
                    </li>
                    <li class="tag-badge-list__item">
                        <span class="tag-badge  tag-badge--white tag-badge--border">
                            PHI Expert Guide
                        </span>
                    </li>
                </ul>
            </div>
        </div>
    </div>
{% if person.isComplete %}
    <div class="
        profile-card
        {% if background %}
            profile-card--background-is-{{ background }}
        {% endif %}
    ">
        {% if person.featuredImage.src|default(false) %}
            <img class="profile-card__image"
                 src="{{ person.featuredImage.src | resize(450, 450) | towebp }}"
                 width="450" height="450" alt='{{ person.featuredImage.altText }}'/>
        {% endif %}
        <div class="profile-card__info">
            {% include 'bits/linked-text-with-icon/linked-text-with-icon.twig' with {
                link: {
                    text: person.fullName | trim,
                    url: person.permalink,
                    type: 'internal'
                },
                variant: 'bodyLarge'
            } %}
            {% if person.role %}
                <div class="profile-card__title">
                    {{ person.role }}
                    {% if person.relatedPhis %}
                        <span class="profile-card__related-phis">| {{ person.relatedPhis|join(', ') }}</span>
                            {% endif %}
                </div>
            {% endif %}
            <div class="profile-card__badges">
                {% include 'bits/tag-badge-list/tag-badge-list.twig' with { tags: person.profileTypes, tagColor: 'white', border: true } %}
            </div>
            {% if person.tags %}
                <div class="profile-card__badges">
                    {% include 'bits/tag-badge-list/tag-badge-list.twig' with { tags: person.tags, tagColor: 'white' } %}
                </div>
            {% endif %}
        </div>
    </div>
{% endif %}
{
  "site": {
    "title": "National Network of Public Health Institutes"
  },
  "background": "white",
  "breadcrumbs": [
    {
      "title": "Home",
      "url": "#"
    },
    {
      "title": "Primary Page One",
      "url": "#"
    },
    {
      "title": "Interior Page One",
      "url": "#"
    }
  ],
  "footerLinks": {
    "items": [
      {
        "title": "Subscribe to our newsletter",
        "url": "#"
      },
      {
        "title": "Explore membership benefits",
        "url": "#"
      },
      {
        "title": "See career opportunities",
        "url": "#"
      }
    ]
  },
  "contactInfo": {
    "copyright": "© National Network of Public Health Institutes. All Rights Reserved",
    "facebookLink": "https://facebook.com",
    "linkedInLink": "https://linkedin.com",
    "youtubeLink": "https://youtube.com",
    "flickrLink": "https://flickr.com",
    "twitterLink": "https://twitter.com",
    "instagramLink": "https://instagram.com",
    "youTubeLink": "https://youtube.com"
  },
  "utilityNavigation": {
    "items": [
      {
        "title": "Member directory",
        "url": "#"
      },
      {
        "title": "Events",
        "url": "#",
        "isActive": true
      },
      {
        "title": "Blog",
        "url": "#"
      }
    ]
  },
  "primaryNavigation": {
    "items": [
      {
        "title": "Workforce resources",
        "url": "#",
        "children": [
          {
            "title": "Resource Directory",
            "url": "#",
            "children": []
          },
          {
            "title": "Trainings",
            "url": "#",
            "children": [
              {
                "title": "Training Level 3 example",
                "url": "#"
              }
            ]
          }
        ]
      },
      {
        "title": "Programs & Projects",
        "url": "#",
        "isDescendantActive": true,
        "children": [
          {
            "title": "Data Modernization",
            "url": "#",
            "children": []
          },
          {
            "title": "Environmental Health and Emergency Preparedness",
            "url": "#",
            "children": []
          },
          {
            "title": "Evaluation and Impact",
            "url": "#",
            "isDescendantActive": true,
            "children": [
              {
                "title": "Third level example",
                "url": "#",
                "isActive": true,
                "children": [
                  {
                    "title": "Fourth level example",
                    "url": "#",
                    "isActive": true,
                    "children": [
                      {
                        "title": "Fifth level example",
                        "url": "#",
                        "isActive": true
                      }
                    ]
                  },
                  {
                    "title": "Fourth level example 2",
                    "url": "#"
                  },
                  {
                    "title": "Fourth level example 3",
                    "url": "#"
                  }
                ]
              }
            ]
          },
          {
            "title": "Multisector Strategies and Population Health",
            "url": "#",
            "children": []
          },
          {
            "title": "Public Health Events and Convenings Management",
            "url": "#",
            "children": []
          },
          {
            "title": "Public Health Infrastructure Grant",
            "url": "#",
            "children": []
          },
          {
            "title": "Public health training",
            "url": "#",
            "children": []
          }
        ]
      },
      {
        "title": "Explore the Network",
        "url": "#",
        "children": [
          {
            "title": "Member Directory",
            "url": "#",
            "children": []
          },
          {
            "title": "Membership paths",
            "url": "#",
            "children": []
          }
        ]
      },
      {
        "title": "Partner with us",
        "url": "#"
      },
      {
        "title": "About",
        "url": "#",
        "children": [
          {
            "title": "Blog",
            "url": "#",
            "children": []
          },
          {
            "title": "Events",
            "url": "#",
            "children": []
          },
          {
            "title": "Newsletters",
            "url": "#",
            "children": []
          },
          {
            "title": "Signature programs",
            "url": "#",
            "children": []
          },
          {
            "title": "Contact us",
            "url": "#",
            "children": []
          },
          {
            "title": "Meet the team",
            "url": "#",
            "children": []
          }
        ]
      }
    ]
  },
  "person": {
    "fullName": "Wendy D. Sanchez",
    "role": "Program Manager-Partner Relations",
    "featuredImage": {
      "src": "holder.js/450x450?auto=yes&outline=yes&random=yes",
      "altText": "placeholder"
    },
    "profileTypes": [
      "NNPHI Staff",
      "PHI Expert Guide"
    ],
    "tags": [],
    "isComplete": true
  }
}
  • Content:
    .profile-card {
        display: flex;
        flex-direction: column;
        height: 100%;
    
        &--background-is-blueTint {
            --backgroundColor: var(--white);
        }
    
        &__image {
            width: 100%;
        }
    
        &__info {
            background-color: var(--backgroundColor, var(--blueTint));
            flex-grow: 1;
            padding: 1.5rem;
        }
    
        &__title {
            @include detail;
            color: var(--grayDarkest);
            margin-top: 0.25rem;
        }
    
        &__badges {
            margin-top: 0.75rem;
        }
    }
    
  • URL: /components/raw/profile-card/profile-card.scss
  • Filesystem Path: patterns/partials/profile-card/profile-card.scss
  • Size: 504 Bytes

No notes defined.