80 lines
2.1 KiB
HTML
80 lines
2.1 KiB
HTML
<head>
|
|
<style>
|
|
body {
|
|
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell,
|
|
"Open Sans", "Helvetica Neue", sans-serif;
|
|
margin: 0;
|
|
padding: 0;
|
|
color: rgb(219, 222, 225);
|
|
}
|
|
|
|
.wrapper {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-between;
|
|
box-sizing: border-box;
|
|
height: 100%;
|
|
background-color: hsl(223 6.7% 20.6%);
|
|
border-radius: 8px;
|
|
border: 1px solid hsl(220 6.5% 18%);
|
|
padding: 1em;
|
|
}
|
|
|
|
h1 {
|
|
text-align: center;
|
|
}
|
|
|
|
.buttons {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 0.5em;
|
|
}
|
|
|
|
button {
|
|
cursor: pointer;
|
|
padding: 0.5em;
|
|
color: white;
|
|
border: none;
|
|
border-radius: 3px;
|
|
font-weight: bold;
|
|
}
|
|
|
|
button:hover,
|
|
button:active {
|
|
filter: brightness(0.9);
|
|
}
|
|
|
|
.green {
|
|
background-color: #248046;
|
|
}
|
|
|
|
.red {
|
|
background-color: #ed4245;
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
<div class="wrapper">
|
|
<section>
|
|
<h1>Update Available</h1>
|
|
<p>There's a new update for Vencord Desktop! Update now to get new fixes and features</p>
|
|
<p>
|
|
Current: <span id="current"></span>
|
|
<br />
|
|
Latest: <span id="latest"></span>
|
|
</p>
|
|
</section>
|
|
|
|
<section class="buttons">
|
|
<button class="green" onclick="Updater.download()">Download Update</button>
|
|
<button class="red" onclick="Updater.close()">Close</button>
|
|
</section>
|
|
</div>
|
|
</body>
|
|
|
|
<script type="module">
|
|
const data = await Updater.getData();
|
|
document.getElementById("current").textContent = data.currentVersion;
|
|
document.getElementById("latest").textContent = data.latestVersion;
|
|
</script>
|