A mobile app for listening to radio stations from around the globe
git clone git://soophie.de/verbal
88
</div>89
<div90
ref="modal"91
class="w-full max-w-[1200px] mx-auto flex flex-col bg-black fixed left-[100vh] top-0 h-[100vh] overflow-y-auto px-4 pb-12 sm:pb-[100px] sm:px-10 transition-detail"91
class="w-full mx-auto flex flex-col bg-black fixed left-[100vw] top-0 h-[100vh] overflow-y-auto px-4 pb-12 sm:pb-[100px] sm:px-10 transition-detail"92
:class="{ 'detail-active': open }"93
>94
<div95
class="w-full absolute top-0 left-0 h-[40vh] z-[-1]"96
:style="{'background': gradient(station?.color)}"97
>98
</div>99
<div class="w-full h-[98px] py-6 flex gap-4 justify-between sticky top-0">100
<v-button101
icon="chevron-left"102
@click="open = false"103
></v-button>104
<v-button105
icon="share"106
></v-button>107
</div>108
<div class="flex flex-col gap-5">109
<v-image110
v-if="station"111
:station="station"112
class="w-[96px] h-[96px] min-w-[96px]"113
></v-image>94
<div class="w-full flex flex-col max-w-[1200px] mx-auto">95
<div115
v-if="station"116
class="flex flex-col flex-1 min-w-0"96
class="w-full absolute top-0 left-0 h-[40vh] z-[-1]"97
:style="{'background': gradient(station?.color)}"98
>118
<p119
:title="station.name"120
class="text-[24px] font-[600] text-gray-100 pb-0 overflow-hidden text-ellipsis whitespace-nowrap"121
>122
{{station.name}}123
</p>124
<span class="text-md text-gray-400 overflow-hidden flex gap-3 pt-1">125
<span126
v-if="station.country"127
class="text-gray-400 inline-flex items-center gap-[5px]"128
:title="$lang('global.country')"129
>130
<v-icon131
id="map-pin"132
class="w-[18px] h-[18px] !min-w-[18px] inline-flex text-gray-400"133
size="100%"134
></v-icon>135
<p>{{station.state ? station.state + ', ' : ''}}{{station.country}}</p>136
</span>137
<span138
v-if="station?.playtime && duration(station.playtime ?? 0).length > 0"139
class="text-gray-400 inline-flex items-center gap-[5px]"140
:title="$lang('detail.playtime')"141
>142
<v-icon143
id="clock"144
class="w-[18px] h-[18px] !min-w-[18px] inline-flex text-gray-400"145
size="100%"146
></v-icon>147
<p>{{duration(station.playtime ?? 0)}}</p>148
</span>149
</span>99
</div>151
</div>152
<div153
v-if="station"154
class="flex flex-col gap-6 mt-8"155
>156
<div v-if="station.tags && station.tags.length > 0" class="flex gap-3 flex-wrap">157
<span v-for="tag in station.tags" class="cursor-pointer text-md text-white/90 font-medium items-center gap-[5px] bg-zinc-900 hover:bg-zinc-800 rounded-[4px] text-[14px] px-[14px] inline-flex h-[34px] leading-[34px]">{{tag}}</span>158
</div>159
<div class="flex gap-3">100
<div class="w-full h-[98px] py-6 flex gap-4 justify-between sticky top-0">101
<v-button161
icon="player-play"162
@click="() => setStation(station)"163
class="bg-zinc-900 hover:bg-white"102
icon="chevron-left"103
@click="open = false"104
></v-button>105
<v-button166
:icon="[ station.is_favorite ? 'heart-off' : 'heart' ]"167
:title="[ $lang(station.is_favorite ? 'global.unlike' : 'global.like') ]"168
@click="() => setLike(!station.is_favorite)"169
class="bg-zinc-900 hover:bg-white"170
:text="$lang(station.is_favorite ? 'global.unlike' : 'global.like')"106
icon="share"107
></v-button>108
</div>173
<p v-if="station.description" class="text-md text-gray-400" v-html="station.description"></p>174
<p v-else class="text-md text-gray-400">{{$lang('detail.no-description')}}</p>175
<div v-if="station.is_restricted || station.is_broken || station.is_no_track_info" class="flex gap-2 flex-wrap">176
<span177
v-if="station.is_restricted"178
class="text-white/90 items-center gap-[5px] bg-blue-600/70 rounded-[4px] text-[14px] px-[7px] inline-flex h-[24px] leading-[24px]"179
>180
<p class="-mt-[1px]">Restricted</p>181
</span>182
<span183
v-if="station.is_broken"184
class="text-white/90 items-center gap-[5px] bg-red-600/70 rounded-[4px] text-[14px] px-[7px] inline-flex h-[24px] leading-[24px]"185
>186
<p class="-mt-[1px]">Broken</p>187
</span>188
<span189
v-if="station.is_no_track_info"190
class="text-white/90 items-center gap-[5px] bg-green-600/70 rounded-[4px] text-[14px] px-[7px] inline-flex h-[24px] leading-[24px]"109
<div class="flex flex-col gap-5">110
<v-image111
v-if="station"112
:station="station"113
class="w-[96px] h-[96px] min-w-[96px]"114
></v-image>115
<div116
v-if="station"117
class="flex flex-col flex-1 min-w-0"118
>192
<p class="-mt-[1px]">No track info</p>193
</span>119
<p120
:title="station.name"121
class="text-[24px] font-[600] text-gray-100 pb-0 overflow-hidden text-ellipsis whitespace-nowrap"122
>123
{{station.name}}124
</p>125
<span class="text-md text-gray-400 overflow-hidden flex gap-3 pt-1">126
<span127
v-if="station.country"128
class="text-gray-400 inline-flex items-center gap-[5px]"129
:title="$lang('global.country')"130
>131
<v-icon132
id="map-pin"133
class="w-[18px] h-[18px] !min-w-[18px] inline-flex text-gray-400"134
size="100%"135
></v-icon>136
<p>{{station.state ? station.state + ', ' : ''}}{{station.country}}</p>137
</span>138
<span139
v-if="station?.playtime && duration(station.playtime ?? 0).length > 0"140
class="text-gray-400 inline-flex items-center gap-[5px]"141
:title="$lang('detail.playtime')"142
>143
<v-icon144
id="clock"145
class="w-[18px] h-[18px] !min-w-[18px] inline-flex text-gray-400"146
size="100%"147
></v-icon>148
<p>{{duration(station.playtime ?? 0)}}</p>149
</span>150
</span>151
</div>152
</div>153
<div154
v-if="station"155
class="flex flex-col gap-6 mt-8"156
>157
<div v-if="station.tags && station.tags.length > 0" class="flex gap-3 flex-wrap">158
<span v-for="tag in station.tags" class="cursor-pointer text-md text-white/90 font-medium items-center gap-[5px] bg-zinc-900 hover:bg-zinc-800 rounded-[4px] text-[14px] px-[14px] inline-flex h-[34px] leading-[34px]">{{tag}}</span>159
</div>160
<div class="flex gap-3">161
<v-button162
icon="player-play"163
@click="() => setStation(station)"164
class="bg-zinc-900 hover:bg-white"165
></v-button>166
<v-button167
:icon="[ station.is_favorite ? 'heart-off' : 'heart' ]"168
:title="[ $lang(station.is_favorite ? 'global.unlike' : 'global.like') ]"169
@click="() => setLike(!station.is_favorite)"170
class="bg-zinc-900 hover:bg-white"171
:text="$lang(station.is_favorite ? 'global.unlike' : 'global.like')"172
></v-button>173
</div>174
<p v-if="station.description" class="text-md text-gray-400" v-html="station.description"></p>175
<p v-else class="text-md text-gray-400">{{$lang('detail.no-description')}}</p>176
<div v-if="station.is_restricted || station.is_broken || station.is_no_track_info" class="flex gap-2 flex-wrap">177
<span178
v-if="station.is_restricted"179
class="text-white/90 items-center gap-[5px] bg-blue-600/70 rounded-[4px] text-[14px] px-[7px] inline-flex h-[24px] leading-[24px]"180
>181
<p class="-mt-[1px]">Restricted</p>182
</span>183
<span184
v-if="station.is_broken"185
class="text-white/90 items-center gap-[5px] bg-red-600/70 rounded-[4px] text-[14px] px-[7px] inline-flex h-[24px] leading-[24px]"186
>187
<p class="-mt-[1px]">Broken</p>188
</span>189
<span190
v-if="station.is_no_track_info"191
class="text-white/90 items-center gap-[5px] bg-green-600/70 rounded-[4px] text-[14px] px-[7px] inline-flex h-[24px] leading-[24px]"192
>193
<p class="-mt-[1px]">No track info</p>194
</span>195
</div>196
</div>197
</div>198
</div>