|
52 | 52 | }
|
53 | 53 | </script>
|
54 | 54 |
|
55 |
| -<div class="w-full h-[270px] flex flex-col p-4 gap-[5.5px] focus-fix"> |
56 |
| - <div class="w-full h-[108px] rounded-[6px] bg-[#18162F] flex flex-col p-4 gap-[11px] drop-shadow-md"> |
| 55 | +<div class="w-full h-[270px] flex flex-col p-4 gap-[5.5px]"> |
| 56 | + <div class="w-full h-[108px] rounded-[6px] bg-[#18162F] flex flex-col p-4 gap-[11px] shadow-md shadow-[#18162F]/40"> |
57 | 57 | <div class="text-white text-[16px] font-bold flex gap-[10px]">
|
58 | 58 | <i
|
59 |
| - class={$RADIODATA.volume == 0 ? "fa-solid fa-volume-xmark" : "fa-brands fa-bluetooth-b"} |
| 59 | + class={$RADIODATA.volume == 0 ? "fa-solid fa-volume-xmark focus-fix" : "fa-brands fa-bluetooth-b focus-fix"} |
60 | 60 | on:click={toggleMute}
|
61 | 61 | role="button"
|
62 | 62 | tabindex="0"
|
63 | 63 | on:keydown={(event) => { if (event.key === 'Enter') toggleMute(); }}
|
64 | 64 | ></i>
|
65 | 65 | {#if $RADIODATA.onRadio}
|
66 | 66 | {#if $RADIODATA.insideJammerZone}
|
67 |
| - <i class="fa-solid fa-ban text-red-500" style="animation: pulse 0.2s cubic-bezier(0.4, 0, 0.6, 1) infinite;"></i> |
| 67 | + <i class="fa-solid fa-ban text-red-500 focus-fix" style="animation: pulse 0.2s cubic-bezier(0.4, 0, 0.6, 1) infinite;"></i> |
68 | 68 | {:else}
|
69 |
| - <i class="fa-solid fa-tower-cell" style="animation: pulse 0.2s cubic-bezier(0.4, 0, 0.6, 1) infinite;"></i> |
70 |
| - <i class="fa-solid fa-server"></i> |
| 69 | + <i class="fa-solid fa-tower-cell focus-fix" style="animation: pulse 0.2s cubic-bezier(0.4, 0, 0.6, 1) infinite;"></i> |
| 70 | + <i class="fa-solid fa-server focus-fix"></i> |
71 | 71 | {/if}
|
72 | 72 | {#if ($RADIODATA.favourite).indexOf($RADIODATA.channel) === -1}
|
73 | 73 | <i
|
74 |
| - class="fa-regular fa-star ml-auto cursor-pointer text-yellow-400" |
| 74 | + class="fa-regular fa-star ml-auto cursor-pointer text-yellow-400 focus-fix" |
75 | 75 | on:click={() => togglefav(true)}
|
76 | 76 | role="button"
|
77 | 77 | tabindex="0"
|
78 | 78 | on:keydown={(event) => { if (event.key === 'Enter') togglefav(true); }}
|
79 | 79 | ></i>
|
80 | 80 | {:else}
|
81 | 81 | {#if ($RADIODATA.userData.favourite).indexOf($RADIODATA.channel) === -1}
|
82 |
| - <i class="fa-solid fa-star ml-auto cursor-not-allowed text-yellow-600"></i> |
| 82 | + <i class="fa-solid fa-star ml-auto cursor-not-allowed text-yellow-600 focus-fix"></i> |
83 | 83 | {:else}
|
84 | 84 | <i
|
85 |
| - class="fa-solid fa-star ml-auto cursor-pointer text-yellow-400" |
| 85 | + class="fa-solid fa-star ml-auto cursor-pointer text-yellow-400 focus-fix" |
86 | 86 | on:click={() => togglefav(false)}
|
87 | 87 | role="button"
|
88 | 88 | tabindex="0"
|
|
95 | 95 | </div>
|
96 | 96 | <div class="flex flex-col">
|
97 | 97 | {#if $RADIODATA.onRadio}
|
98 |
| - <div class="text-white text-[16px] font-bold">{$RADIODATA.locale['ui.header']}</div> |
| 98 | + <div class="text-white text-[16px] font-bold focus-fix">{$RADIODATA.locale['ui.header']}</div> |
99 | 99 | <div class="text-white text-[11px] font-medium flex justify-between w-full overflow-hidden">
|
100 |
| - <div class="w-[40%]">{$RADIODATA.locale['ui.frequency']}:</div> |
101 |
| - <div class="whitespace-nowrap w-[56%] overflow-hidden"> |
| 100 | + <div class="w-[40%] focus-fix">{$RADIODATA.locale['ui.frequency']}:</div> |
| 101 | + <div class="whitespace-nowrap w-[56%] overflow-hidden focus-fix"> |
102 | 102 | <Marquee channel={String($RADIODATA.channel)}/>
|
103 | 103 | </div>
|
104 | 104 | </div>
|
105 |
| - <button class="bg-[#FF453AFF] w-full h-[22px] text-white rounded-[6px] font-bold flex justify-center items-center text-[11px] mt-1" on:click={() => SendEvent(Send.leave)}>{$RADIODATA.locale['ui.disconnect']}</button> |
| 105 | + <button class="bg-[#FF453AFF] w-full h-[22px] text-white rounded-[6px] font-bold flex justify-center items-center text-[11px] mt-1 focus-fix" on:click={() => SendEvent(Send.leave)}>{$RADIODATA.locale['ui.disconnect']}</button> |
106 | 106 | {:else}
|
107 | 107 | <div class="text-white text-[16px] font-bold">{$RADIODATA.locale['ui.notconnected']}</div>
|
108 | 108 | {/if}
|
109 | 109 | </div>
|
110 | 110 | </div>
|
111 | 111 |
|
112 |
| - <div class="w-full rounded-[6px] bg-[#18162F] flex justify-center items-center p-4 text-white text-[11px] drop-shadow-md gap-[6px]"> |
| 112 | + <div class="w-full rounded-[6px] bg-[#18162F] flex justify-center items-center p-4 text-white text-[11px] shadow-md shadow-[#18162F]/40 gap-[6px]"> |
113 | 113 | {#if volume > 70}
|
114 | 114 | <i class="fa-solid fa-volume-high"></i>
|
115 | 115 | {:else if volume > 35}
|
|
122 | 122 | <input id="vol-range" type="range" value={$RADIODATA.volume} class="w-full h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700" disabled="{!$RADIODATA.onRadio}" on:change={changeVolume} on:mouseup={handleSliderRelease}>
|
123 | 123 | </div>
|
124 | 124 |
|
125 |
| - <div class="w-full rounded-[6px] bg-[#18162F] flex py-4 text-white drop-shadow-md justify-between"> |
| 125 | + <div class="w-full rounded-[6px] bg-[#18162F] flex py-4 text-white shadow-md shadow-[#18162F]/40 justify-between"> |
126 | 126 | <button class="grow flex flex-col justify-center items-center gap-[6px]" on:click={changeTab('channel')}>
|
127 | 127 | <i class="fa-solid fa-list-ul"></i>
|
128 | 128 | <span class="text-[9px]">{$RADIODATA.locale['ui.channels']}</span>
|
|
131 | 131 | <i class="fa-solid fa-walkie-talkie"></i>
|
132 | 132 | <span class="text-[9px]">{$RADIODATA.locale['ui.radio']}</span>
|
133 | 133 | </button>
|
134 |
| - {#if $RADIODATA.overlay != 'never'} |
| 134 | + {#if $RADIODATA.overlay == 'never'} |
| 135 | + <button class="grow flex flex-col justify-center items-center gap-[6px]" on:click={changeTab('setting')}> |
| 136 | + <i class="fa-solid fa-gear"></i> |
| 137 | + <span class="text-[9px]">{$RADIODATA.locale['ui.settings']}</span> |
| 138 | + </button> |
| 139 | + {:else} |
135 | 140 | <button class="grow flex flex-col justify-center items-center gap-[6px]" style="color:{$RADIODATA.onRadio? 'white':'#AAAFB4'}" disabled="{!$RADIODATA.onRadio}" on:click={changeTab('members')}>
|
136 | 141 | <i class="fa-solid fa-user-tag"></i>
|
137 | 142 | <span class="text-[9px]">{$RADIODATA.locale['ui.members']}</span>
|
138 | 143 | </button>
|
139 | 144 | {/if}
|
140 | 145 | </div>
|
141 | 146 |
|
142 |
| - <div class="w-full rounded-[6px] bg-[#18162F] flex justify-center items-center py-3 text-white text-[11px] drop-shadow-md gap-[6px]"> |
| 147 | + <div class="w-full rounded-[6px] bg-[#18162F] flex justify-center items-center py-3 text-white text-[11px] shadow-md shadow-[#18162F]/40 gap-[6px]"> |
143 | 148 | <i class="fa-solid fa-location-arrow mt-1"></i>
|
144 | 149 | <span>{$RADIODATA.street}</span>
|
145 | 150 | </div>
|
|
0 commit comments