mirror of
https://github.com/uiverse-io/galaxy.git
synced 2025-11-28 13:10:21 +08:00
38 lines
1.1 KiB
HTML
38 lines
1.1 KiB
HTML
<div class="card">
|
|
<div class="card-icon">
|
|
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-collection" viewBox="0 0 16 16"> <path d="M2.5 3.5a.5.5 0 0 1 0-1h11a.5.5 0 0 1 0 1h-11zm2-2a.5.5 0 0 1 0-1h7a.5.5 0 0 1 0 1h-7zM0 13a1.5 1.5 0 0 0 1.5 1.5h13A1.5 1.5 0 0 0 16 13V6a1.5 1.5 0 0 0-1.5-1.5h-13A1.5 1.5 0 0 0 0 6v7zm1.5.5A.5.5 0 0 1 1 13V6a.5.5 0 0 1 .5-.5h13a.5.5 0 0 1 .5.5v7a.5.5 0 0 1-.5.5h-13z"></path> </svg>
|
|
</div>
|
|
<span class="card-body">
|
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
|
|
</span>
|
|
</div>
|
|
<style>
|
|
/* From Uiverse.io by Kemboi-Dun - Tags: simple, minimalist, card, hover */
|
|
.card {
|
|
width: 300px;
|
|
height: 300px;
|
|
background: #e4e3e3da;
|
|
border-radius: 1em;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-evenly;
|
|
gap: 0.4em;
|
|
align-items: flex-start;
|
|
padding: 1em 1.5em;
|
|
transition: all 0.5s ease;
|
|
box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
|
|
}
|
|
|
|
.card:hover {
|
|
background: #f1f1f1;
|
|
}
|
|
|
|
.card-icon svg {
|
|
height: 4rem;
|
|
width: 4rem;
|
|
}
|
|
|
|
.card-body {
|
|
text-align: justify;
|
|
}
|
|
</style>
|