mirror of
https://github.com/uiverse-io/galaxy.git
synced 2025-11-28 05:00:22 +08:00
86 lines
1.4 KiB
HTML
86 lines
1.4 KiB
HTML
<div class="card card-5">
|
|
<div class="card__icon">🏆</div>
|
|
<p class="card__exit">※</p>
|
|
<div class="text">Ut aliquip ex ea commodo consequat. Duis aute irure dolor</div>
|
|
<p class="card__apply">
|
|
<a class="card__link" href="#">Apply Now <i class="fas fa-arrow-right"></i></a>
|
|
</p>
|
|
</div>
|
|
<style>
|
|
/* From Uiverse.io by Shoh2008 - Tags: card */
|
|
.card {
|
|
margin: 20px;
|
|
padding: 20px;
|
|
width: 300px;
|
|
min-height: 200px;
|
|
display: grid;
|
|
grid-template-rows: 20px 50px 1fr 50px;
|
|
border-radius: 10px;
|
|
box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.25);
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.card:hover {
|
|
box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.4);
|
|
transform: scale(1.01);
|
|
}
|
|
|
|
.card__link,
|
|
.card__exit,
|
|
.card__icon {
|
|
position: relative;
|
|
text-decoration: none;
|
|
color: rgba(255, 255, 255, 0.9);
|
|
}
|
|
|
|
.card__link::after {
|
|
position: absolute;
|
|
top: 25px;
|
|
left: 0;
|
|
content: "";
|
|
width: 0%;
|
|
height: 3px;
|
|
background-color: rgba(255, 255, 255, 0.6);
|
|
transition: all 0.5s;
|
|
}
|
|
|
|
.card__link:hover::after {
|
|
width: 100%;
|
|
}
|
|
|
|
.text {
|
|
color: white;
|
|
}
|
|
|
|
.card__exit {
|
|
grid-row: 1/2;
|
|
justify-self: end;
|
|
}
|
|
|
|
.card__icon {
|
|
grid-row: 2/3;
|
|
font-size: 30px;
|
|
}
|
|
|
|
.card__title {
|
|
grid-row: 3/4;
|
|
font-weight: 400;
|
|
color: #ffffff;
|
|
}
|
|
|
|
.card__apply {
|
|
grid-row: 4/5;
|
|
align-self: center;
|
|
}
|
|
|
|
.card-5 {
|
|
background: radial-gradient(#f588d8, #c0a3e5);
|
|
}
|
|
|
|
@media (max-width: 1600px) {
|
|
.cards {
|
|
justify-content: center;
|
|
}
|
|
}
|
|
|
|
</style>
|