A mobile app for listening to radio stations from around the globe
git clone git://soophie.de/verbal
30
duration,31
utc,32
async show(station) {33
this.open = false;34
this.station = await http`get::/api/station/${station.id}`();35
if(this.station === null) {36
$route('@not-found', { update: false });
87
<div class="z-40">88
<div89
ref="modal"89
class="w-full mx-auto flex flex-col bg-black fixed left-[100vw] top-0 h-[100vh] overflow-y-auto pb-12 sm:pb-[100px] transition-detail"90
:class="{ 'detail-active': open }"90
class="w-full mx-auto flex flex-col bg-black fixed left-[100vw] top-0 h-[100vh] overflow-y-auto pb-12 sm:pb-[100px] transition-detail detail-active"91
>92
<div class="w-full flex flex-col px-4 sm:px-10 max-w-[1200px] mx-auto">92
<div v-if="open" class="w-full flex flex-col px-4 sm:px-10 max-w-[1200px] mx-auto">93
<div94
class="w-full absolute top-0 left-0 h-[40vh] z-[-1]"95
:style="{'background': gradient(station?.color)}"
220
</div>221
</div>222
</div>223
<div v-else class="w-full flex flex-col px-4 sm:px-10 max-w-[1200px] mx-auto">224
<div225
class="w-full absolute top-0 left-0 h-[40vh] z-[-1]"226
>227
</div>228
<div class="w-full h-[98px] py-6 flex gap-4 justify-between">229
<v-button230
icon="chevron-left"231
@click="$route('/')"232
></v-button>233
<v-button234
icon="share"235
@click="share()"236
></v-button>237
</div>238
<div class="flex flex-col gap-5 md:mt-8">239
<v-image240
:station="null"241
class="w-[96px] h-[96px] min-w-[96px]"242
></v-image>243
<div244
class="flex flex-col flex-1 min-w-0 items-start"245
>246
<p247
class="inline-block text-[24px] md:text-[36px] font-[600] bg-gray-100/30 text-transparent pb-0 overflow-hidden text-ellipsis whitespace-nowrap rounded-[4px] animate-pulse leading-[36px] my-[9px] break-all max-w-full"248
>249
012345678901234567890123456789250
</p>251
<span class="text-md text-gray-400 overflow-hidden flex flex-wrap gap-x-3 gap-y-1 pt-1">252
<span253
class="bg-gray-400/30 text-transparent inline-flex items-center gap-[5px] w-full sm:w-auto rounded-[4px] animate-pulse leading-[16px] my-[4px]"254
>255
<p>01234567890123456789</p>256
</span>257
<span258
class="bg-gray-400/30 text-transparent inline-flex items-center gap-[5px] rounded-[4px] animate-pulse leading-[16px] my-[4px]"259
>260
<p>012345678901234567890123456789</p>261
</span>262
<span263
class="bg-gray-400/30 text-transparent inline-flex items-center gap-[5px] rounded-[4px] animate-pulse leading-[16px] my-[4px]"264
>265
<p>0123456789</p>266
</span>267
</span>268
</div>269
</div>270
<div271
class="flex flex-col gap-6 mt-8"272
>273
<div class="flex gap-3">274
<v-play-button :station="null" class="pointer-events-none"></v-play-button>275
<v-button276
icon="bookmark"277
class="bg-zinc-900 hover:bg-white px-1"278
:class="{ '!bg-zinc-900': true }"279
text="0"280
:disabled="true"281
></v-button>282
</div>283
<p class="text-md bg-gray-400/30 text-transparent mt-2 break-all rounded-[4px] animate-pulse leading-[16px] my-[4px]">284
01234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789285
</p>286
</div>287
</div>288
</div>289
</div>290
</v-tab>