Fixed ban logic & ui

This commit is contained in:
Gilles Lazures 2025-05-01 14:57:35 +02:00
parent 96e9173ff0
commit 6ee1cd793f
3 changed files with 25 additions and 2 deletions

View File

@ -1,4 +1,5 @@
@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
@import url("https://cdn.jsdelivr.net/gh/hung1001/font-awesome-pro@4cac1a6/css/all.css");
* {
margin: 0px;
@ -40,4 +41,19 @@ main > article > section.informations > p {
font-weight: lighter;
text-align: left;
margin-left: 10px;
}
button.close {
float: right;
color: #ffffff;
width: 30px;
height: 30px;
border: none;
cursor: pointer;
outline: none;
transition: .5s;
margin-top: 15px;
margin-right: 15px;
border-radius: 5px;
background-color: #0000001c;
}

View File

@ -9,9 +9,12 @@
<body>
<main>
<button class="close" onclick="system.call('window::close')">
<i class="fas fa-times"></i>
</button>
<article>
<section class="logo">
<img src="./assets/img/Catboat_Logo-04.png" alt="">
<img src="./assets/img/icon.png" alt="">
</section>
<section class="informations">
<h2>Votre launcher à été bannis.</h2>

View File

@ -99,6 +99,10 @@ async function checkIfIAmBanned() {
try {
const reponse = await fetch(`${config.api.base}${config.api.endpoints.checkBanStatus}`, {
method: "post",
headers: {
accept: "application/json",
"Content-Type": "application/json"
},
body: JSON.stringify({
hwid: hwid.getHWID()
})