mirror of
https://github.com/uiverse-io/galaxy.git
synced 2025-11-28 05:00:22 +08:00
72 lines
1.3 KiB
HTML
72 lines
1.3 KiB
HTML
<div class="card">
|
|
<div class="header">
|
|
<div class="image">
|
|
<span class="tag">Art</span>
|
|
</div>
|
|
<div class="date">
|
|
<span>6 min ago</span>
|
|
</div>
|
|
</div>
|
|
<div class="info">
|
|
<a rel="noopener noreferrer" href="#" class="block">
|
|
<span class="title">Facere ipsa nulla corrupti praesentium </span>
|
|
</a>
|
|
<p class="description">Lorem ipsum dolor sit amet consectetur, adipisicing elit. Repellat, excepturi. Lorem ipsum dolor sit ...</p>
|
|
</div>
|
|
</div>
|
|
|
|
<style>
|
|
/* From Uiverse.io by Yaya12085 - Tags: card */
|
|
.card {
|
|
padding: 10px;
|
|
max-width: 260px;
|
|
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
|
|
background-color: rgb(255, 255, 255);
|
|
font-family: sans-serif;
|
|
}
|
|
|
|
.content {
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
.content .header {
|
|
margin-top: 0.5rem;
|
|
}
|
|
|
|
.image {
|
|
width: 100%;
|
|
height: 150px;
|
|
border-radius: 4px;
|
|
background-color: rgb(205, 235, 255);
|
|
padding: 9px;
|
|
}
|
|
|
|
.tag {
|
|
text-transform: capitalize;
|
|
background-color: rgba(0, 0, 0, 0.425);
|
|
padding: 2px 8px;
|
|
border-radius: 4px;
|
|
color: #fff;
|
|
}
|
|
|
|
.date {
|
|
display: flex;
|
|
font-size: 0.75rem;
|
|
line-height: 1rem;
|
|
align-items: center;
|
|
margin: 2px;
|
|
}
|
|
|
|
.title {
|
|
display: block;
|
|
font-size: 1.25rem;
|
|
line-height: 1.35rem;
|
|
font-weight: 600;
|
|
padding-bottom: 5px;
|
|
padding-top: 14px;
|
|
}
|
|
|
|
.description {
|
|
line-height: 1.375;
|
|
}
|
|
</style>
|