-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
113 lines (100 loc) · 2.19 KB
/
style.css
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
/* Gaya untuk body */
body {
margin: 0;
padding: 0;
font-family: 'Arial', sans-serif;
background: radial-gradient(circle, #1a1a1a, #000000); /* Background gradasi gelap */
color: white;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
/* Container utama */
.containerLamp {
display: flex;
flex-direction: column;
align-items: center;
gap: 20px;
}
/* Random Color Button */
.randomColor {
display: flex;
justify-content: center;
align-items: center;
background: linear-gradient(45deg, #ff00ff, #ff6600);
border-radius: 10px;
width: 150px;
height: 50px;
cursor: pointer;
transition: transform 0.2s, box-shadow 0.2s;
}
.randomColor:hover {
transform: scale(1.1);
box-shadow: 0 0 20px rgba(255, 102, 0, 0.8);
}
.randomColor .text {
font-size: 18px;
font-weight: bold;
text-shadow: 0 0 5px #ffffff;
user-select: none; /* Mencegah pemilihan teks */
}
/* Static Color Buttons */
.staticColor {
display: flex;
gap: 15px;
}
.buttonLamp1,
.buttonLamp2,
.buttonLamp3 {
display: flex;
justify-content: center;
align-items: center;
border-radius: 50%;
width: 60px;
height: 60px;
cursor: pointer;
transition: transform 0.2s, box-shadow 0.2s;
color: white;
font-weight: bold;
text-shadow: 0 0 3px #ffffff;
}
#lampGreen {
background: linear-gradient(145deg, #00ff00, #007f00);
}
#lampRed {
background: linear-gradient(145deg, #ff0000, #7f0000);
}
#lampBlue {
background: linear-gradient(145deg, #0000ff, #00007f);
}
.buttonLamp1:hover,
.buttonLamp2:hover,
.buttonLamp3:hover {
transform: scale(1.2);
box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}
.buttonLamp1 .text,
.buttonLamp2 .text,
.buttonLamp3 .text {
font-size: 14px;
user-select: none; /* Mencegah pemilihan teks */
}
/* Animasi Global */
@keyframes glow {
0% {
box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}
50% {
box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}
100% {
box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}
}
.randomColor,
.buttonLamp1,
.buttonLamp2,
.buttonLamp3 {
animation: glow 2s infinite;
}