Skip to content

Commit 21ef163

Browse files
authored
Add Lavalink Config Server Page (Enpoint /) (#1)
1 parent a311df4 commit 21ef163

File tree

3 files changed

+125
-0
lines changed

3 files changed

+125
-0
lines changed

build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ dependencies {
2424
implementation("org.springframework.boot:spring-boot:3.3.0")
2525
implementation("org.springframework.cloud:spring-cloud-config-server:4.2.2")
2626
implementation("ch.qos.logback:logback-classic:1.5.6")
27+
implementation("org.springframework.boot:spring-boot-starter-web:3.3.0")
2728
}
2829

2930
fun versionFromGit(): String {
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>Lavalink Config Server</title>
6+
<link rel="icon" href="lavalink.svg" type="image/png">
7+
<style>
8+
body {
9+
background-color: #ff624a;
10+
color: #ffffff;
11+
font-family: Arial, sans-serif;
12+
text-align: center;
13+
padding-top: 100px;
14+
transition: background-color 0.3s ease, color 0.3s ease;
15+
}
16+
img {
17+
width: 150px;
18+
margin-bottom: 30px;
19+
}
20+
h1 {
21+
font-size: 36px;
22+
margin-bottom: 20px;
23+
}
24+
a.button {
25+
display: inline-block;
26+
padding: 12px 24px;
27+
background-color: #ff624a;
28+
color: #ffffff;
29+
text-decoration: none;
30+
border-radius: 20px;
31+
font-size: 18px;
32+
transition: background-color 0.3s ease, color 0.3s ease;
33+
}
34+
a.button:hover {
35+
background-color: #e65c00;
36+
}
37+
@media (prefers-color-scheme: dark) {
38+
body {
39+
background-color: #1e1e1e;
40+
color: #ffffff;
41+
}
42+
43+
a.button {
44+
background-color: #ff624a;
45+
color: #ffffff;
46+
}
47+
48+
a.button:hover {
49+
background-color: #e65c00;
50+
}
51+
}
52+
@media (prefers-color-scheme: light) {
53+
body {
54+
background-color: #ffffff;
55+
color: #000000;
56+
}
57+
58+
a.button {
59+
background-color: #ff624a;
60+
color: #ffffff;
61+
}
62+
63+
a.button:hover {
64+
background-color: #e65c00;
65+
}
66+
}
67+
</style>
68+
</head>
69+
<body>
70+
<img src="lavalink.svg" alt="Lavalink Logo">
71+
<h1>Lavalink Config Server</h1>
72+
<a href="https://feature-remote-config.lavalink-bne.pages.dev/configuration/config/config-server.html" class="button">Docs</a>
73+
</body>
74+
</html>
Lines changed: 50 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)