<div class="link-card link-card--dark link-card--durp">
    <div class="link-card__text-container">
        <div class="link-card__title link-card__title--dark">
            <h2 class="linked-title linked-title--durp linked-title--dark">
                <a href="#" class="
            linked-title__link linked-title__link--dark
            
    ">
        Minor in Urban Studies and Planning<span class="linked-title__link-icon">&nbsp;<svg class="right-chevron" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="8" height="16" viewBox="0 0 8 16">
    <path class="_mark right-chevron__shape" fill="#FF552E" fill-rule="nonzero" d="M.232 1.65A1.028 1.028 0 0 1 .336.24a.937.937 0 0 1 1.356.11L8 8l-6.308 7.65a.937.937 0 0 1-1.356.11c-.403-.36-.45-.991-.104-1.41L5.466 8 .232 1.65z"/>
</svg>

</span>
    </a>
            </h2>
        </div>
        <div class="link-card__caption link-card__caption--dark">Introduces students to contemporary issues and factors affecting the development and functioning of cities in the U.S. and worldwide.</div>
    </div>
    <div class="link-card__image">
        <figure class="captioned-image">
            <img class="captioned-image__image" src="https://picsum.photos/450/300" alt="placeholder" width="432" height="304">
        </figure>

    </div>
</div>
{% import "bits/macros/imageSource.twig" as imageMacros %}

<div class="link-card link-card--{{ background }} link-card--{{ siteUnit }}">
    <div class="link-card__text-container">
        <div class="link-card__title link-card__title--{{ background }}">
            {% include 'bits/linked-title/linked-title.twig' with {
                text: card.title,
                url: card.url
            }%}
        </div>
        <div class="link-card__caption link-card__caption--{{ background }}">{{ card.caption | raw }}</div>
    </div>
    {% if card.image %}
        <div class="link-card__image">
            {{ imageMacros.create(card.image, 432, 304, background) }}
        </div>
    {% endif %}
</div>
{
  "siteUnit": "durp",
  "departmentName": "Department of Urban and Regional Planning",
  "background": "dark",
  "card": {
    "title": "Minor in Urban Studies and Planning",
    "url": "#",
    "caption": "Introduces students to contemporary issues and factors affecting the development and functioning of cities in the U.S. and worldwide.",
    "image": {
      "src": "https://picsum.photos/450/300",
      "altText": "placeholder"
    }
  }
}
  • Content:
    .link-card
        &--light
            --backgroundColor white
            --textColor greyDarkest
    
        &--dark
            --backgroundColor charcoalLighter
            --textColor grey
    
        &--arch
            --backgroundColor white
            --textColor greyDarkest
    
        background-color var(--backgroundColor)
        display flex
        flex-direction column
        height 100%
        justify-content space-between
    
        &__text-container
            padding 16px
            +above(largeCardBreakpoint)
                padding 24px
    
        &__title
            margin-bottom 8px
    
        &__title .linked-title__link
            @extends $primaryLead
    
        &__caption
            @extends $richText
            color var(--textColor)
    
            & p
                @extends $detail
                color var(--textColor)
    
            & > *:last-child
                margin-bottom 0
    
  • URL: /components/raw/link-card/link-card.styl
  • Filesystem Path: components/partials/link-card/link-card.styl
  • Size: 797 Bytes

There are no notes for this item.