<div class="art-homepage-news-card">
<div class="art-homepage-news-card__info">
<h3 class="linked-title linked-title--art linked-title--light">
<a href="https://google.com" class="
linked-title__link linked-title__link--light
">
Graphic Design Assistant Professor Juan Salamanca Featured by Scholarly Commons<span class="linked-title__link-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>
</a>
</h3>
<p class="art-homepage-news-card__date">March 13, 2021</p>
</div>
<div class="art-homepage-news-card__image">
<figure class="captioned-image">
<picture class="captioned-image__picture">
<source srcset="https://picsum.photos/500/380?random=1" type="image/webp">
<img class="captioned-image__gallery-image" loading="lazy" src="https://picsum.photos/500/380?random=1" alt="">
</picture>
</figure>
</div>
</div>
{% import "bits/macros/imageSource.twig" as imageMacros %}
<div class="art-homepage-news-card">
<div class="art-homepage-news-card__info">
{% include 'bits/linked-title/linked-title.twig' with {
element: 'h3',
text: post.title,
url: post.permalink
} %}
<p class="art-homepage-news-card__date">{{ post.publishDate }}</p>
</div>
{% if post.featuredImage %}
<div class="art-homepage-news-card__image">
{{ imageMacros.createHeightOnlyCropForGallery(post.featuredImage, 443) }}
</div>
{% endif %}
</div>
{
"siteUnit": "art",
"departmentName": "School of Art and Design",
"background": "light",
"post": {
"title": "Graphic Design Assistant Professor Juan Salamanca Featured by Scholarly Commons",
"permalink": "https://google.com",
"publishDate": "March 13, 2021",
"featuredImage": {
"src": "https://picsum.photos/500/380?random=1",
"alText": "some alt text"
}
}
}
.art-homepage-news-card
width 100%
display grid
grid-template-columns 1fr
grid-gap 16px
+above(mediumDeviceBreakpoint)
grid-template-columns 66.66% 33.33%
grid-gap 0
+above(largeDeviceBreakpoint)
display block
&__info
background-color white
padding 24px
+above(mediumDeviceBreakpoint)
padding 32px
& .linked-title__link
@extends $primaryLead
&__date
@extends $detail
margin-top 4px
& .captioned-image__gallery-image
object-fit cover
object-position center
width 100%
height 100%
max-height 250px
+above(largeDeviceBreakpoint)
height auto
width 100%
max-height 500px
There are no notes for this item.