A mobile app for listening to radio stations from around the globe
git clone git://soophie.de/verbal
181
</div>182
<div183
ref="modal"184
class="w-full max-w-[1200px] mx-auto flex flex-col bg-black fixed left-0 right-0 top-[100vh] h-[100vh] px-4 sm:px-10 transition-modal"184
class="w-full mx-auto flex flex-col bg-black fixed left-0 right-0 top-[100vh] h-[100vh] px-4 sm:px-10 transition-modal"185
:class="{ 'modal-active': open }"186
>187
<audio188
v-if="station"189
ref="player"190
controls autoplay191
:src="station.url"192
@loadeddata="onLoad"193
@play="onPlay"194
@pause="onPause"195
@error="onError"196
class="select-none pointer-events-none w-0 h-0 opacity-0"197
>198
<source :src="station.url" type="audio/mpeg">199
<source :src="station.url" type="audio/ogg">200
<source :src="station.url" type="audio/aac">201
</audio>202
<div class="w-full h-[98px] py-6 flex gap-4 justify-between">203
<v-button204
icon="chevron-down"205
@click="open = false"206
></v-button>207
<v-button208
icon="cast"209
></v-button>210
</div>211
<div class="flex gap-8 items-center flex-col">212
<v-image213
:station="station"214
ref="button"215
class="h-[75vw] max-h-[400px] aspect-square rounded-lg z-10 fixed right-[50%] translate-x-[50%] translate-y-[100%] bottom-[calc(100vh-98px-32px)] transition-modal"216
:class="{ 'slide-active': !open, 'slide-hidden': !station }"217
@click="open = true"218
>219
</v-image>220
<div class="h-[75vw] max-h-[400px] mt-[32px]"></div>221
<div187
<div class="w-full flex flex-col max-w-[1200px] mx-auto">188
<audio189
v-if="station"223
class="flex flex-col flex-1 z-10 min-w-0 w-[75vw] max-w-[400px] transition-modal"224
:style="opacity"190
ref="player"191
controls autoplay192
:src="station.url"193
@loadeddata="onLoad"194
@play="onPlay"195
@pause="onPause"196
@error="onError"197
class="select-none pointer-events-none w-0 h-0 opacity-0"198
>226
<p227
class="text-xl font-semibold text-white pb-2 overflow-hidden text-ellipsis whitespace-nowrap text-center cursor-pointer"228
@click="openDetail(station)"229
>230
{{station.name}}231
</p>232
<p ref="songtitle" class="songtitle text-md text-gray-400 overflow-hidden whitespace-nowrap relative px-2" :class="{'text-center': !tooLong, 'text-animate': tooLong}">233
<span class="inline-block" :style="{'animation-duration': animationDuration}">{{title ?? $lang('player.no-song-title')}}</span>234
</p>235
</div>236
<div class="inline-flex flex-col gap-6 z-10 pr-2 items-center">199
<source :src="station.url" type="audio/mpeg">200
<source :src="station.url" type="audio/ogg">201
<source :src="station.url" type="audio/aac">202
</audio>203
<div class="w-full h-[98px] py-6 flex gap-4 justify-between">204
<v-button238
:icon="[ error ? 'alert-circle' : (loading ? 'rotate-clockwise' : (playing ? 'player-pause' : 'player-play')) ]"239
:title="[ error ? $lang('global.error') : (playing ? $lang('global.pause') : $lang('global.play')) ]"240
size="28px"241
:animation="[ error ? '' : (loading ? 'animate-spin' : '') ]"242
class="bg-zinc-900 hover:bg-white focus:ring-[6px] ring-white/10 !min-w-[64px] !min-h-[64px]"243
@click="setPlaying(!playing)"205
icon="chevron-down"206
@click="open = false"207
></v-button>245
<input246
type="range"247
min="0"248
max="1"249
step="0.05"250
@input="setVolume"251
class="w-[200px]"208
<v-button209
icon="cast"210
></v-button>211
</div>212
<div class="flex gap-8 items-center flex-col">213
<v-image214
:station="station"215
ref="button"216
class="h-[75vw] max-h-[400px] aspect-square rounded-lg z-10 fixed right-[50%] translate-x-[50%] translate-y-[100%] bottom-[calc(100vh-98px-32px)] transition-modal"217
:class="{ 'slide-active': !open, 'slide-hidden': !station }"218
@click="open = true"219
>220
</v-image>221
<div class="h-[75vw] max-h-[400px] mt-[32px]"></div>222
<div223
v-if="station"224
class="flex flex-col flex-1 z-10 min-w-0 w-[75vw] max-w-[400px] transition-modal"225
:style="opacity"226
>227
<p228
class="text-xl font-semibold text-white pb-2 overflow-hidden text-ellipsis whitespace-nowrap text-center cursor-pointer"229
@click="openDetail(station)"230
>231
{{station.name}}232
</p>233
<p ref="songtitle" class="songtitle text-md text-gray-400 overflow-hidden whitespace-nowrap relative px-2" :class="{'text-center': !tooLong, 'text-animate': tooLong}">234
<span class="inline-block" :style="{'animation-duration': animationDuration}">{{title ?? $lang('player.no-song-title')}}</span>235
</p>236
</div>237
<div class="inline-flex flex-col gap-6 z-10 pr-2 items-center">238
<v-button239
:icon="[ error ? 'alert-circle' : (loading ? 'rotate-clockwise' : (playing ? 'player-pause' : 'player-play')) ]"240
:title="[ error ? $lang('global.error') : (playing ? $lang('global.pause') : $lang('global.play')) ]"241
size="28px"242
:animation="[ error ? '' : (loading ? 'animate-spin' : '') ]"243
class="bg-zinc-900 hover:bg-white focus:ring-[6px] ring-white/10 !min-w-[64px] !min-h-[64px]"244
@click="setPlaying(!playing)"245
></v-button>246
<input247
type="range"248
min="0"249
max="1"250
step="0.05"251
@input="setVolume"252
class="w-[200px]"253
>254
</div>255
</div>256
</div>257
</div>