-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
161 lines (141 loc) · 3.53 KB
/
Copy pathstyles.css
File metadata and controls
161 lines (141 loc) · 3.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
/* style.css */
/* General styles */
body {
font-family: 'Roboto', sans-serif;
background: linear-gradient(to right, #2c3e50, #4ca1af);
color: #ffffff;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
.page-container {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
width: 100%;
height: 100%;
}
/* Button styles */
.button-page-transition {
background: linear-gradient(to right, #ff0090, #ff6348);
color: #fff;
border: none;
padding: 10px 20px;
font-size: 16px;
cursor: alias;
border-radius: 5px;
transition: transform 0.2s, box-shadow 0.2s;
margin: 10px 0; /* Ensure it has space above and below */
z-index: 100; /* Make sure it stays on top */
}
.button-page-transition:hover {
transform: scale(1.05);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.button, .button-ping {
color: #fff;
border: none;
padding: 10px 20px;
font-size: 16px;
cursor: pointer;
border-radius: 5px;
transition: transform 0.2s, box-shadow 0.2s;
margin: 10px;
}
.button {
background: linear-gradient(to right, #00c6ff, #0072ff);
}
.button-ping {
background: linear-gradient(to right, #ff6348, #ff0090);
}
.button:hover, .button-ping:hover {
transform: scale(1.05);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
/* Container styles */
.speed-test-container, .ping-test-container {
width: 90%;
max-width: 800px; /* Ensure maximum width for better layout */
height: 90%;
max-height: 600px; /* Ensure maximum height for better layout */
text-align: center;
padding: 20px;
border-radius: 10px;
background: rgba(0, 0, 0, 0.8);
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
display: none;
margin: 0 auto;
}
.speed-test-container.active, .ping-test-container.active {
display: block;
}
/* Canvas container */
.canvas-container {
width: 97%;
height: 60%; /* Adjust height as needed */
display: flex;
justify-content: center;
align-items: center;
padding: 10px;
background: rgba(255, 255, 255, 0.1); /* Slightly transparent background for contrast */
border-radius: 10px;
margin: 20px 0; /* Add margin to separate from other elements */
}
#speedChart {
width: 100%;
height: 100%;
max-width: 100%;
max-height: 100%;
border-radius: 10px;
background: rgba(0, 0, 0, 0.1); /* Background for better visibility */
}
/* First half of the flip animation */
@keyframes flip-out-right {
0% {
transform: perspective(600px) rotateY(0deg);
}
100% {
transform: perspective(600px) rotateY(90deg);
}
}
@keyframes flip-in-right {
0% {
transform: perspective(600px) rotateY(-90deg);
}
100% {
transform: perspective(600px) rotateY(0deg);
}
}
@keyframes flip-out-left {
0% {
transform: perspective(600px) rotateY(0deg);
}
100% {
transform: perspective(600px) rotateY(-90deg);
}
}
@keyframes flip-in-left {
0% {
transform: perspective(600px) rotateY(90deg);
}
100% {
transform: perspective(600px) rotateY(0deg);
}
}
/* Apply the animations */
.speed-test-container.flip-out-right {
animation: flip-out-right 0.3s forwards;
}
.ping-test-container.flip-in-right {
animation: flip-in-right 0.3s forwards;
}
.ping-test-container.flip-out-left {
animation: flip-out-left 0.3s forwards;
}
.speed-test-container.flip-in-left {
animation: flip-in-left 0.3s forwards;
}