Spaces:
Running
Running
Commit
โข
9d8dfcb
1
Parent(s):
1f5297a
improve responsive
Browse files- public/index.html +7 -4
public/index.html
CHANGED
@@ -18,20 +18,22 @@
|
|
18 |
x-transition:leave="transition ease-in duration-200"
|
19 |
x-transition:leave-start="opacity-100"
|
20 |
x-transition:leave-end="opacity-0 -translate-y-8"
|
21 |
-
class="fixed w-full z-20 py-4 px-6 top-0 font-mono text-white flex items-center justify-between space-x-1 bg-black bg-opacity-60"
|
22 |
style="text-shadow: 0px 0px 3px #000000">
|
23 |
|
24 |
<div class="flex text-xl space-x-2">
|
25 |
<div class="text-xl">๐ค AI WebTV</div>
|
26 |
-
<div class="text-md">๐
|
27 |
<template x-for="chan in channels">
|
28 |
<div
|
29 |
class="text-xl mr-2"
|
30 |
:class="chan.id === channel.id
|
31 |
? 'font-bold'
|
32 |
: 'hover:underline opacity-60 hover:opacity-80 cursor-pointer'"
|
33 |
-
x-on:click="window.location = `${window.location.origin}/?channel=${chan.id}
|
34 |
-
x-text="chan.label"
|
|
|
|
|
35 |
</template>
|
36 |
</div>
|
37 |
|
@@ -42,6 +44,7 @@
|
|
42 |
<svg xmlns="http://www.w3.org/2000/svg" width="24px" height="24px" viewBox="0 0 640 512"><path fill="currentColor" d="M96 128a128 128 0 1 1 256 0A128 128 0 1 1 96 128zM0 482.3C0 383.8 79.8 304 178.3 304h91.4C368.2 304 448 383.8 448 482.3c0 16.4-13.3 29.7-29.7 29.7H29.7C13.3 512 0 498.7 0 482.3zM609.3 512H471.4c5.4-9.4 8.6-20.3 8.6-32v-8c0-60.7-27.1-115.2-69.8-151.8c2.4-.1 4.7-.2 7.1-.2h61.4C567.8 320 640 392.2 640 481.3c0 17-13.8 30.7-30.7 30.7zM432 256c-31 0-59-12.6-79.3-32.9C372.4 196.5 384 163.6 384 128c0-26.8-6.6-52.1-18.3-74.3C384.3 40.1 407.2 32 432 32c61.9 0 112 50.1 112 112s-50.1 112-112 112z"/></svg>
|
43 |
</div>
|
44 |
<div x-text="channel.audience"></div>
|
|
|
45 |
</div>
|
46 |
|
47 |
<div class="text-sm">(<a
|
|
|
18 |
x-transition:leave="transition ease-in duration-200"
|
19 |
x-transition:leave-start="opacity-100"
|
20 |
x-transition:leave-end="opacity-0 -translate-y-8"
|
21 |
+
class="fixed w-full z-20 py-4 px-6 top-0 font-mono text-white flex flex-col lg:flex-row items-center justify-between space-x-1 bg-black bg-opacity-60"
|
22 |
style="text-shadow: 0px 0px 3px #000000">
|
23 |
|
24 |
<div class="flex text-xl space-x-2">
|
25 |
<div class="text-xl">๐ค AI WebTV</div>
|
26 |
+
<div class="text-md">๐ Change channel:</div>
|
27 |
<template x-for="chan in channels">
|
28 |
<div
|
29 |
class="text-xl mr-2"
|
30 |
:class="chan.id === channel.id
|
31 |
? 'font-bold'
|
32 |
: 'hover:underline opacity-60 hover:opacity-80 cursor-pointer'"
|
33 |
+
x-on:click="window.location = `${window.location.origin}/?channel=${chan.id}`"
|
34 |
+
x-text="chan.label">
|
35 |
+
<div class="animate-ping absolute inline-flex h-4 w-4 rounded-full bg-red-400 opacity-75"></div>
|
36 |
+
</div>
|
37 |
</template>
|
38 |
</div>
|
39 |
|
|
|
44 |
<svg xmlns="http://www.w3.org/2000/svg" width="24px" height="24px" viewBox="0 0 640 512"><path fill="currentColor" d="M96 128a128 128 0 1 1 256 0A128 128 0 1 1 96 128zM0 482.3C0 383.8 79.8 304 178.3 304h91.4C368.2 304 448 383.8 448 482.3c0 16.4-13.3 29.7-29.7 29.7H29.7C13.3 512 0 498.7 0 482.3zM609.3 512H471.4c5.4-9.4 8.6-20.3 8.6-32v-8c0-60.7-27.1-115.2-69.8-151.8c2.4-.1 4.7-.2 7.1-.2h61.4C567.8 320 640 392.2 640 481.3c0 17-13.8 30.7-30.7 30.7zM432 256c-31 0-59-12.6-79.3-32.9C372.4 196.5 384 163.6 384 128c0-26.8-6.6-52.1-18.3-74.3C384.3 40.1 407.2 32 432 32c61.9 0 112 50.1 112 112s-50.1 112-112 112z"/></svg>
|
45 |
</div>
|
46 |
<div x-text="channel.audience"></div>
|
47 |
+
<div x-text="channel.audience > 1 ? 'viewers' : 'viewer'"></div>
|
48 |
</div>
|
49 |
|
50 |
<div class="text-sm">(<a
|