<article class="featured-event featured-event--durp">
    <div class="featured-event__image featured-event__image--durp">
        <figure class="captioned-image">
            <img class="captioned-image__image" src="https://picsum.photos/800/600?random=1" alt="friendly kitten" width="880" height="496">
            <figcaption class="captioned-image__caption captioned-image__caption--">
                caption
            </figcaption>
        </figure>

    </div>
    <div class="event-data-with-icon">
        <div class="event-data-with-icon__icon">
            <div class="featured-event__icon">
                <div class="calendar-page calendar-page--light calendar-page--durp">
                    <div class="calendar-page__month">
                        Feb
                    </div>
                    <div class="calendar-page__day">
                        7
                    </div>
                </div>
            </div>
        </div>
        <div class="event-data-with-icon__detail">
            <div class="featured-event__title">
                <h2 class="linked-title linked-title--durp linked-title--dark">
                    <a href="#" class="
            linked-title__link linked-title__link--dark
            
    ">
        Re-imagining Realities: Using Digital Vernaculars for Physical Change<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="featured-event__date">
                February 7, 2020
            </div>
            <div class="featured-event__time featured-event__time--dark">
                <span class="featured-event__dayofweek">Tuesday, </span> 12:30 PM - 2:30 PM
            </div>
            <div class="featured-event__location-link">
                <a target="_blank" href="https://maps.google.com/maps?q=611%20Taft%20Drive%0D%0A%20Champaign%20IL%2061820" class="featured-event__location">
                                                                611 Taft Drive<br />
 Champaign IL 61820
                            </a>
            </div>
            <div class="featured-event__location-link">
                <a target="_blank" href="https://zoom.com" class="event-summary__location">
                                Details coming soon
                            </a>
            </div>
            <div class="featured-event__location-link">
                <a target="_blank" href="https://maps.google.com/maps?q=611%20Taft%20Drive%0D%0A%20Champaign%20IL%2061820" class="featured-event__location">
                                                                611 Taft Drive<br />
 Champaign IL 61820
                            </a>
            </div>
        </div>
    </div>
</article>
<article class="featured-event featured-event--{{ siteUnit }}">
    <div class="featured-event__image featured-event__image--{{ siteUnit }}">
        {% import "bits/macros/imageSource.twig" as imageMacros %}
        {{ imageMacros.create(post.featuredImage, 880,496) }}
    </div>
    {% embed 'templates/event-data-with-icon/event-data-with-icon.twig' %}
        {% block icon %}
            <div class="featured-event__icon">
                {% include 'bits/calendar-page/calendar-page.twig' with {
                    shortStartMonth: post.shortStartMonth,
                    startDay: post.startDay,
                    background: 'light'
                }%}
            </div>
        {% endblock %}
        {% block information %}
            <div class="featured-event__title">
                {% include 'bits/linked-title/linked-title.twig' with {
                    url: post.permalink,
                    text: post.title,
                } %}
            </div>
            <div class="featured-event__date">
                {% if post.isRecurring | default %}
                    <span class="featured-event__recurring-icon">
                        {% include 'bits/icons/recurring.twig' %}
                    </span>
                {% endif %}
                {{ post.fullDate }}
            </div>
            <div class="featured-event__time featured-event__time--{{ background }}">
                {% if post.startDayOfWeek | default %}
                    <span class="featured-event__dayofweek">{{ post.startDayOfWeek }}, </span>
                {% endif %}
                {% if post.isAllDay | default %}
                    All day
                {% else %}
                    {{ post.startTime }} - {{ post.endTime }}
                {% endif %}
            </div>
            {% if post.locations | default %}
                {% for location in post.locations %}
                    <div class="featured-event__location-link">
                        {% if location.physicalAddress | default %}
                            <a target="_blank"
                               href="https://maps.google.com/maps?q={{ location.physicalAddress|url_encode }}"
                               class="featured-event__location">
                                {% if location.physicalBuildingNumber | default %}
                                    {{ location.physicalBuildingNumber }},
                                {% endif %}
                                {{ location.physicalAddress|nl2br }}
                            </a>
                        {% elseif location.virtualLocation | default %}
                            <a target="_blank" href="{{ location.virtualLocation }}"
                               class="event-summary__location">
                                {{ location.locationText|nl2br }}
                            </a>
                        {% elseif location.locationText | default %}
                            {{ location.locationText|nl2br }}
                        {% endif %}
                    </div>
                {% endfor %}
            {% endif %}
        {% endblock %}
    {% endembed %}
