<div class="news-mini-component news-mini-component--durp news-mini-component--dark news-mini-component--large">
    <h2 class="news-mini-component__title" id="The latest news about kittens">
        The latest news about kittens
    </h2>
    <div class="news-mini-component__cards-grid">
        <div class="news-mini-component__card">

            <article class="card-with-image card-with-image--dark ">
                <div class="card-with-image__content">
                    <div class="
            news-card-content
            news-card-content--dark
            news-card-content--durp
        ">
                        <div class="news-card-content__title">
                            <h2 class="linked-title linked-title--durp linked-title--dark">
                                <a href="http://localhost:3000/components/detail/news" class="
            linked-title__link linked-title__link--dark
            
    ">
        The University of Illinois Promoted to a Silver Bicycle Friendly University by the League of American Bicyclists<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="news-card-content__date news-card-content__date--dark">
                            November 19, 2019
                        </div>
                    </div>
                </div>
                <div class="card-with-image__image ">
                    <figure class="captioned-image">
                        <img class="captioned-image__image" src="https://picsum.photos/320/228?random=1" alt="friendly kitten" width="320" height="228">
                    </figure>

                </div>
            </article>
        </div>
        <div class="news-mini-component__card">

            <article class="card-with-image card-with-image--dark ">
                <div class="card-with-image__content">
                    <div class="
            news-card-content
            news-card-content--dark
            news-card-content--durp
        ">
                        <div class="news-card-content__title">
                            <h2 class="linked-title linked-title--durp linked-title--dark">
                                <a href="http://localhost:3000/components/detail/news" class="
            linked-title__link linked-title__link--dark
            
    ">
        The University of Illinois Promoted to a Silver Bicycle Friendly University by the League of American Bicyclists<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="news-card-content__date news-card-content__date--dark">
                            November 19, 2019
                        </div>
                    </div>
                </div>
                <div class="card-with-image__image ">
                    <figure class="captioned-image">
                        <img class="captioned-image__image" src="https://picsum.photos/320/228?random=2" alt="friendly kitten" width="320" height="228">
                    </figure>

                </div>
            </article>
        </div>
        <div class="news-mini-component__card">

            <article class="card-with-image card-with-image--dark ">
                <div class="card-with-image__content">
                    <div class="
            news-card-content
            news-card-content--dark
            news-card-content--durp
        ">
                        <div class="news-card-content__title">
                            <h2 class="linked-title linked-title--durp linked-title--dark">
                                <a href="http://localhost:3000/components/detail/news" class="
            linked-title__link linked-title__link--dark
            
    ">
        The University of Illinois Promoted to a Silver Bicycle Friendly University by the League of American Bicyclists<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="news-card-content__date news-card-content__date--dark">
                            November 19, 2019
                        </div>
                    </div>
                </div>
                <div class="card-with-image__image ">
                    <figure class="captioned-image">
                        <img class="captioned-image__image" src="https://picsum.photos/320/228?random=3" alt="friendly kitten" width="320" height="228">
                    </figure>

                </div>
            </article>
        </div>
        <div class="news-mini-component__card">

            <article class="card-with-image card-with-image--dark ">
                <div class="card-with-image__content">
                    <div class="
            news-card-content
            news-card-content--dark
            news-card-content--durp
        ">
                        <div class="news-card-content__title">
                            <h2 class="linked-title linked-title--durp linked-title--dark">
                                <a href="http://localhost:3000/components/detail/news" class="
            linked-title__link linked-title__link--dark
            
    ">
        The University of Illinois Promoted to a Silver Bicycle Friendly University by the League of American Bicyclists<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="news-card-content__date news-card-content__date--dark">
                            November 19, 2019
                        </div>
                    </div>
                </div>
                <div class="card-with-image__image ">
                    <figure class="captioned-image">
                        <img class="captioned-image__image" src="https://picsum.photos/320/228?random=4" alt="friendly kitten" width="320" height="228">
                    </figure>

                </div>
            </article>
        </div>
    </div>
    <div class="news-mini-component__cta-container">

        <a href="#" class="standard-button standard-button--durp standard-button--dark
            standard-button--full-width standard-button--primary">
            <div class="standard-button__container"><span class="standard-button__text-container"><span class="standard-button__text">Read more news</span><span class="standard-button__icon"><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></span>
            </div>
        </a>
    </div>
