Skip to content

Commit 6ce3aa9

Browse files
committed
redesign login page
1 parent 56dbe0e commit 6ce3aa9

File tree

4 files changed

+165
-12
lines changed

4 files changed

+165
-12
lines changed

public/themes/pterodactyl/css/pterodactyl.css

Lines changed: 32 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,44 @@
2323
@import 'checkbox.css';
2424

2525
.login-page {
26-
height: auto;
26+
background: #303f9f;
27+
}
28+
29+
.login-logo {
30+
color: white;
31+
font-weight: bold;
32+
}
33+
34+
.login-copyright {
35+
color: white;
36+
}
37+
38+
.login-copyright a, .login-copyright a:hover {
39+
color: white;
40+
font-weight: bold;
41+
}
42+
43+
.particles-js-canvas-el {
44+
position: absolute;
2745
}
2846

2947
.login-box, .register-box {
30-
width: 40%;
31-
max-width: 500px;
32-
margin: 7% auto;
48+
position: absolute;
49+
margin: -180px 0 0 -180px;
50+
left: 50%;
51+
top: 50%;
52+
height: 360px;
53+
width: 360px;
54+
z-index: 100;
3355
}
3456

3557
@media (max-width:768px) {
36-
.login-box, .register-box {
58+
.login-box {
3759
width: 90%;
38-
margin-top: 20px
60+
margin-top: 20px;
61+
margin: 5%;
62+
left: 0;
63+
top: 0;
3964
}
4065
}
4166

@@ -282,6 +307,7 @@ tr:hover + tr.server-description {
282307
position: absolute;
283308
bottom: 5px;
284309
right: 10px;
310+
color: white;
285311
}
286312

287313
input.form-autocomplete-stop[readonly] {
Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
{
2+
"particles": {
3+
"number": {
4+
"value": 80,
5+
"density": {
6+
"enable": true,
7+
"value_area": 800
8+
}
9+
},
10+
"color": {
11+
"value": "#ffffff"
12+
},
13+
"shape": {
14+
"type": "circle",
15+
"stroke": {
16+
"width": 0,
17+
"color": "#000000"
18+
},
19+
"polygon": {
20+
"nb_sides": 5
21+
},
22+
"image": {
23+
"src": "img/github.svg",
24+
"width": 100,
25+
"height": 100
26+
}
27+
},
28+
"opacity": {
29+
"value": 0.40246529723245905,
30+
"random": false,
31+
"anim": {
32+
"enable": false,
33+
"speed": 1,
34+
"opacity_min": 0.1,
35+
"sync": false
36+
}
37+
},
38+
"size": {
39+
"value": 1,
40+
"random": true,
41+
"anim": {
42+
"enable": false,
43+
"speed": 40,
44+
"size_min": 0.1,
45+
"sync": false
46+
}
47+
},
48+
"line_linked": {
49+
"enable": true,
50+
"distance": 150,
51+
"color": "#ffffff",
52+
"opacity": 0.4,
53+
"width": 1
54+
},
55+
"move": {
56+
"enable": true,
57+
"speed": 5,
58+
"direction": "none",
59+
"random": false,
60+
"straight": false,
61+
"out_mode": "out",
62+
"bounce": false,
63+
"attract": {
64+
"enable": false,
65+
"rotateX": 600,
66+
"rotateY": 1200
67+
}
68+
}
69+
},
70+
"interactivity": {
71+
"detect_on": "canvas",
72+
"events": {
73+
"onhover": {
74+
"enable": true,
75+
"mode": "repulse"
76+
},
77+
"onclick": {
78+
"enable": false,
79+
"mode": "repulse"
80+
},
81+
"resize": true
82+
},
83+
"modes": {
84+
"grab": {
85+
"distance": 400,
86+
"line_linked": {
87+
"opacity": 1
88+
}
89+
},
90+
"bubble": {
91+
"distance": 400,
92+
"size": 40,
93+
"duration": 2,
94+
"opacity": 8,
95+
"speed": 3
96+
},
97+
"repulse": {
98+
"distance": 200,
99+
"duration": 0.4
100+
},
101+
"push": {
102+
"particles_nb": 4
103+
},
104+
"remove": {
105+
"particles_nb": 2
106+
}
107+
}
108+
},
109+
"retina_detect": true
110+
}

0 commit comments

Comments
 (0)