A mobile app for listening to radio stations from around the globe
git clone git://soophie.de/verbal
135
<div136
v-if="station"137
ref="button"138
class="fixed w-[64px] h-[64px] bg-zinc-900 rounded-md bottom-5 right-4 z-40 cursor-pointer shadow-xl overflow-hidden"138
class="fixed w-[18vw] h-[18vw] max-w-[80px] max-h-[80px] bg-zinc-900 rounded-md bottom-5 right-4 z-40 cursor-pointer shadow-2xl overflow-hidden"139
@click="state.open = !state.open"140
>141
<img
152
></v-icon>153
</div>154
<div155
class="w-full flex flex-col bg-zinc-800 pb-6 rounded-t-2xl fixed left-0 right-0 bottom-0 px-4 pt-4 h-[70vh] transition-transform duration-300 ease-in-out"155
class="w-full flex flex-col bg-black fixed left-0 right-0 top-0 h-[100vh] px-4 transition-transform duration-300 ease-in-out"156
:style="transform"157
>158
<div class="w-[40px] h-[8px] bg-zinc-500 rounded-[4px] mx-auto mb-12"></div>158
<audio159
v-if="station"160
ref="player"
170
<source :src="station.url" type="audio/ogg">171
<source :src="station.url" type="audio/aac">172
</audio>174
<div v-if="station" class="flex gap-5 items-center relative flex-col sm:flex-row">175
<div class="w-[140px] h-[140px] min-w-[140px] bg-zinc-900 rounded-lg overflow-hidden z-10">173
<div class="w-full h-[98px] py-6 flex gap-4 justify-between">174
<v-button175
icon="chevron-down"176
@click="state.open = false"177
></v-button>178
<v-button179
icon="cast"180
></v-button>181
</div>182
<div v-if="station" class="flex gap-8 items-center relative flex-col sm:flex-row pt-12">183
<div class="w-[75vw] h-[75vw] min-w-[75vw] bg-zinc-900 rounded-lg overflow-hidden z-10">184
<img185
v-if="station.icon"186
:src="station.icon"
195
></v-icon>196
</div>197
<div190
class="flex flex-col flex-1 z-10 min-w-0 max-w-full"198
class="flex flex-col flex-1 z-10 min-w-0 max-w-[75vw]"199
>200
<p class="text-xl font-semibold text-white pb-1 overflow-hidden text-ellipsis whitespace-nowrap select-none pointer-events-none text-center sm:text-left">201
{{station.name}}
204
{{title ?? $lang('player.no-song-title')}}205
</p>206
</div>199
<div class="inline-flex gap-4 z-10 pr-2">200
<input type="range" min="0" max="1" step="0.05" @change="setVolume">207
<div class="inline-flex flex-col gap-6 z-10 pr-2 items-center">208
<v-button209
:icon="[ error ? 'alert-circle' : (loading ? 'rotate-clockwise' : (playing ? 'player-pause' : 'player-play')) ]"210
:title="[ error ? $lang('global.error') : (playing ? $lang('global.pause') : $lang('global.play')) ]"211
:animation="[ error ? '' : (loading ? 'animate-spin' : '') ]"205
class="bg-zinc-900 hover:bg-white focus:ring-[6px] ring-white/10"212
class="bg-zinc-900 hover:bg-white focus:ring-[6px] ring-white/10 min-w-[64px] min-h-[64px]"213
@click="setPlaying(!playing)"214
></v-button>215
<input216
type="range"217
min="0"218
max="1"219
step="0.05"220
@change="setVolume"221
class="w-[200px]"222
>223
</div>224
</div>225
</div>