mirror of
https://github.com/owncast/owncast.git
synced 2024-11-25 14:20:54 +03:00
115 lines
No EOL
4.5 KiB
HTML
115 lines
No EOL
4.5 KiB
HTML
<head>
|
|
<meta charset="UTF-8" />
|
|
<title>Live stream test</title>
|
|
|
|
<link
|
|
href="https://unpkg.com/tailwindcss@^1.0/dist/tailwind.min.css"
|
|
rel="stylesheet"
|
|
/>
|
|
<link href="./styles/layout.css" rel="stylesheet" />
|
|
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
|
|
<script src="https://cdn.jsdelivr.net/npm/hls.js@latest"></script>
|
|
|
|
<!-- Used for animating the scrolling of the chat div. Can that be done other ways? -->
|
|
<script src="vendor/jquery-2.1.4.min.js"></script>
|
|
|
|
<script src="vendor/autolink.js"></script>
|
|
</head>
|
|
|
|
<body>
|
|
<div id="app-container" class="flex">
|
|
<header class="flex">
|
|
<h1>
|
|
Maybe a header
|
|
</h1>
|
|
<span>💬</span>
|
|
|
|
</header>
|
|
<div id="main-content-container" class="flex nxo-chat">
|
|
<!-- LEFT CONTAINER SIDE-->
|
|
<div class="flex main-cols left-col">
|
|
|
|
<div id="video-container" class="flex shadow-md">
|
|
<video
|
|
id="video"
|
|
preload="auto"
|
|
autoplay
|
|
controls
|
|
src="https://ia800300.us.archive.org/17/items/BigBuckBunny_124/Content/big_buck_bunny_720p_surround.mp4"
|
|
></video>
|
|
</div>
|
|
|
|
<div id="info-">
|
|
{{ streamStatus }} {{ viewerCount }} {{ 'viewer' | plural(viewerCount) }}.
|
|
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only fpesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<!-- RIGHT CONTAINER SIDE-->
|
|
<div class="flex main-cols right-col">
|
|
|
|
<div id="chat-container">
|
|
<div id="messages-container">
|
|
<div v-for="(message, index) in messages">
|
|
<div class="bg-white shadow-md px-8 pt-6 pb-8 mb-4">
|
|
<div class="flex items-center">
|
|
<img
|
|
v-bind:src="message.image"
|
|
class="w-10 h-10 rounded-full mr-4 border-black-500"
|
|
style="padding: 5px; background-color: #ececec;"
|
|
/>
|
|
|
|
<div class="text-sm">
|
|
<p class="text-700">{{ message.author }}</p>
|
|
<p class="text-gray-600"v-html="message.linkedText()"></p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="chat-input-container" class="shadow-md">
|
|
<form id="chat-form" class="flex" @submit="submitChatForm">
|
|
|
|
<!-- Author -->
|
|
<!-- <label class="control-label" for="inputAuthor">Author</label>
|
|
<input
|
|
id="inputAuthor"
|
|
type="text"
|
|
class="appearance-none bg-gray-200 text-gray-700 border border-black-500 rounded py-3 px-4 mb-3 leading-tight focus:outline-none focus:bg-white"
|
|
placeholder="Name"
|
|
v-model="message.author"
|
|
/> -->
|
|
|
|
|
|
<textarea
|
|
id="inputBody"
|
|
placeholder="Message"
|
|
v-model="message.body"
|
|
class="appearance-none block w-full bg-gray-200 text-gray-700 border border-black-500 rounded py-2 px-2 my-2 leading-tight focus:bg-white"
|
|
>
|
|
</textarea>
|
|
|
|
|
|
<button
|
|
class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-1 px-2 rounded"
|
|
>
|
|
Send
|
|
</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<script src="js/message.js"></script>
|
|
<script src="js/app.js"></script>
|
|
</body>
|
|
</html> |