Added stock background images to service cards.

This commit is contained in:
Bob Vandevliet 2024-06-14 13:57:27 +02:00
parent 0607f4ff8f
commit 192c2af1ec
2 changed files with 45 additions and 8 deletions

View file

@ -54,4 +54,39 @@ h4:hover .anchor-link,
h5:hover .anchor-link,
h6:hover .anchor-link {
opacity: 1;
}
.text-shadow {
text-shadow:
-1px -1px 3px rgba(0, 0, 0, 0.3),
-1px 0px 3px rgba(0, 0, 0, 0.3),
-1px 1px 3px rgba(0, 0, 0, 0.3),
0px -1px 3px rgba(0, 0, 0, 0.3),
0px 0px 3px rgba(0, 0, 0, 0.3),
0px 1px 3px rgba(0, 0, 0, 0.3),
1px -1px 3px rgba(0, 0, 0, 0.3),
1px 0px 3px rgba(0, 0, 0, 0.3),
1px 1px 3px rgba(0, 0, 0, 0.3);
}
.card-img {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
}
.card-img-overlay {
position: unset;
z-index: 1;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.7);
transition: background-color 0.2s;
}
.card:hover .card-img-overlay {
background-color: rgba(0, 0, 0, 0.4);
}