rough draft of before/after gallery + css tweaks

This commit is contained in:
2025-09-30 22:01:14 -04:00
parent 6c05581493
commit 333caf4688
4 changed files with 59 additions and 2 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 MiB

+1 -1
View File
@@ -171,7 +171,7 @@ footer {
}
#book-button:hover {
cursor: pointer;
background-color: var(--dark-gold);
background-color: #000;
box-shadow: 0px 0px 30px var(--gold);
}
#book-button:active {
+58 -1
View File
@@ -46,6 +46,46 @@
text-align: left;
}
/** GALLERY!! */
#gallery {
display: flex;
flex-direction: column;
align-items: center;
}
.image-pair {
position: relative;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
width: 75%;
}
.before-img {
max-height: 100%;
}
.after-img-container {
position: absolute;
top: 0;
max-height: 100%;
opacity: 0%;
transition: .5s;
}
.after-img-container:hover {
opacity: 100%;
}
.after-img {
height: 100%;
width: 100%;
}
/** DESKTOP RULES */
@media screen and (min-width: 851px) {
#reviewContainer {
@@ -59,6 +99,10 @@
overflow: hidden;
}
.image-pair, .before-img, .after-img-container {
width: 80%;
}
}
/* MOBILE RULES */
@@ -73,6 +117,10 @@
.review-card {
width: 100%;
}
.image-pair, .before-img, .after-img-container {
width: 100%;
}
}
</style>
</head>
@@ -107,9 +155,18 @@
<main id="main-content">
<section id="reviews">
<h1 style="margin-bottom: 7rem">Reviews</h1>
<div id="reviewContainer"></div>
</section>
<section id="gallery">
<h1 style="margin-bottom: 7rem">Gallery</h1>
<div class="image-pair">
<img class="before-img" src="assets/img/before1.jpg"></img>
<span class="after-img-container">
<img class="after-img" src="assets/img/after1.jpg"></img>
</span>
</div>
</section>
</main>
<footer>