CardsA quote with the name of its source, on a card with a coloured edge. The text is placeholder text.
<div class="quote-preview">
<div class="quote">"Quote text goes here."</div>
<div class="author">- Name of the source</div>
</div>
.quote-preview {
background: white;
border-radius: 8px;
padding: 1rem;
border-left: 3px solid #4f46e5;
width: 85%;
}
.quote-preview .quote {
font-size: 12px;
color: #4b5563;
margin-bottom: 0.5rem;
}
.quote-preview .author {
font-size: 10px;
color: #6b7280;
text-align: right;
}
This snippet has no JavaScript.
Cards
Cards
Cards