mirror of
https://github.com/LukasJoswiak/etch.git
synced 2024-05-16 21:28:31 -04:00
add a hover effect for the profile image (hardcoded in CSS, unfortunately)
This commit is contained in:
parent
391ecb299d
commit
5918390fe0
|
@ -348,3 +348,21 @@ main#content .profile-image {
|
|||
top: 5%;
|
||||
left: 10%;
|
||||
}
|
||||
|
||||
.image-wrapper::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-image: url('/img/broccoli.jpg');
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
opacity: 0;
|
||||
transition: opacity 0.3s;
|
||||
}
|
||||
|
||||
.image-wrapper:hover::before {
|
||||
opacity: 1;
|
||||
}
|
||||
|
|
|
@ -11,8 +11,10 @@
|
|||
{{ .Content }}
|
||||
</div>
|
||||
<div class="image-content image-accent">
|
||||
<img src="{{ "img/09_headshot.jpg" | absURL }}" alt="Your Name" class="profile-image">
|
||||
</div>
|
||||
<div class="image-wrapper">
|
||||
<img src="{{ "img/09_headshot.jpg" | absURL }}" alt="Your Name" class="profile-image">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</article>
|
||||
{{ end }}
|
||||
|
|
Loading…
Reference in a new issue