|
102 | 102 | let newserverToAdd: string | undefined = $state(); |
103 | 103 | </script> |
104 | 104 |
|
105 | | -<h2 class="text-center text-[clamp(2rem,6vw,4.2rem)] font-black leading-[1.1] xl:text-left"> |
106 | | - <span |
107 | | - class="[&::selection]:text-base-content text-transparent relative col-start-1 row-start-1 bg-clip-text bg-gradient-to-r from-blue-700 via-blue-800 to-gray-900" |
108 | | - > |
109 | | - {#if type === 'stun'} |
110 | | - {$_('stun-servers-title')} |
111 | | - {:else} |
112 | | - {$_('turn-servers-title')} |
113 | | - {/if} |
114 | | - </span> |
| 105 | +<h2 class="text-center text-primary text-[clamp(2rem,6vw,4.2rem)] font-black leading-[1.1] xl:text-left"> |
| 106 | + {#if type === 'stun'} |
| 107 | + {$_('stun-servers-title')} |
| 108 | + {:else} |
| 109 | + {$_('turn-servers-title')} |
| 110 | + {/if} |
115 | 111 | </h2> |
116 | 112 |
|
117 | 113 | <section> |
|
137 | 133 | e.preventDefault() |
138 | 134 | groupToCreate = ''; |
139 | 135 | }} |
140 | | - class="flex flex-col gap-4 items-center justify-center sm:w-[30vw] w-[75vw] p-4 my-4 bg-white border border-gray-200 rounded-lg shadow dark:bg-gray-800 dark:border-gray-700" |
| 136 | + class="flex flex-col gap-4 items-center justify-center sm:w-[30vw] w-[75vw] p-4 my-4 bg-white border border-gray-200 rounded-lg shadow" |
141 | 137 | > |
142 | | - <label for="group" class="block mb-2 font-medium text-gray-900 dark:text-white" |
| 138 | + <label for="group" class="block mb-2 font-medium text-gray-900" |
143 | 139 | >{$_('create_group')}</label |
144 | 140 | > |
145 | 141 | <input |
146 | 142 | type="text" |
147 | 143 | id="group" |
148 | | - class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500" |
| 144 | + class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5" |
149 | 145 | placeholder="Group" |
150 | 146 | required |
151 | 147 | bind:value={groupToCreate} |
|
164 | 160 | </p> |
165 | 161 | {/if} |
166 | 162 | {#each Object.keys($servers) as server_group, i} |
167 | | - <li class="w-[75vw] p-4 my-4 border rounded-lg shadow sm:p-6 bg-white border-gray-200 dark:bg-gray-800 dark:border-gray-700"> |
| 163 | + <li class="w-[75vw] p-4 my-4 border rounded-lg shadow sm:p-6 bg-white border-gray-200"> |
168 | 164 | <div class="flex justify-end h-0 mb-4 lg:mb-1"> |
169 | 165 | <button |
170 | 166 | type="button" |
|
187 | 183 | </button> |
188 | 184 |
|
189 | 185 | <h4 |
190 | | - class="w-11/12 text-lg font-medium text-gray-900 dark:text-white mb-2 focus" |
| 186 | + class="w-11/12 text-lg font-medium text-gray-900 mb-2 focus" |
191 | 187 | contenteditable="false" |
192 | 188 | id="group-{server_group}-{i}" |
193 | 189 | oninput={(e) => |
|
205 | 201 | newserverToAdd = ''; |
206 | 202 | }} |
207 | 203 | > |
208 | | - <label for="domain" class="block mb-2 text-sm font-medium text-gray-400 dark:text-white" |
| 204 | + <label for="domain" class="block mb-2 text-sm font-medium text-gray-600" |
209 | 205 | >{$_('new_server')}</label |
210 | 206 | > |
211 | 207 | <input |
212 | 208 | type="text" |
213 | 209 | id="domain" |
214 | | - class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg mb-2 focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500" |
| 210 | + class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg mb-2 focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5" |
215 | 211 | placeholder="domain:port // ip:port" |
216 | 212 | required |
217 | 213 | bind:value={newserverToAdd} |
|
240 | 236 | <li class="pb-3 sm:pb-4"> |
241 | 237 | <div class="flex items-center space-x-4 rtl:space-x-reverse"> |
242 | 238 | <div class="flex-1 min-w-0"> |
243 | | - <p class="text-lg truncate text-gray-400 dark:text-white"> |
| 239 | + <p class="text-lg truncate text-gray-400"> |
244 | 240 | {#if type === 'stun'} |
245 | 241 | {server.split('stun:')[1]} |
246 | 242 | {:else} |
|
250 | 246 | </div> |
251 | 247 | <button |
252 | 248 | onclick={() => removeServerFromGroup(server_group, server)} |
253 | | - class="h-5 w-5 mx-10 text-gray-400 cursor-pointer" |
| 249 | + class="h-5 w-5 mx-10 text-gray-600 cursor-pointer" |
254 | 250 | > |
255 | 251 | <TrashIcon /> |
256 | 252 | </button> |
|
263 | 259 | <form action=""> |
264 | 260 | <label |
265 | 261 | for="user-{i}" |
266 | | - class="block mb-2 text-sm font-medium text-gray-400 dark:text-white" |
| 262 | + class="block mb-2 text-sm font-medium text-gray-600" |
267 | 263 | >{$_('username')}</label |
268 | 264 | > |
269 | 265 | <input |
270 | 266 | type="text" |
271 | 267 | id="user-{i}" |
272 | | - class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500" |
| 268 | + class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5" |
273 | 269 | placeholder="username" |
274 | 270 | required |
275 | 271 | value={$servers[server_group]?.username ?? ''} |
|
278 | 274 |
|
279 | 275 | <label |
280 | 276 | for="password" |
281 | | - class="block mb-2 text-sm font-medium text-gray-400 dark:text-white" |
| 277 | + class="block mb-2 text-sm font-medium text-gray-600" |
282 | 278 | >{$_('password')}</label |
283 | 279 | > |
284 | 280 |
|
285 | 281 | <input |
286 | 282 | type="password" |
287 | 283 | id="password" |
288 | | - class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500" |
| 284 | + class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5" |
289 | 285 | placeholder="•••••••••" |
290 | 286 | required |
291 | 287 | value={$servers[server_group]?.credential ?? ''} |
|
0 commit comments