VISHAL18for4 commited on
Commit
18f6f12
·
verified ·
1 Parent(s): 60a3cab

Update public/style.css

Browse files
Files changed (1) hide show
  1. public/style.css +101 -57
public/style.css CHANGED
@@ -4,15 +4,13 @@
4
  box-sizing: border-box;
5
  }
6
 
7
- body {
 
 
 
 
8
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
9
- background: #1a1a2e;
10
  color: #eee;
11
- height: 100vh;
12
- overflow: hidden;
13
- display: flex;
14
- justify-content: center;
15
- align-items: center;
16
  }
17
 
18
  #app {
@@ -23,42 +21,46 @@ body {
23
  background: #16213e;
24
  }
25
 
 
26
  header {
27
- background: #0f3460;
28
- padding: 10px 20px;
29
  display: flex;
30
  flex-wrap: wrap;
31
  align-items: center;
32
- gap: 12px;
33
  border-bottom: 2px solid #533483;
34
- z-index: 10;
35
  flex-shrink: 0;
 
36
  }
37
 
38
  header h1 {
39
- font-size: 1.4rem;
40
  background: linear-gradient(45deg, #e94560, #f5a623);
41
  -webkit-background-clip: text;
42
  -webkit-text-fill-color: transparent;
43
- margin-right: 15px;
 
44
  }
45
 
46
  .toolbar {
47
  display: flex;
48
  align-items: center;
49
- gap: 8px;
50
  flex-wrap: wrap;
51
  }
52
 
53
  .toolbar button {
54
- background: #1a1a40;
55
  border: 1px solid #533483;
56
  color: #eee;
57
- padding: 6px 12px;
58
  border-radius: 6px;
59
  cursor: pointer;
60
- font-size: 0.9rem;
61
  transition: 0.2s;
 
 
62
  }
63
 
64
  .toolbar button:hover {
@@ -72,32 +74,24 @@ header h1 {
72
  }
73
 
74
  #brushColor {
75
- width: 40px;
76
- height: 34px;
77
- border: none;
 
78
  background: transparent;
79
  cursor: pointer;
80
  padding: 2px;
81
  }
82
 
83
  #sizeDisplay {
84
- min-width: 28px;
85
  text-align: center;
86
  font-weight: bold;
87
  color: #f5a623;
 
88
  }
89
 
90
- #status {
91
- flex: 1;
92
- font-size: 0.85rem;
93
- color: #a8d8ea;
94
- text-align: right;
95
- padding: 4px 10px;
96
- background: #1a1a40;
97
- border-radius: 20px;
98
- min-width: 200px;
99
- }
100
-
101
  main {
102
  flex: 1;
103
  position: relative;
@@ -113,48 +107,98 @@ main {
113
  background: #1a1a2e;
114
  }
115
 
116
- #gestureIndicator {
 
117
  position: absolute;
118
- bottom: 30px;
119
- right: 30px;
120
- font-size: 3rem;
121
- background: rgba(0,0,0,0.6);
122
- border-radius: 50%;
123
- padding: 15px;
124
- width: 80px;
125
- height: 80px;
 
 
 
 
 
 
 
 
126
  display: flex;
127
- justify-content: center;
128
  align-items: center;
129
- transition: 0.3s;
130
- border: 3px solid #555;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
131
  pointer-events: none;
 
132
  }
133
 
134
- #gestureIndicator.gesture-on {
135
- border-color: #00ff88;
136
- box-shadow: 0 0 30px rgba(0,255,136,0.3);
137
  }
138
 
139
- #gestureIndicator.gesture-off {
140
- border-color: #ff4444;
141
- box-shadow: 0 0 30px rgba(255,68,68,0.2);
142
  }
143
 
 
 
 
 
 
 
144
  footer {
145
- background: #0f3460;
146
- padding: 6px 20px;
147
  display: flex;
148
  justify-content: space-between;
149
- font-size: 0.8rem;
150
- color: #aaa;
151
  border-top: 1px solid #533483;
152
  flex-shrink: 0;
153
  }
154
 
155
- /* Responsive adjustments */
156
  @media (max-width: 700px) {
157
- header { flex-direction: column; align-items: stretch; }
158
  .toolbar { justify-content: center; }
159
- #status { text-align: center; }
 
 
 
 
 
 
 
 
 
 
 
160
  }
 
4
  box-sizing: border-box;
5
  }
6
 
7
+ html, body {
8
+ width: 100%;
9
+ height: 100%;
10
+ overflow: hidden;
11
+ background: #0d0d1a;
12
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
 
13
  color: #eee;
 
 
 
 
 
14
  }
15
 
16
  #app {
 
21
  background: #16213e;
22
  }
23
 
24
+ /* ===== HEADER ===== */
25
  header {
26
+ background: rgba(15, 52, 96, 0.95);
27
+ padding: 8px 12px;
28
  display: flex;
29
  flex-wrap: wrap;
30
  align-items: center;
31
+ gap: 8px;
32
  border-bottom: 2px solid #533483;
 
33
  flex-shrink: 0;
34
+ z-index: 10;
35
  }
