A mobile app for listening to radio stations from around the globe
git clone git://soophie.de/verbal
14
<div class="sticky top-[98px] z-30 -mb-6">15
<div class="bg-gradient-to-b from-black h-2 sm:h-4"></div>16
</div>18
<!--19
<div v-if="account.settings" class="flex flex-col gap-[60px] sm:gap-[80px] pt-6 sm:pt-12">20
<div>21
<h1 class="text-white text-[28px] font-semibold pb-6 sm:pb-8">{{$('account.settings')}}</h1>22
<div class="grid grid-cols-8 gap-8 sm:gap-10 pt-8 sm:pt-12">23
<div class="flex flex-col col-span-8 sm:col-span-8">24
<p class="text-gray-300 text-[22px] font-medium pb-2 text-lg">{{$('global.account')}}</p>25
</div>26
<div class="flex flex-col col-span-8 sm:col-span-4">27
<p class="text-white font-medium pb-2 text-lg">{{$('account.username')}}</p>28
<span class="text-gray-400 pb-4 text-md flex-1">{{$('account.username.info')}}</span>29
<input v-model="account.settings.username" v-on:change="doAccountSave" type="text" class="w-full h-[54px] px-5 sm:h-[48px] sm:px-4 text-md rounded-lg bg-zinc-900 text-gray-300 disabled:text-gray-600 focus:text-gray-200 outline-none font-normal placeholder:font-normal placeholder:text-gray-500 focus:placeholder:text-gray-600 outline-none">30
</div>31
<div class="flex flex-col col-span-8 sm:col-span-4">32
<p class="text-white font-medium pb-2 text-lg">{{$('account.language')}}</p>33
<span class="text-gray-400 pb-4 text-md flex-1">{{$('account.language.info')}}</span>34
<div class="flex items-center relative">35
<select v-model="account.settings.language" v-on:change="doAccountSave" type="text" class="w-full h-[54px] px-5 sm:h-[48px] sm:px-4 appearance-none text-md rounded-lg bg-zinc-900 text-gray-300 disabled:text-gray-600 focus:text-gray-200 outline-none font-normal placeholder:font-normal placeholder:text-gray-500 focus:placeholder:text-gray-600 outline-none">36
<option value="en">English</option>37
<option value="de">Deutsch</option>38
</select>39
<div class="absolute right-3 pointer-events-none w-[30px] h-[30px] bg-gray-400 [mask:url(https://cdn.typable.dev/tabler/chevron-down)]" style="-webkit-mask-repeat: no-repeat; -webkit-mask-position: center;"></div>40
</div>41
</div>42
<div class="flex flex-col col-span-8 sm:col-span-8 border-t sm:border-t-2 border-zinc-800"></div>43
<div class="flex flex-col col-span-8 sm:col-span-8">44
<p class="text-gray-300 text-[22px] font-medium pb-2 text-lg">{{$('account.player')}}</p>45
</div>46
<div class="flex flex-col col-span-8 sm:col-span-4">47
<p class="text-white font-medium pb-2 text-lg">{{$('account.playback-history')}}</p>48
<span class="text-gray-400 pb-4 text-md flex-1">{{$('account.playback-history.info')}}</span>49
<div class="flex h-[54px] sm:h-[48px] items-center">50
<label for="account-playback-history" class="w-[50px] h-[20px] bg-zinc-900 rounded-full ml-[10px] relative cursor-pointer group">51
<input v-model="account.settings.is_playback_history" v-on:change="doAccountSave" type="checkbox" id="account-playback-history" class="peer opacity-0 w-0 h-0 pointer-events-none select-none outline-none">52
<div class="before:absolute before:-translate-y-[50%] before:-left-[10px] before:transition-all before:top-[10px] before:content-[''] before:z-10 before:block peer-checked:after:bg-gray-500/70 peer-checked:before:translate-x-[40px] before:w-[32px] before:h-[32px] sm:before:h-[28px] sm:before:w-[28px] before:rounded-full before:bg-zinc-400 after:content-[''] after:absolute after:block after:-left-[10px] after:rounded-full after:transition-colors after:left-0 after:top-0 after:w-full after:h-[20px] group-hover:before:bg-zinc-300 outline-none"></div>53
</label>54
</div>55
</div>56
</div>57
</div>58
<div>59
<h1 class="text-white text-[28px] font-semibold pb-6 sm:pb-8">{{$('account.devices')}}</h1>60
<div class="grid grid-cols-8 gap-8 sm:gap-10">61
<div class="flex flex-col gap-8 col-span-8 pt-8 sm:pt-12">62
<ul class="flex flex-col">63
<li v-for="device in account.settings.devices" class="flex gap-4 px-3 py-2 items-center hover:bg-zinc-800 rounded-md group transition-colors">64
<div v-bind:title="device" class="flex flex-1 min-w-0">65
<span class="text-gray-400 group-hover:text-gray-200 transition-colors overflow-hidden text-ellipsis whitespace-nowrap">{{device}}</span>66
</div>67
</li>68
</ul>69
<input v-model="account.foreign_code" type="text" maxlength="6" placeholder="------" class="w-[200px] text-center tracking-[8px] h-[56px] px-5 text-lg uppercase rounded-lg bg-zinc-900 text-white outline-none font-medium placeholder:tracking-[12px] placeholder:font-bold placeholder:normal-case placeholder:text-gray-500 focus:placeholder:text-gray-600 outline-none">70
<div class="flex gap-8 flex-col sm:flex-row w-full">71
<button v-on:click="doSync" class="flex-1 bg-zinc-900 hover:bg-zinc-100 rounded-lg px-4 h-[48px] min-h-[48px] transition-colors text-gray-200 hover:text-gray-800 text-md">Connect</button>72
<button v-on:click="doGenerate" class="flex-1 bg-zinc-900 hover:bg-zinc-100 rounded-lg px-4 h-[48px] min-h-[48px] transition-colors text-gray-200 hover:text-gray-800 text-md">Link device</button>73
</div>74
</div>75
</div>76
</div>77
<div>78
<div class="grid grid-cols-8 gap-8 sm:gap-10 pb-8">79
<div class="flex flex-col gap-1 col-span-8 pt-8 sm:pt-12">80
<p class="text-zinc-400 text-md mx-auto">Verbal</p>81
<p class="text-zinc-400 text-md mx-auto">Version: {{version}}</p>82
</div>83
</div>84
</div>85
</div>86
-->17
</v-tab>18
`19
}
53
size="80%"54
></v-icon>55
</div>56
<!--57
<ul v-if="account.info" class="flex flex-col">58
<li v-bind:key="station.id" v-for="station in account.favorites" class="w-full py-5 gap-4 group flex items-center border-t sm:border-t-2 first:border-none border-zinc-900">59
<div class="w-[54px] h-[54px] min-w-[54px] bg-zinc-900 rounded-lg overflow-hidden">60
<img v-if="station.favicon" v-bind:src="station.favicon" v-on:error="doHideFavicon(station)" class="w-full h-full object-contain">61
<div v-else class="w-full h-full bg-gray-400 [mask:url('https://cdn.typable.dev/tabler/access-point')]" style="-webkit-mask-repeat: no-repeat; -webkit-mask-position: center; -webkit-mask-size: 65%;"></div>62
</div>63
<div class="flex flex-col flex-1 min-w-0">64
<p class="text-lg font-medium text-gray-100 pb-0 overflow-hidden text-ellipsis whitespace-nowrap">{{station.name}}</p>65
<span class="text-md text-gray-400 overflow-hidden flex gap-2 sm:gap-3">66
<span v-if="station.country" class="text-gray-400 inline-flex items-center gap-[5px]" v-bind:title="$('global.country')">67
<div class="w-[18px] h-[18px] min-w-[18px] inline-flex bg-gray-400 [mask:url(https://cdn.typable.dev/tabler/world)]" style="-webkit-mask-repeat: no-repeat; -webkit-mask-position: center; -webkit-mask-size: 100%;"></div>68
<p>{{station.country}}</p>69
</span>70
<span v-if="station.votes" class="text-gray-400 inline-flex items-center gap-[5px]" v-bind:title="$('global.votes')">71
<div class="w-[18px] h-[18px] inline-flex bg-gray-400 [mask:url(https://cdn.typable.dev/tabler/thumb-up)]" style="-webkit-mask-repeat: no-repeat; -webkit-mask-position: center; -webkit-mask-size: 100%;"></div>72
<p>{{station.votes}}</p>73
</span>74
<span v-if="station.click_trend" class="text-gray-400 hidden sm:inline-flex items-center gap-[5px]" v-bind:title="$('global.trend')">75
<div class="w-[16px] h-[16px] inline-flex bg-gray-400" v-bind:class="[ station.click_trend >= 0 ? '[mask:url(https://cdn.typable.dev/tabler/arrow-up-right)]' : '[mask:url(https://cdn.typable.dev/tabler/arrow-down-right)]' ]" style="-webkit-mask-repeat: no-repeat; -webkit-mask-position: center;"></div>76
<p>{{Math.abs(station.click_trend) ?? 'None'}}</p>77
</span>78
</span>79
</div>80
<div class="inline-flex gap-4">81
<button v-on:click="doToggleFavorite(station, !station.is_favorite)" v-bind:title="[ station.is_favorite ? $('global.unlike') : $('global.like') ]" class="w-[46px] h-[46px] bg-zinc-900 hover:bg-white rounded-full inline-flex justify-center items-center cursor-pointer transition-colors">82
<div class="w-full h-full bg-gray-400 hover:bg-red-600 transition-colors" v-bind:class="[ station.is_favorite ? '[mask:url(https://cdn.typable.dev/tabler/heart-solid)]' : '[mask:url(https://cdn.typable.dev/tabler/heart)]' ]" style="-webkit-mask-repeat: no-repeat; -webkit-mask-position: center;"></div>83
</button>84
<button v-on:click="doPlay(station)" v-bind:title="$('global.play')" class="w-[46px] h-[46px] bg-zinc-900 hover:bg-white rounded-full inline-flex justify-center items-center cursor-pointer transition-colors">85
<div class="w-full h-full bg-gray-400 hover:bg-gray-700 transition-colors [mask:url('https://cdn.typable.dev/tabler/player-play')]" style="-webkit-mask-repeat: no-repeat; -webkit-mask-position: center;"></div>86
</button>87
</div>88
</li>89
</ul>90
-->56
</v-tab>57
`58
}
9
<meta name="description" content="Online Radio App">10
<title>Verbal</title>11
<link rel="icon" type="image/png" href="/asset/img/favicon.png">12
<link rel="manifest" href="/manifest.json">12
<link rel="stylesheet" href="/asset/css/style.css">13
<script src="/asset/lib/vue.min.js"></script>14
<script src="/app/main.js" type="module"></script>