</div>
{% if component.cards | default %}
    <div class="news-mini-component news-mini-component--{{ siteUnit }} news-mini-component--{{ background }} news-mini-component--{{ componentSpacing }}">
        {% if component.title | default and (component.title|trim) %}
            <h2 class="news-mini-component__title"
                id="{{ component.title|sanitize }}">
                {{ component.title }}
            </h2>
        {% endif %}
        <div class="news-mini-component__cards-grid">
            {% for story in component.cards %}
                <div class="news-mini-component__card">
                    {% include 'partials/news-card/news-card.twig' %}
                </div>
            {% endfor %}
        </div>
        {% if component.callToAction | default %}
            <div class="news-mini-component__cta-container">
                {% include 'bits/standard-button/standard-button.twig' with {
                    button: {
                        icon: 'right-chevron',
                        text: component.callToAction.text,
                        url: component.callToAction.url,
                        type: 'primary',
                        width: 'full'
                    }
                } %}
            </div>
        {% endif %}
    </div>
{% endif %}
{
  "siteUnit": "durp",
  "departmentName": "Department of Urban and Regional Planning",
  "background": "dark",
  "componentSpacing": "large",
  "component": {
    "type": "news-mini",
    "title": "The latest news about kittens",
    "cards": [
      {
        "title": "The University of Illinois Promoted to a Silver Bicycle Friendly University by the League of American Bicyclists",
        "permalink": "http://localhost:3000/components/detail/news",
        "publishDate": "November 19, 2019",
        "featuredImage": {
          "src": "https://picsum.photos/320/228?random=1",
          "altText": "friendly kitten"
        }
      },
      {
        "title": "The University of Illinois Promoted to a Silver Bicycle Friendly University by the League of American Bicyclists",
        "permalink": "http://localhost:3000/components/detail/news",
        "publishDate": "November 19, 2019",
        "featuredImage": {
          "src": "https://picsum.photos/320/228?random=2",
          "altText": "friendly kitten"
        }
      },
      {
        "title": "The University of Illinois Promoted to a Silver Bicycle Friendly University by the League of American Bicyclists",
        "permalink": "http://localhost:3000/components/detail/news",
        "publishDate": "November 19, 2019",
        "featuredImage": {
          "src": "https://picsum.photos/320/228?random=3",
          "altText": "friendly kitten"
        }
      },
      {
        "title": "The University of Illinois Promoted to a Silver Bicycle Friendly University by the League of American Bicyclists",
        "permalink": "http://localhost:3000/components/detail/news",
        "publishDate": "November 19, 2019",
        "featuredImage": {
          "src": "https://picsum.photos/320/228?random=4",
          "altText": "friendly kitten"
        }
      }
    ],
    "callToAction": {
      "text": "Read more news",
      "url": "#"
    }
  }
}
  • Content:
    .news-mini-component
        &--large
            @extends $componentWithMargin
    
        &--medium
            @extends $componentWithMarginMedium
    
        &--small
            @extends $componentWithMarginSmall
    
        &--dark
            --textColor white
    
        &--light
            --textColor charcoalLight
    
        &--dark
            --textColor white
    
        &--light
            --textColor charcoalLight
    
        &__title
            @extends $headline1
            color var(--textColor)
            margin-bottom 48px
    
        &__cards-grid
            margin-bottom 48px
    
  • URL: /components/raw/news-mini-component/news-mini-component.styl
  • Filesystem Path: components/components/news-mini-component/news-mini-component.styl
  • Size: 508 Bytes

There are no notes for this item.