36
 
37
  header h1 {
38
+ font-size: 1.2rem;
39
  background: linear-gradient(45deg, #e94560, #f5a623);
40
  -webkit-background-clip: text;
41
  -webkit-text-fill-color: transparent;
42
+ margin-right: 8px;
43
+ white-space: nowrap;
44
  }
45
 
46
  .toolbar {
47
  display: flex;
48
  align-items: center;
49
+ gap: 4px;
50
  flex-wrap: wrap;
51
  }
52
 
53
  .toolbar button {
54
+ background: rgba(26, 26, 64, 0.8);
55
  border: 1px solid #533483;
56
  color: #eee;
57
+ padding: 4px 10px;
58
  border-radius: 6px;
59
  cursor: pointer;
60
+ font-size: 0.8rem;
61
  transition: 0.2s;
62
+ min-height: 32px;
63
+ min-width: 36px;
64
  }
65
 
66
  .toolbar button:hover {
 
74
  }
75
 
76
  #brushColor {
77
+ width: 36px;
78
+ height: 30px;
79
+ border: 2px solid #533483;
80
+ border-radius: 6px;
81
  background: transparent;
82
  cursor: pointer;
83
  padding: 2px;
84
  }
85
 
86
  #sizeDisplay {
87
+ min-width: 24px;
88
  text-align: center;
89
  font-weight: bold;
90
  color: #f5a623;
91
+ font-size: 0.9rem;
92
  }
93
 
94
+ /* ===== MAIN ===== */
 
 
 
 
 
 
 
 
 
 
95
  main {
96
  flex: 1;
97
  position: relative;
 
107
  background: #1a1a2e;
108
  }
109
 
110
+ /* ===== GESTURE GUIDE ===== */
111
+ #gestureGuide {
112
  position: absolute;
113
+ bottom: 20px;
114
+ left: 20px;
115
+ display: flex;
116
+ flex-direction: column;
117
+ gap: 6px;
118
+ background: rgba(0, 0, 0, 0.7);
119
+ padding: 10px 14px;
120
+ border-radius: 10px;
121
+ border: 1px solid rgba(83, 52, 131, 0.5);
122
+ backdrop-filter: blur(4px);
123
+ z-index: 5;
124
+ pointer-events: none;
125
+ font-size: 0.75rem;
126
+ }
127
+
128
+ .gesture-item {
129
  display: flex;
 
130
  align-items: center;
131
+ gap: 8px;
132
+ }
133
+
134
+ .gesture-icon {
135
+ font-size: 1.2rem;
136
+ width: 28px;
137
+ text-align: center;
138
+ }
139
+
140
+ .gesture-label {
141
+ color: #ccc;
142
+ font-weight: 300;
143
+ }
144
+
145
+ /* ===== STATUS INDICATOR (minimal) ===== */
146
+ #statusIndicator {
147
+ position: absolute;
148
+ top: 12px;
149
+ right: 12px;
150
+ padding: 4px 12px;
151
+ border-radius: 12px;
152
+ font-size: 0.7rem;
153
+ background: rgba(0, 0, 0, 0.6);
154
+ color: #7fdb9a;
155
+ border: 1px solid rgba(127, 219, 154, 0.3);
156
+ z-index: 5;
157
  pointer-events: none;
158
+ transition: 0.3s;
159
  }
160
 
161
+ #statusIndicator.ready {
162
+ color: #7fdb9a;
163
+ border-color: rgba(127, 219, 154, 0.4);
164
  }
165
 
166
+ #statusIndicator.loading {
167
+ color: #f5a623;
168
+ border-color: rgba(245, 166, 35, 0.4);
169
  }
170
 
171
+ #statusIndicator.error {
172
+ color: #ff6b6b;
173
+ border-color: rgba(255, 107, 107, 0.4);
174
+ }
175
+
176
+ /* ===== FOOTER ===== */
177
  footer {
178
+ background: rgba(15, 52, 96, 0.95);
179
+ padding: 4px 16px;
180
  display: flex;
181
  justify-content: space-between;
182
+ font-size: 0.7rem;
183
+ color: #888;
184
  border-top: 1px solid #533483;
185
  flex-shrink: 0;
186
  }
187
 
188
+ /* ===== RESPONSIVE ===== */
189
  @media (max-width: 700px) {
190
+ header { flex-direction: column; align-items: stretch; gap: 4px; }
191
  .toolbar { justify-content: center; }
192
+ #gestureGuide {
193
+ bottom: 10px;
194
+ left: 10px;
195
+ padding: 6px 10px;
196
+ font-size: 0.65rem;
197
+ }
198
+ .gesture-icon { font-size: 1rem; width: 22px; }
199
+ #statusIndicator { top: 8px; right: 8px; font-size: 0.6rem; padding: 2px 8px; }
200
+ }
201
+
202
+ @media (max-width: 480px) {
203
+ #gestureGuide { display: none; } /* Hide on very small screens */
204
  }