</article>
{
  "siteUnit": "durp",
  "departmentName": "Department of Urban and Regional Planning",
  "background": "dark",
  "post": {
    "title": "Re-imagining Realities: Using Digital Vernaculars for Physical Change",
    "permalink": "#",
    "fullDate": "February 7, 2020",
    "startTime": "12:30 PM",
    "endTime": "2:30 PM",
    "startDayOfWeek": "Tuesday",
    "shortStartMonth": "Feb",
    "startDay": "7",
    "locations": [
      {
        "physicalAddress": "611 Taft Drive\r\n Champaign IL 61820",
        "buildingNumber": "Room M230 Temple Buell Hall"
      },
      {
        "virtualLocation": "https://zoom.com",
        "locationText": "Details coming soon"
      },
      {
        "physicalAddress": "611 Taft Drive\r\n Champaign IL 61820",
        "buildingNumber": "225 Temple Buell Hall"
      }
    ],
    "featuredImage": {
      "src": "https://picsum.photos/800/600?random=1",
      "altText": "friendly kitten",
      "caption": "caption"
    }
  }
}
  • Content:
    .featured-event
        --borderColor illiniOrange
        --dateColor altgeld
        --iconFillColor illiniOrange
        --locationColorActive altgeld
    
        &--arch
            --borderColor industrialBlue
            --dateColor industrialBlue
            --iconFillColor industrialBlue
            --locationColorActive industrialBlue
    
        &--art
            --borderColor archesBlue
            --dateColor archesBlueDark
            --iconFillColor archesBlue
            --locationColorActive archesBlueDark
    
        &--dance
            --borderColor archesBlue
            --dateColor archesBlueDark
            --iconFillColor archesBlue
            --locationColorActive archesBlueDark
    
        &--durp
            --borderColor illiniOrange
            --dateColor altgeld
            --iconFillColor illiniOrange
            --locationColorActive altgeld
    
        &--theatre
            --borderColor illiniOrange
            --dateColor altgeld
            --iconFillColor illiniOrange
            --locationColorActive altgeld
    
        &--music
            --borderColor illiniOrange
            --dateColor illiniOrange
            --iconFillColor illiniOrange
            --locationColorActive illiniOrange
    
        &__image
            margin-bottom 32px
            &--durp
                position relative
                &:after
                    content ""
                    display block
                    width 100vw
                    background-color illiniOrange
                    mix-blend-mode multiply
                    position absolute
                    top 0
                    bottom 0
                    left "calc(100% - %s)" % 11%
                &:before
                    content ""
                    display block
                    width 100vw
                    background-color illiniOrange
                    position absolute
                    top 0
                    bottom 0
                    left calc(100%)
        &__title
            margin-bottom 8px
            a
                @extends $primaryLead
        &__date
            @extends $headline3
            color var(--dateColor)
            display flex
            margin-bottom 4px
    
        &__recurring-icon
            margin-right 12px
    
            & svg
                & .recurring-icon__shape
                    fill var(--iconFillColor)
    
        &__time
            @extends $detail
    
        &__locations
            margin-bottom 24px
            &--not-recurring
                margin-left 88px
    
        &__location
            @extends $detail
            border-bottom 1px solid var(--borderColor)
            text-decoration none
    
            &:hover
            &:focus
                color var(--locationColorActive)
    
        &--music &__title a
        &--music .calendar-page
            color white
        &--music &__time
        &--music &__location
        &--music .event-summary__location
        &--music .captioned-image__caption
            color rgba(255, 255, 255, 0.75)
    
  • URL: /components/raw/featured-event/featured-event.styl
  • Filesystem Path: components/partials/featured-event/featured-event.styl
  • Size: 2.7 KB

There are no notes for this item.