mirror of
https://github.com/johnggli/linktree.git
synced 2026-08-16 22:46:04 +01:00
feat: add popup quote
This commit is contained in:
14
index.html
14
index.html
@@ -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()">×</a>
|
<a class="popup-close" onclick="history.back()">×</a>
|
||||||
</div>
|
</div>
|
||||||
@@ -59,7 +53,7 @@
|
|||||||
class="fa fa-play-circle"> </i>MyAnimeList</a>
|
class="fa fa-play-circle"> </i>MyAnimeList</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="profileQuote">
|
<div id="hashtag">
|
||||||
#SejaFeliz❤
|
#SejaFeliz❤
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
40
style.css
40
style.css
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user