galaxy/Cards/anniekoop_good-wasp-72.html

112 lines
No EOL
2 KiB
HTML

<div class="card">
<div class="container">
<div class="left">
<div class="status-ind"></div>
</div>
<div class="right">
<div class="text-wrap">
<p class="text-content">
<a class="text-link" href="#">Jane Doe</a> invited you to edit the
<a class="text-link" href="#">Web Design</a> file.
</p>
<p class="time">2 hours ago</p>
</div>
<div class="button-wrap">
<button class="primary-cta">View file</button>
<button class="secondary-cta">Mark as read</button>
</div>
</div>
</div>
</div>
<style>
/* From Uiverse.io by anniekoop - Tags: simple, neumorphism, action, alert, minimalist, notification, card, light */
.card {
width: fit-content;
background-color: #f2f3f7;
border-radius: 0.75em;
cursor: pointer;
transition: ease 0.2s;
box-shadow: 1em 1em 1em #d8dae0b1, -0.75em -0.75em 1em #ffffff;
border: 1.5px solid #f2f3f7;
}
.card:hover {
background-color: #d3ddf1;
border: 1.5px solid #1677ff;
}
.container {
margin-top: 1.25em;
margin-bottom: 1.375em;
margin-left: 1.375em;
margin-right: 2em;
display: flex;
flex-direction: row;
gap: 0.75em;
}
.status-ind {
width: 0.625em;
height: 0.625em;
background-color: #ff0000;
margin: 0.375em 0;
border-radius: 0.5em;
}
.text-wrap {
display: flex;
flex-direction: column;
gap: 0.25em;
color: #333;
}
.time {
font-size: 0.875em;
color: #777;
}
.text-link {
font-weight: 500;
text-decoration: none;
color: black;
}
.button-wrap {
display: flex;
flex-direction: row;
gap: 1em;
align-items: center;
}
.secondary-cta {
background-color: transparent;
border: none;
font-size: 15px;
font-weight: 400;
color: #666;
cursor: pointer;
}
.primary-cta {
font-size: 15px;
background-color: transparent;
font-weight: 600;
color: #1677ff;
border: none;
border-radius: 1.5em;
cursor: pointer;
}
button:hover {
text-decoration: underline;
}
.right {
display: flex;
flex-direction: column;
gap: 0.875em;
}
</style>