CSS
This commit is contained in:
parent
524ce47eb6
commit
0aaec4181f
3 changed files with 40 additions and 32 deletions
|
@ -7,20 +7,20 @@ var highlightedWords = config.highlightedWords
|
||||||
function makeStars() {
|
function makeStars() {
|
||||||
var html = ""
|
var html = ""
|
||||||
|
|
||||||
for (let index = 0; index < 15; index++) {
|
for (let index = 0; index < 35; index++) {
|
||||||
html += `<div class="star"></div>`
|
html += `<div class="rainDrop"></div>`
|
||||||
}
|
}
|
||||||
html += "<style>"
|
html += "<style>"
|
||||||
for (let index = 0; index < 15; index++) {
|
for (let index = 0; index < 35; index++) {
|
||||||
html += `
|
html += `
|
||||||
.star:nth-of-type(${index + 1}) {
|
.rainDrop:nth-of-type(${index + 1}) {
|
||||||
animation: starAnim${index} ${15 + (Math.random() * 15)}s linear;
|
animation: rainAnim${index} 1s linear;
|
||||||
animation-iteration-count: infinite;
|
animation-iteration-count: infinite;
|
||||||
animation-delay: ${-Math.random() * 15}s;
|
animation-delay: ${Math.random() * 15}s;
|
||||||
}
|
}
|
||||||
`
|
`
|
||||||
var rando = Math.random() * 100
|
var rando = Math.random() * 100
|
||||||
html += `@keyframes starAnim${index} {
|
html += `@keyframes rainAnim${index} {
|
||||||
0% {
|
0% {
|
||||||
top: -10vh;
|
top: -10vh;
|
||||||
right: ${rando}vw;
|
right: ${rando}vw;
|
||||||
|
@ -29,7 +29,7 @@ function makeStars() {
|
||||||
|
|
||||||
100% {
|
100% {
|
||||||
top: 110vh;
|
top: 110vh;
|
||||||
right: calc(${rando}vw + ${5 - (Math.random() * 10)}vw);
|
right: calc(${rando}vw);
|
||||||
}
|
}
|
||||||
}`
|
}`
|
||||||
|
|
||||||
|
|
|
@ -22,22 +22,11 @@
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<h1>Welcome to <span>Violet's Purgatory</span></h1>
|
<h1>Welcome to <span class="mainTitle">Violet's Purgatory</span><span class="note">Commit {COMMIT_COUNT}</span><br></h1>
|
||||||
{BG_EFFECT}
|
{BG_EFFECT}
|
||||||
<main>
|
<main>
|
||||||
<p>Currently i'm working on the new system for word highlighting!</p>
|
<hr>
|
||||||
<p>You can see that it is pretty much the same as before, outside of the code being a little bit shorter and
|
{RANDOM_QUOTE}
|
||||||
more dispersed (I didn't know until recently that "replaceAll" was a function...)</p>
|
|
||||||
<p>The big difference, is unlike the original site, this can apply to all pages!</p>
|
|
||||||
|
|
||||||
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Quae sint magnam laborum architecto ratione est illo praesentium nemo dolorem quisquam at ipsum dignissimos accusantium, tenetur optio nisi culpa sapiente eum!
|
|
||||||
Aperiam, iste. Distinctio iste rem minus explicabo aut, nostrum voluptatum earum sit eveniet, qui harum! At eaque minus dolor, aliquam reiciendis dicta, obcaecati magni dolore nulla vero tempore. Dolor, odio.
|
|
||||||
Fugiat distinctio temporibus ipsa corporis. Rem suscipit atque enim debitis illo animi reiciendis, aliquid ea, neque corporis aut asperiores reprehenderit repudiandae porro veritatis. Autem magni eius enim amet expedita molestiae!
|
|
||||||
Aspernatur ipsam unde porro non, veritatis error! Ipsam nisi fugiat totam, dolore magnam, placeat aperiam aliquam porro necessitatibus et corrupti libero ea officia odio ad quisquam beatae rerum cumque aspernatur.
|
|
||||||
Earum officia quae doloribus culpa veritatis ea architecto provident, nesciunt, assumenda excepturi ipsam pariatur incidunt nobis animi quis fugiat saepe autem a alias tenetur adipisci fuga eos quidem repellat. Fugiat?
|
|
||||||
Pariatur incidunt maxime corrupti dolores impedit ullam quos, in architecto perferendis, culpa sint? Aspernatur impedit repudiandae hic eum veritatis molestiae debitis, incidunt ut pariatur provident explicabo nemo id molestias cumque.
|
|
||||||
Ab cumque accusamus alias. Temporibus beatae assumenda, accusamus nisi vitae qui laboriosam, animi minima sequi officia id exercitationem aliquid quaerat ipsum neque inventore, sint delectus sit dolorem quod! Error, repellendus?
|
|
||||||
Sapiente, minus autem, placeat fugit ipsam iste consequuntur quidem, aperiam natus vero labore reiciendis itaque temporibus non porro? Nostrum laboriosam debitis enim amet? Possimus non sed quas magnam placeat aliquid.</p>
|
|
||||||
</main>
|
</main>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
* {
|
* {
|
||||||
font-family: 'Rubik', Verdana, Geneva, Tahoma, sans-serif;
|
font-family: 'Rubik', Verdana, Geneva, Tahoma, sans-serif;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
font-weight: 200;
|
font-weight: 400;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
color: white;
|
color: white;
|
||||||
}
|
}
|
||||||
|
@ -22,35 +22,54 @@ body {
|
||||||
main {
|
main {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
animation: fadeDelay 3s cubic-bezier(0.075, 0.82, 0.165, 1);
|
animation: fadeDelay 3s cubic-bezier(0.075, 0.82, 0.165, 1);
|
||||||
|
width: 90%;
|
||||||
|
max-width: 1000px;
|
||||||
|
margin: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
body>h1 {
|
body>h1 {
|
||||||
animation: mainText 3s cubic-bezier(0.075, 0.82, 0.165, 1);
|
animation: mainText 3s cubic-bezier(0.075, 0.82, 0.165, 1);
|
||||||
margin: auto;
|
margin: auto;
|
||||||
max-width: 75%;
|
max-width: 75%;
|
||||||
|
/* outline: 1px white solid; */
|
||||||
}
|
}
|
||||||
|
|
||||||
.star {
|
hr {
|
||||||
|
border: 2px rgba(100, 0, 150, 0.5) solid;
|
||||||
|
margin: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.rainDrop {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
z-index: -2;
|
z-index: -2;
|
||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
font-size: 0.35rem;
|
width: 4px;
|
||||||
width: 40px;
|
height: 120px;
|
||||||
height: 40px;
|
background: rgba(0, 0, 150, 0.5);
|
||||||
background: radial-gradient(white, rgb(255, 255, 255, 0.25) 10%, transparent 50%);
|
}
|
||||||
|
|
||||||
|
.mainTitle {
|
||||||
|
font-size: 2.75rem;
|
||||||
|
color: rgb(215, 80, 255);
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.note {
|
||||||
|
color: gray;
|
||||||
|
font-size: 0.9rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes mainText {
|
@keyframes mainText {
|
||||||
0% {
|
0% {
|
||||||
transform: translateY(50vh) scale(1.5);
|
transform: translateY(calc(50vh - 2rem)) scale(1.5);
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
height: 0px;
|
height: 4rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
50% {
|
50% {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
height: 0px;
|
height: 4rem;
|
||||||
transform: translateY(50vh) scale(1);
|
transform: translateY(calc(50vh - 2rem)) scale(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
100% {
|
100% {
|
||||||
|
|
Loading…
Reference in a new issue