Opening animation, remove bootstrap

This commit is contained in:
Violet 2024-02-08 18:45:32 +00:00 committed by GitHub
parent 2b615282af
commit 8c05dff3fd
8 changed files with 73 additions and 395 deletions

View file

@ -63,6 +63,7 @@
"birds": "yellow",
"Pissing": "yellow",
"Starwalker": "yellow",
"word highlighting": "yellow"
"word highlighting": "yellow",
"replaceAll": "limegreen"
}
}

View file

@ -182,15 +182,6 @@ app.use((req, res, next) => {
`)
})
function updateCSS() {
var css = fs.readFileSync(path.join(resourcePath, 'style.css')).toString()
css = minify.minify(css)
fs.writeFileSync(path.join(staticpath, 'style.css'), css) // Will add more in the future
}
updateCSS()
async function updateCommits() {
var codebergResponse = await (await fetch(`https://codeberg.org/Bingus_Violet/Violets-Purgatory/src/branch/${process.env.BRANCH || "origin"}`)).text()
var commits = codebergResponse.substring(0, codebergResponse.indexOf("Commits"))

View file

@ -1,347 +0,0 @@
@import url('./bootstrap.css');
@font-face {
font-display: swap;
font-family: 'Rubik';
font-style: normal;
font-weight: 400;
src: url('./fonts/rubik-v28-latin-regular.woff2') format('woff2');
}
* {
font-family: 'Rubik', Verdana, Geneva, Tahoma, sans-serif;
padding: 0;
text-align: center;
}
h1 {
color: rgb(225, 215, 255);
font-size: 2.5rem;
}
h2 {
font-size: 2rem;
color: rgb(225, 215, 255)
}
h3 {
font-size: 1.65rem
}
h3,
li {
color: white;
}
ul, ol {
display: inline-block
}
li {
font-size: 1.2rem;
text-align: left;
}
body,
html {
overflow-x: hidden;
margin: auto;
background-color: rgb(15, 4, 45);
background: linear-gradient(rgb(20, 4, 55), black);
width: 100vw;
height: 100vh;
margin: 0;
padding: 0;
background-attachment: local;
}
body {
padding: 2.5%;
}
.fadediv {
animation-name: fade-in;
animation-duration: .75s;
animation-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1);
margin: auto;
max-width: 1000px;
}
a {
color: rgb(175, 225, 255);
display: inline-block;
transition: 1.5s all cubic-bezier(0.075, 0.82, 0.165, 1);
}
.chip {
position: relative;
z-index: 3;
font-size: 1.3rem;
border: 2px gray solid;
border-radius: 6px;
background-color: black;
padding: 8px;
margin: 3px;
display: inline-block;
transform: scale(0.95);
transition: transform 1.25s cubic-bezier(0.075, 0.82, 0.165, 1), background-color 2s cubic-bezier(0.075, 0.82, 0.165, 1);
}
.chip,
.chip>* {
text-decoration: none;
}
.chip:hover {
background-color: rgb(10, 0, 25);
transform: scale(1);
/* font-size: 1.35rem; */
border-color: white;
transition: transform 0.75s cubic-bezier(0.075, 0.82, 0.165, 1), background-color 3s cubic-bezier(0.075, 0.82, 0.165, 1);
}
.chip:hover > .smallimg {
background-color: rgb(10, 0, 25);
}
.activity {
border-width: 3px;
border-radius: 10px;
overflow: hidden;
margin: auto;
padding: 0;
display: flex;
position: relative;
z-index: 3;
}
.activity>p {
width: 100%;
overflow-wrap: break-word;
}
.activity>img {
width: 128px;
aspect-ratio: 1/1;
object-fit: cover;
}
.activity>.smallimg {
width: 64px;
height: 64px;
position: absolute;
bottom: 0px;
left: 72px;
border-radius: 50px;
background: black;
padding: 5px;
/* border: 2px gray solid; */
transform: scale(0.9);
}
.activity>.smallimg:hover {
transform: scale(1);
}
a:hover {
color: white;
transition: 0.5s all cubic-bezier(0.075, 0.82, 0.165, 1);
}
p {
color: white;
font-size: 1.2rem;
padding: 0;
margin: 10px;
}
img:not(.project-inner > div > img) {
width: 100%;
max-width: 135px;
transition: all 2s cubic-bezier(0.075, 0.82, 0.165, 1);
}
.pfp {
border-radius: 15px;
border: darkgray 4px solid;
width: 60%;
aspect-ratio: 1/1;
transform: scale(0.9);
border-radius: 50%;
}
.pfp:hover {
transform: scale(1);
border-color: rgb(255, 200, 255);
object-fit: cover;
}
.emoji {
width: 32px;
border-radius: 10%;
/* border: 1px gray solid; */
}
hr {
color: white;
opacity: 0.25;
border-width: 2px;
margin: 15px 10%;
}
#card {
background-color: rgb(15, 5, 80);
padding: 15px;
border: 2px white solid;
margin: 20px auto;
width: 95%;
max-width: 800px;
z-index: 3;
position: relative;
}
.me {
border-color: limegreen;
}
.project {
background-color: rgba(35, 35, 35, 0.8);
padding: 15px;
border: 2px gray solid;
margin: 20px 0px;
border-radius: 15px;
}
.project-inner {
overflow: hidden;
padding: 0;
margin: auto;
z-index: 3;
}
.project-inner>div>img {
object-fit: cover;
border: 2px white solid;
width: 80%;
max-width: 500px;
margin: auto;
border-radius: 10px;
}
.project>p {
display: inline-block;
}
/* I am so sorry about this code,,, */
.love::before {
content: "<3 ";
color: rgb(255, 100, 150);
}
.like::before {
content: ":) ";
color: limegreen;
}
.silly::before {
content: ":P ";
color: aqua;
}
.fine::before {
content: ":/ ";
color: yellow;
}
.hate::before {
content: ">:( ";
color: red;
}
.love {
border-color: rgb(255, 100, 150);
}
.like {
border-color: limegreen;
}
.silly {
border-color: aqua;
}
.fine {
border-color: yellow;
}
.hate {
border-color: red;
}
.up {
border-color: limegreen;
}
.mid {
border-color: yellow;
}
.down {
border-color: red;
}
.post {
background-color: rgba(85, 50, 150, 0.3);
border: 2px gray solid;
display: inline-block;
/* border-radius: 15px; */
padding: 10px;
margin: 8px;
}
.minipfp {
width: 70px;
display: inline-block;
margin-right: 10px;
border: 2px lightgray solid;
border-radius: 5px;
}
.lengthBar {
background-color: rgb(50, 40, 60);
display: inline-block;
width: 80%;
height: 10px;
padding: 0;
overflow: hidden;
border-radius: 5px;
margin-right: 1.9%;
}
.lengthBar>span {
margin: 0;
padding: 0;
width: 100%;
background-color: rgb(200, 200, 230);
height: 20px;
display: block;
position: relative;
}
.note {
font-size: 0.95rem;
color: lightgray;
}
@keyframes fade-in {
0% {
opacity: 0;
transform: translateY(50vh);
}
100% {
opacity: 1;
transform: none;
}
}

