feat: add popup quote

This commit is contained in:
john-emerson14
2020-03-23 14:26:15 -03:00
parent f143b7da6d
commit 8c0ebb9aef
2 changed files with 20 additions and 34 deletions

View File

@@ -25,16 +25,10 @@
<div class="popup"> <div class="popup">
<div class="popup-photo"> <div class="popup-photo">
<img src="https://avatars0.githubusercontent.com/u/43749971" alt="Profile Picture"> <img src="https://avatars0.githubusercontent.com/u/43749971" alt="Profile Picture">
</div> <div class="popup-quote">
<!-- <div class="popup-text">
<h1>
John Emerson
</h1>
<p>
But... the sensation that I've lost something lingers for a longtime after I wake up. But... the sensation that I've lost something lingers for a longtime after I wake up.
</p> </div>
</div> --> </div>
<a class="popup-close" onclick="history.back()">&times;</a> <a class="popup-close" onclick="history.back()">&times;</a>
</div> </div>
@@ -59,7 +53,7 @@
class="fa fa-play-circle">&nbsp;</i>MyAnimeList</a> class="fa fa-play-circle">&nbsp;</i>MyAnimeList</a>
</div> </div>
<div id="profileQuote"> <div id="hashtag">
#SejaFeliz❤ #SejaFeliz❤
</div> </div>

View File

@@ -78,7 +78,7 @@ body {
color: var(--bgColor); color: var(--bgColor);
} }
#profileQuote { #hashtag {
position: relative; position: relative;
padding-bottom: 20px; padding-bottom: 20px;
color: var(--accentColor); color: var(--accentColor);
@@ -160,13 +160,27 @@ body {
max-height: 500px; max-height: 500px;
width: auto; width: auto;
height: auto; height: auto;
margin: 64px; margin: 56px;
background-color: var(--accentColor); background-color: var(--accentColor);
/* transform: rotate(32deg); */ /* transform: rotate(32deg); */
transform: scale(0); transform: scale(0);
transition: .5s ease-in-out; transition: .5s ease-in-out;
} }
.popup-quote {
font-family : Baskerville, Georgia, serif;
font-style : italic;
position: absolute;
bottom: 0;
right: 0;
left: 0;
color: var(--accentColor);
padding: 20px;
background-color: rgba(0, 0, 0, 0.7);
text-align: center;
font-size: 1rem;
}
.popup-photo { .popup-photo {
display: flex; display: flex;
width: 100%; width: 100%;
@@ -178,28 +192,6 @@ body {
height: 100%; height: 100%;
} }
.popup-text {
display: flex;
flex-direction: column;
justify-content: center;
width: 80%;
height: 100%;
}
.popup-text h1 {
font-size: 2rem;
font-weight: bold;
margin-bottom: 2rem;
text-transform: uppercase;
color: var(--bgColor2);
}
.popup-text p {
font-size: 0.8rem;
color: var(--bgColor2);
line-height: 1.5;
}
.overlay:target { .overlay:target {
visibility: visible; visibility: visible;
opacity: 1; opacity: 1;