This commit is contained in:
Violet 2023-09-21 21:18:23 +00:00 committed by GitHub
commit 8b82bde024
10 changed files with 1043 additions and 0 deletions

34
static/index.html Normal file
View file

@ -0,0 +1,34 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">
<link rel="stylesheet" href="./style.css">
<title>Violet's Purgatory</title>
</head>
<body class="centered">
<div id="card">
<h1>Violets Purgatory</h1>
<p>Hi! I'm Violet, a teenage web and game developer.</p>
<p>My main engine is Godot, and i'm currently bouncing between projects, but I am mainly focusing on a space
shooter and a boss rush right now.</p>
<p>If you have any issues with the site, put up an issue on codeberg!</p>
<br>
<p style="color: rgb(255, 125, 125)">Keep in mind that, in general, work on everything may be slowed down for now as I enter college and work on robotics.</p>
<p>If you need to reach out to me for any reason, please go check my socials! I prefer Revolt, and it will likely be fastest.</p>
<div id="links">
<a href="/socials/">Socials</a>
<a href="/portfolios/">Portfolios</a>
<a href="/AAAA/">SomethingElse</a>
</div>
</div>
</body>
</html>

41
static/socials/index.html Normal file
View file

@ -0,0 +1,41 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js" integrity="sha512-v2CJ7UaYy4JwqLDIrZUI/4hqeoQieOmAZNXBeQyjo21dadnwR+8ZaIJVT8EE2iyI61OV8e6M8PP2/4hpQINQ/g==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="main.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">
<link rel="stylesheet" href="../style.css">
<title>VP - Socials</title>
</head>
<body class="row container-fluid">
<h1><br>Socials</h1>
<div class="col-md-6 col-xl-4">
<div class="miniCard row container-fluid" id="discCard">
<h2>Discord</h2>
<div class="col-sm-6">
<img id="discPFP" src="https://api.lanyard.rest/534132311781015564.png" class="pfp">
</div>
<div class="col-sm-6">
<p><span id="discUser">bingus_violet</span></p>
<p>Status: <span id="discStatus">Offline</span></p>
</div>
</div>
</div>
<div class="col-md-6 col-xl-4">
<div class="miniCard row container-fluid">
<h2>Revolt</h2>
<div class="col-sm-6">
<img src="https://autumn.revolt.chat/avatars/6HqUpYqnO7_Uagmbb7SqTqKHOjP0fQ0VQh0jz2PJwF/IMG_5404.jpg" class="pfp">
</div>
<div class="col-sm-6">
<p><span id="revUser">BingusViolet#5573</span></p>
</div>
</div>
</div>
</body>
</html>

23
static/socials/main.js Normal file
View file

@ -0,0 +1,23 @@
var statColors = {
"Do Not Disturb": "rgb(255, 25, 25)",
"online": "rgb(0, 255, 0)",
"idle": "rgb(255, 255, 25)",
"offline": "rgb(150, 150, 150)"
}
fetch('https://api.lanyard.rest/v1/users/534132311781015564', {
method: 'GET',
headers: {
'Accept': 'application/json',
},
})
.then(response => response.json())
.then(response => {
var userdata = response.data.discord_user
var statusData = response.data.discord_status
$("#discUser").text(JSON.stringify(userdata.username).slice(1, -1))
$("#discStatus").text(JSON.stringify(statusData).charAt(1).toUpperCase() + JSON.stringify(statusData).slice(2, -1))
$("#discPFP, #discCard").css("border-color", statColors[JSON.stringify(statusData).slice(1, -1)])
// $("*").text(JSON.stringify(response))
})

112
static/style.css Normal file
View file

@ -0,0 +1,112 @@
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400&display=swap');
:root {
font-family: 'Rubik', Verdana, Geneva, Tahoma, sans-serif;
padding: 0;
text-align: center;
--bg-color-1: rgb(125, 25, 100);
--bg-color-2: rgb(75, 25, 125);
--faded-bg-color-1: rgb(80, 20, 60);
--faded-bg-color-2: rgb(60, 20, 80);
--button-bg-1: rgb(75, 75, 125);
}
h1 {
color: rgb(225, 215, 255);
font-size: 3rem;
}
h2 {
color: white;
font-size: 2rem;
}
body {
width: 100vw;
height: 100vh;
padding: 0;
margin: 0;
background-color: var(--faded-bg-color-1);
background-image: linear-gradient(45deg, var(--faded-bg-color-1), var(--faded-bg-color-2))
}
.centered {
display: flex;
justify-content: center;
align-items: center;
}
#card {
border: rgb(225, 225, 255) 5px solid;
border-radius: 25px;
width: 90%;
height: 90%;
padding: 30px;
background-color: var(--bg-color-2);
background-image: linear-gradient(var(--bg-color-1), var(--bg-color-2));
overflow: auto;
}
.miniCard {
text-align: center;
border: rgb(225, 225, 255) 4px solid;
border-radius: 25px;
padding: 20px;
margin: 20px;
background-color: var(--bg-color-2);
background-image: linear-gradient(var(--bg-color-1), var(--bg-color-2));
overflow: hidden;
max-width: 100%;
max-height: 100%;
/* display: inline-block; */
}
/* #links {
text-align: center !important;
display: inline-flex !important;
justify-content: center !important;
align-items: flex-end !important;
} */
a {
border: 2px white solid;
border-radius: 0px;
color: rgb(230, 175, 255);
background-color: black;
padding: 5px;
margin: 5px;
text-decoration: none;
font-size: 2rem;
display: inline-block;
transition: 1.5s all cubic-bezier(0.075, 0.82, 0.165, 1);
}
a:hover {
background-color: rgb(60, 50, 75);
transform: scale(1.225);
color: white;
transition: 0.5s all cubic-bezier(0.075, 0.82, 0.165, 1);
}
p {
color: white;
font-size: 1.25rem;
}
img {
width: 100%;
max-width: 150px;
border: rgb(175, 75, 200) 4px solid;
border-radius: 50%;
transform: scale(0.9);
transition: all 2s cubic-bezier(0.075, 0.82, 0.165, 1);
}
img:hover {
transform: scale(1);
/* border-color: rgb(255, 200, 255); */
object-fit: cover;
}