Cards
Informação importante
Se você preferir poderá usar o 'CMS' para definir as imagens e textos dos cards. Para mais informações sobre como usar o 'CMS' acesse nossa documentação: https://docs.increazy.com/docs/dash/cms/intro
Card padrão com autor
- Preview
- HTML
- CSS
<article class="article-card">
<a href="#">
<figure class="article-card__image">
<img src="https://picsum.photos/360/180" alt="image" title="image" loading="lazy">
</figure>
<div class="article-card__content">
<span class="article-card__content--category">Category</span>
<h2 class="article-card__content--title">Why Japanese Websites Look So Different</h2>
<p class="article-card__content--subtitle">& how to analyze design choices without jumping to conclusions over the years...</p>
</div>
<div class="article-card__footer">
<figure class="author__avatar">
<img src="https://picsum.photos/32?grayscale" alt="avatar" title="avatar">
</figure>
<small class="author__name">John Doe</small>
<svg width="3" height="4" viewBox="0 0 3 4" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="1.5" cy="2" r="1.5" fill="#A7A7A7"/>
</svg>
<span>8 min. read</span>
</div>
</a>
</article>
.article-card{
width: 100%;
height: auto;
background-color: #fff;
border: 1px solid #E6E6E6;
border-radius: 4px;
}
.article-card:hover{
box-shadow: rgba(149, 157, 165, 0.2) 0px 3px 12px;
}
.article-card__image{
padding: 8px 8px 0px 8px;
background-color: #fff;
border-radius: 4px 4px 0px 0px;
}
.article-card__image img{
width: 100%;
height: 100%;
object-fit: cover;
border-radius: 4px;
}
.article-card__content{
padding: 16px 20px 0px 20px;
margin-bottom: 24px;
display: flex;
flex-direction: column;
row-gap: 8px;
}
.article-card__content--category{
font-size: 12px;
font-weight: 500;
line-height: 16.8px;
color: #FF3939;
}
.article-card__content--title{
font-size: 20px;
font-weight: 500;
line-height: 24px;
letter-spacing: -0.03em;
color: #2C2C2C;
}
.article-card__content--subtitle{
font-size: 14px;
font-weight: 400;
line-height: 19.6px;
color: #8E8E8E;
}
.article-card__footer{
display: flex;
flex-direction: row;
justify-content: flex-start;
align-items: center;
column-gap: 8px;
padding: 0px 20px 20px 20px;
}
.author__avatar{
width: 32px;
height: 32px;
border-radius: 999px;
overflow: hidden;
}
.author__name{
font-size: 16px;
font-weight: 500;
line-height: 22.4px;
text-align: left;
color: #2C2C2C;
}
.article-card__footer span{
font-size: 14px;
font-weight: 400;
line-height: 19.6px;
color: #8E8E8E;
}