mirror of
https://github.com/owncast/owncast.git
synced 2024-11-28 03:01:32 +03:00
initial layout
This commit is contained in:
parent
a29852f404
commit
9b63d1ffb3
2 changed files with 97 additions and 77 deletions
|
@ -6,6 +6,7 @@
|
||||||
href="https://unpkg.com/tailwindcss@^1.0/dist/tailwind.min.css"
|
href="https://unpkg.com/tailwindcss@^1.0/dist/tailwind.min.css"
|
||||||
rel="stylesheet"
|
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/vue/dist/vue.js"></script>
|
||||||
<script src="https://cdn.jsdelivr.net/npm/hls.js@latest"></script>
|
<script src="https://cdn.jsdelivr.net/npm/hls.js@latest"></script>
|
||||||
|
|
||||||
|
@ -15,88 +16,107 @@
|
||||||
<script src="vendor/autolink.js"></script>
|
<script src="vendor/autolink.js"></script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<div>
|
<body>
|
||||||
<div class="flex">
|
<div id="app-container" class="flex">
|
||||||
<div class="w-4/6">
|
<header class="flex">
|
||||||
<video
|
<h1>
|
||||||
id="video"
|
Maybe a header
|
||||||
preload="auto"
|
</h1>
|
||||||
autoplay
|
</header>
|
||||||
controls
|
<div id="main-content-container" class="flex no-chat">
|
||||||
style="width: 100%;"
|
|
||||||
src="https://ia800300.us.archive.org/17/items/BigBuckBunny_124/Content/big_buck_bunny_720p_surround.mp4"
|
<!-- LEFT CONTAINER SIDE-->
|
||||||
></video>
|
<div class="flex main-cols left-col">
|
||||||
<div id="app">
|
|
||||||
{{ streamStatus }} {{ viewerCount }} {{ 'viewer' | plural(viewerCount) }}.
|
<div id="video-container" class="flex">
|
||||||
|
<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.
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="w-2/6">
|
<!-- RIGHT CONTAINER SIDE-->
|
||||||
<div
|
<div class="flex main-cols right-col">
|
||||||
id="messages-container"
|
<div id="chat-container">
|
||||||
class="bg-white shadow-md rounded px-8 pt-6 pb-8 mb-4"
|
<div id="messages-container">
|
||||||
style="height: 60vh; overflow-y: scroll;"
|
<div v-for="(message, index) in messages">
|
||||||
>
|
<div class="bg-white shadow-md rounded px-8 pt-6 pb-8 mb-4">
|
||||||
<div v-for="(message, index) in messages">
|
<div class="flex items-center">
|
||||||
<div class="bg-white shadow-md rounded px-8 pt-6 pb-8 mb-4">
|
<img
|
||||||
<div class="flex items-center">
|
v-bind:src="message.image"
|
||||||
<img
|
class="w-10 h-10 rounded-full mr-4 border-black-500"
|
||||||
v-bind:src="message.image"
|
style="padding: 5px; background-color: #ececec;"
|
||||||
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>
|
||||||
<div class="text-sm">
|
<p class="text-gray-600"v-html="message.linkedText()"></p>
|
||||||
<p class="text-700">{{ message.author }}</p>
|
</div>
|
||||||
<p class="text-gray-600"v-html="message.linkedText()"></p>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<form
|
||||||
|
id="chatForm"
|
||||||
|
@submit="submitChatForm"
|
||||||
|
class="bg-white shadow-md rounded px-8 pt-6 pb-8 mb-4"
|
||||||
|
>
|
||||||
|
<!-- 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"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<!-- Body -->
|
||||||
|
<div>
|
||||||
|
<label class="control-label" for="inputBody">Message</label>
|
||||||
|
<div class="controls">
|
||||||
|
<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-3 px-4 mb-3 leading-tight focus:outline-none focus:bg-white"
|
||||||
|
>
|
||||||
|
</textarea>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="control-group">
|
||||||
|
<div class="controls">
|
||||||
|
<button
|
||||||
|
class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded"
|
||||||
|
>
|
||||||
|
Send
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<form
|
|
||||||
id="chatForm"
|
|
||||||
@submit="submitChatForm"
|
|
||||||
class="bg-white shadow-md rounded px-8 pt-6 pb-8 mb-4"
|
|
||||||
>
|
|
||||||
<!-- 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"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<!-- Body -->
|
|
||||||
<div>
|
|
||||||
<label class="control-label" for="inputBody">Message</label>
|
|
||||||
<div class="controls">
|
|
||||||
<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-3 px-4 mb-3 leading-tight focus:outline-none focus:bg-white"
|
|
||||||
>
|
|
||||||
</textarea>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="control-group">
|
|
||||||
<div class="controls">
|
|
||||||
<button
|
|
||||||
class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded"
|
|
||||||
>
|
|
||||||
Send
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<script src="js/message.js"></script>
|
|
||||||
<script src="js/app.js"></script>
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script src="js/message.js"></script>
|
||||||
|
<script src="js/app.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -8,7 +8,7 @@ function setupApp() {
|
||||||
})
|
})
|
||||||
|
|
||||||
window.app = new Vue({
|
window.app = new Vue({
|
||||||
el: "#app",
|
el: "#info",
|
||||||
data: {
|
data: {
|
||||||
streamStatus: "",
|
streamStatus: "",
|
||||||
viewerCount: 0,
|
viewerCount: 0,
|
||||||
|
|
Loading…
Reference in a new issue