Total redesign!!!

This commit is contained in:
Violet 2023-10-12 16:33:43 -05:00
parent e76eee7cd9
commit 01ae49c5aa
5 changed files with 43 additions and 109 deletions

View file

@ -4,7 +4,7 @@
"description": "Violets Purgatory is a personal webapp for",
"main": "index.js",
"scripts": {
"test": "node index.js"
"start": "node index.js"
},
"repository": {
"type": "git",

View file

@ -12,19 +12,22 @@
<title>Violet's Purgatory</title>
</head>
<body class="centered">
<div id="card">
<h1><img src="https://api.lanyard.rest/534132311781015564.png" class="pfp" style="max-width: 125px;"> Violets&nbsp;Purgatory</h1>
<body>
<h1>Violet's&nbsp;Purgatory</h1>
<p><br> 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 <a href="https://codeberg.org/Bingus_Violet/Violets-Purgatory">codeberg!</a></p>
<hr>
<div id="links">
<a class="buttonLink" href="/socials/">Socials</a>
</div>
</div>
<p><br>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 <a href="https://codeberg.org/Bingus_Violet/Violets-Purgatory">codeberg!</a></p>
<!-- <hr> -->
<h1>Socials</h1>
<a class="chip" href="https://tech.lgbt/@Bingus_Violet">Fedi: <br>@Bingus_Violet@tech.lgbt</a>
<a class="chip" href="https://github.com/Violets-puragtory">Github: <br>Violets-puragtory</a>
<a class="chip" href="https://codeberg.org/Bingus_Violet">Codeberg: <br>Bingus_Violet</a>
<p class="chip">Matrix: <br>@bingus_violet:catgirl.cloud</p>
<p class="chip">Revolt: <br>BingusViolet#5573</p>
<p class="chip">Discord: <br>bingus_violet</p><br>
<p>Sorry for the small website, i just ran out of ideas and it's gone through alot of redesigning. :P</p>
</body>
</html>

View file

@ -1,41 +0,0 @@
<!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>

View file

@ -1,23 +0,0 @@
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))
})

View file

@ -8,8 +8,8 @@
--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);
--faded-bg-color-1: rgb(25, 20, 40);
--faded-bg-color-2: rgb(25, 25, 60);
--button-bg-1: rgb(75, 75, 125);
}
@ -31,8 +31,8 @@ body {
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))
background-color: var(--faded-bg-color-2);
background-image: linear-gradient(45deg, var(--faded-bg-color-1), var(--faded-bg-color-2)) ;
}
.centered {
@ -42,39 +42,35 @@ body {
}
#card {
border: rgb(225, 225, 255) 5px solid;
border-radius: 25px;
max-width: 95%;
max-height: 95%;
/* max-width: 1200px; */
/* max-height: 650px; */
/* border: rgb(225, 225, 255) 4px solid; */
/* border-radius: 25px; */
/* max-width: 95%;
max-height: 95%; */
width: 100%;
height: 100%;
padding: 5px;
background-color: var(--bg-color-2);
background-image: linear-gradient(var(--bg-color-1), var(--bg-color-2));
overflow: auto;
}
#card > p {
padding: 5px 5%;
}
.miniCard {
text-align: center;
border: rgb(225, 225, 255) 4px solid;
border-radius: 25px;
padding: 5px;
margin: 20px;
padding: 15px;
margin: 10px;
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;
} */
#links {
margin: 0;
padding: 0;
@ -87,24 +83,23 @@ a {
transition: 1.5s all cubic-bezier(0.075, 0.82, 0.165, 1);
}
a:hover {
transform: scale(1.1);
margin: 7px;
color: white;
}
.buttonLink {
font-size: 2rem;
.chip {
font-size: 1.5rem;
border: 2px white solid;
border-radius: 0px;
border-radius: 25px;
background-color: black;
padding: 5px;
padding: 8px;
margin: 5px;
display: inline-block;
}
.buttonLink:hover {
a.chip:hover {
margin: 8px;
background-color: rgb(60, 50, 75);
transform: scale(1.1);
}
a:hover {
transform: scale(1.05);
color: white;
transition: 0.5s all cubic-bezier(0.075, 0.82, 0.165, 1);
}