File diff suppressed because one or more lines are too long

View file

@ -12,7 +12,9 @@
<meta name="darkreader-lock">
<meta content="Welcome to Violet's Purgatory" property="og:title" />
<meta content="Hi, I'm Violet, a 15 year old web developer with strong ambitions. You can find more info on my site!" property="og:description" />
<meta
content="Hi, I'm Violet, a 15 year old web developer with strong ambitions. You can find more info on my site!"
property="og:description" />
<meta content="https://api.violets-purgatory.dev/v1/pfp" property="og:image" />
<meta content="#a200ff" data-react-helmet="true" name="theme-color" />
@ -21,9 +23,12 @@
<body>
<h1>Welcome to Violet's Purgatory</h1>
<p>Currently i'm working on the new system for word highlighting!</p>
<p>You can see that it is pretty much the same as before, outside of the code being a little bit shorter and 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 <a href="./test.html">apply to all pages!</a></p>
<main>
<p>Currently i'm working on the new system for word highlighting!</p>
<p>You can see that it is pretty much the same as before, outside of the code being a little bit shorter and
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>
</main>
</body>
</html>

View file

@ -1 +1,62 @@
@import url('./bootstrap.css');@font-face {font-display: swap;font-family: 'Rubik';font-style: normal;font-weight: 400;src: url('./fonts/rubik-v28-latin-regular.woff2') format('woff2');}* {font-family: 'Rubik', Verdana, Geneva, Tahoma, sans-serif;padding: 0;text-align: center;}h1 {color: rgb(225, 215, 255);font-size: 2.5rem;}h2 {font-size: 2rem;color: rgb(225, 215, 255)}h3 {font-size: 1.65rem}h3,li {color: white;}ul, ol {display: inline-block}li {font-size: 1.2rem;text-align: left;}body,html {overflow-x: hidden;margin: auto;background-color: rgb(15, 4, 45);background: linear-gradient(rgb(20, 4, 55), black);width: 100vw;height: 100vh;margin: 0;padding: 0;background-attachment: local;}body {padding: 2.5%;}.fadediv {animation-name: fade-in;animation-duration: .75s;animation-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1);margin: auto;max-width: 1000px;}a {color: rgb(175, 225, 255);display: inline-block;transition: 1.5s all cubic-bezier(0.075, 0.82, 0.165, 1);}.chip {position: relative;z-index: 3;font-size: 1.3rem;border: 2px gray solid;border-radius: 6px;background-color: black;padding: 8px;margin: 3px;display: inline-block;transform: scale(0.95);transition: transform 1.25s cubic-bezier(0.075, 0.82, 0.165, 1), background-color 2s cubic-bezier(0.075, 0.82, 0.165, 1);}.chip,.chip>* {text-decoration: none;}.chip:hover {background-color: rgb(10, 0, 25);transform: scale(1);/* font-size: 1.35rem; */border-color: white;transition: transform 0.75s cubic-bezier(0.075, 0.82, 0.165, 1), background-color 3s cubic-bezier(0.075, 0.82, 0.165, 1);}.chip:hover > .smallimg {background-color: rgb(10, 0, 25);}.activity {border-width: 3px;border-radius: 10px;overflow: hidden;margin: auto;padding: 0;display: flex;position: relative;z-index: 3;}.activity>p {width: 100%;overflow-wrap: break-word;}.activity>img {width: 128px;aspect-ratio: 1/1;object-fit: cover;}.activity>.smallimg {width: 64px;height: 64px;position: absolute;bottom: 0px;left: 72px;border-radius: 50px;background: black;padding: 5px;/* border: 2px gray solid; */transform: scale(0.9);}.activity>.smallimg:hover {transform: scale(1);}a:hover {color: white;transition: 0.5s all cubic-bezier(0.075, 0.82, 0.165, 1);}p {color: white;font-size: 1.2rem;padding: 0;margin: 10px;}img:not(.project-inner > div > img) {width: 100%;max-width: 135px;transition: all 2s cubic-bezier(0.075, 0.82, 0.165, 1);}.pfp {border-radius: 15px;border: darkgray 4px solid;width: 60%;aspect-ratio: 1/1;transform: scale(0.9);border-radius: 50%;}.pfp:hover {transform: scale(1);border-color: rgb(255, 200, 255);object-fit: cover;}.emoji {width: 32px;border-radius: 10%;/* border: 1px gray solid; */}hr {color: white;opacity: 0.25;border-width: 2px;margin: 15px 10%;}#card {background-color: rgb(15, 5, 80);padding: 15px;border: 2px white solid;margin: 20px auto;width: 95%;max-width: 800px;z-index: 3;position: relative;}.me {border-color: limegreen;}.project {background-color: rgba(35, 35, 35, 0.8);padding: 15px;border: 2px gray solid;margin: 20px 0px;border-radius: 15px;}.project-inner {overflow: hidden;padding: 0;margin: auto;z-index: 3;}.project-inner>div>img {object-fit: cover;border: 2px white solid;width: 80%;max-width: 500px;margin: auto;border-radius: 10px;}.project>p {display: inline-block;}/* I am so sorry about this code,,, */.love::before {content: "<3 ";color: rgb(255, 100, 150);}.like::before {content: ":) ";color: limegreen;}.silly::before {content: ":P ";color: aqua;}.fine::before {content: ":/ ";color: yellow;}.hate::before {content: ">:( ";color: red;}.love {border-color: rgb(255, 100, 150);}.like {border-color: limegreen;}.silly {border-color: aqua;}.fine {border-color: yellow;}.hate {border-color: red;}.up {border-color: limegreen;}.mid {border-color: yellow;}.down {border-color: red;}.post {background-color: rgba(85, 50, 150, 0.3);border: 2px gray solid;display: inline-block;/* border-radius: 15px; */padding: 10px;margin: 8px;}.minipfp {width: 70px;display: inline-block;margin-right: 10px;border: 2px lightgray solid;border-radius: 5px;}.lengthBar {background-color: rgb(50, 40, 60);display: inline-block;width: 80%;height: 10px;padding: 0;overflow: hidden;border-radius: 5px;margin-right: 1.9%;}.lengthBar>span {margin: 0;padding: 0;width: 100%;background-color: rgb(200, 200, 230);height: 20px;display: block;position: relative;}.note {font-size: 0.95rem;color: lightgray;}@keyframes fade-in {0% {opacity: 0;transform: translateY(50vh);}100% {opacity: 1;transform: none;}}
@font-face {
font-display: swap;
font-family: 'Rubik';
font-style: normal;
font-weight: 400;
src: url('./fonts/rubik-v28-latin-regular.woff2') format('woff2');
}
* {
font-family: 'Rubik', Verdana, Geneva, Tahoma, sans-serif;
padding: 0;
font-weight: 200;
text-align: center;
color: white;
}
body {
background-color: black;
overflow-x: hidden;
}
main {
opacity: 1;
animation: fadeDelay 3s cubic-bezier(0.075, 0.82, 0.165, 1);
}
body > h1 {
animation: mainText 3s cubic-bezier(0.075, 0.82, 0.165, 1);
margin: auto;
max-width: 75%;
}
@keyframes mainText {
0% {
transform: translateY(50vh) scale(1.5);
opacity: 0;
}
50% {
opacity: 1;
transform: translateY(50vh) scale(1);
}
100% {
transform: translateY(0) scale(1);
}
}
@keyframes fadeDelay {
0% {
opacity: 0;
}
33% {
opacity: 0;
}
66% {
opacity: 0;
transform: translateY(25vh)
}
100% {
opacity: 1;
transform: none;
}
}

View file

@ -1,27 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" type="text/css" href="/style.css">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Violet's Purgatory</title>
<meta name="darkreader-lock">
<meta content="Welcome to Violet's Purgatory" property="og:title" />
<meta content="Hi, I'm Violet, a 15 year old web developer with strong ambitions. You can find more info on my site!" property="og:description" />
<meta content="https://api.violets-purgatory.dev/v1/pfp" property="og:image" />
<meta content="#a200ff" data-react-helmet="true" name="theme-color" />
<!-- To any who dare read this code! I stole the code above off of stack overflow :P-->
</head>
<body>
<h1>Starwalker</h1>
<p>See? I told you!</p>
</body>
</html>