rough draft of before/after gallery + css tweaks
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 4.1 MiB |
Binary file not shown.
|
After Width: | Height: | Size: 5.4 MiB |
+1
-1
@@ -171,7 +171,7 @@ footer {
|
|||||||
}
|
}
|
||||||
#book-button:hover {
|
#book-button:hover {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
background-color: var(--dark-gold);
|
background-color: #000;
|
||||||
box-shadow: 0px 0px 30px var(--gold);
|
box-shadow: 0px 0px 30px var(--gold);
|
||||||
}
|
}
|
||||||
#book-button:active {
|
#book-button:active {
|
||||||
|
|||||||
+58
-1
@@ -46,6 +46,46 @@
|
|||||||
text-align: left;
|
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 */
|
/** DESKTOP RULES */
|
||||||
@media screen and (min-width: 851px) {
|
@media screen and (min-width: 851px) {
|
||||||
#reviewContainer {
|
#reviewContainer {
|
||||||
@@ -59,6 +99,10 @@
|
|||||||
|
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.image-pair, .before-img, .after-img-container {
|
||||||
|
width: 80%;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* MOBILE RULES */
|
/* MOBILE RULES */
|
||||||
@@ -73,6 +117,10 @@
|
|||||||
.review-card {
|
.review-card {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.image-pair, .before-img, .after-img-container {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
@@ -107,9 +155,18 @@
|
|||||||
|
|
||||||
<main id="main-content">
|
<main id="main-content">
|
||||||
<section id="reviews">
|
<section id="reviews">
|
||||||
<h1 style="margin-bottom: 7rem">Reviews</h1>
|
|
||||||
<div id="reviewContainer"></div>
|
<div id="reviewContainer"></div>
|
||||||
</section>
|
</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>
|
</main>
|
||||||
|
|
||||||
<footer>
|
<footer>
|
||||||
|
|||||||
Reference in New Issue
Block a user