mirror of
https://github.com/owncast/owncast.git
synced 2024-11-22 04:40:37 +03:00
initial chat form layout
This commit is contained in:
parent
33f994fcfd
commit
60080cd93c
3 changed files with 52 additions and 46 deletions
|
@ -22,13 +22,14 @@
|
||||||
<h1>
|
<h1>
|
||||||
Maybe a header
|
Maybe a header
|
||||||
</h1>
|
</h1>
|
||||||
|
<span>💬</span>
|
||||||
|
|
||||||
</header>
|
</header>
|
||||||
<div id="main-content-container" class="flex nxo-chat">
|
<div id="main-content-container" class="flex nxo-chat">
|
||||||
|
|
||||||
<!-- LEFT CONTAINER SIDE-->
|
<!-- LEFT CONTAINER SIDE-->
|
||||||
<div class="flex main-cols left-col">
|
<div class="flex main-cols left-col">
|
||||||
|
|
||||||
<div id="video-container" class="flex">
|
<div id="video-container" class="flex shadow-md">
|
||||||
<video
|
<video
|
||||||
id="video"
|
id="video"
|
||||||
preload="auto"
|
preload="auto"
|
||||||
|
@ -38,7 +39,7 @@
|
||||||
></video>
|
></video>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="info">
|
<div id="info-">
|
||||||
{{ streamStatus }} {{ viewerCount }} {{ 'viewer' | plural(viewerCount) }}.
|
{{ 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.
|
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.
|
||||||
|
|
||||||
|
@ -48,10 +49,11 @@
|
||||||
|
|
||||||
<!-- RIGHT CONTAINER SIDE-->
|
<!-- RIGHT CONTAINER SIDE-->
|
||||||
<div class="flex main-cols right-col">
|
<div class="flex main-cols right-col">
|
||||||
|
|
||||||
<div id="chat-container">
|
<div id="chat-container">
|
||||||
<div id="messages-container">
|
<div id="messages-container">
|
||||||
<div v-for="(message, index) in messages">
|
<div v-for="(message, index) in messages">
|
||||||
<div class="bg-white shadow-md rounded px-8 pt-6 pb-8 mb-4">
|
<div class="bg-white shadow-md px-8 pt-6 pb-8 mb-4">
|
||||||
<div class="flex items-center">
|
<div class="flex items-center">
|
||||||
<img
|
<img
|
||||||
v-bind:src="message.image"
|
v-bind:src="message.image"
|
||||||
|
@ -68,48 +70,39 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<form
|
<div id="chat-input-container" class="shadow-md">
|
||||||
id="chatForm"
|
<form id="chat-form" class="flex" @submit="submitChatForm">
|
||||||
@submit="submitChatForm"
|
|
||||||
class="bg-white shadow-md rounded px-8 pt-6 pb-8 mb-4"
|
|
||||||
>
|
|
||||||
<!-- Author -->
|
<!-- Author -->
|
||||||
<label class="control-label" for="inputAuthor">Author</label>
|
<!-- <label class="control-label" for="inputAuthor">Author</label>
|
||||||
<input
|
<input
|
||||||
id="inputAuthor"
|
id="inputAuthor"
|
||||||
type="text"
|
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"
|
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"
|
placeholder="Name"
|
||||||
v-model="message.author"
|
v-model="message.author"
|
||||||
/>
|
/> -->
|
||||||
|
|
||||||
|
|
||||||
<!-- Body -->
|
|
||||||
<div>
|
|
||||||
<label class="control-label" for="inputBody">Message</label>
|
|
||||||
<div class="controls">
|
|
||||||
<textarea
|
<textarea
|
||||||
id="inputBody"
|
id="inputBody"
|
||||||
placeholder="Message"
|
placeholder="Message"
|
||||||
v-model="message.body"
|
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"
|
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>
|
</textarea>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="control-group">
|
|
||||||
<div class="controls">
|
|
||||||
<button
|
<button
|
||||||
class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded"
|
class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-1 px-2 rounded"
|
||||||
>
|
>
|
||||||
Send
|
Send
|
||||||
</button>
|
</button>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,7 @@ function setupApp() {
|
||||||
})
|
})
|
||||||
|
|
||||||
window.chatForm = new Vue({
|
window.chatForm = new Vue({
|
||||||
el: "#chatForm",
|
el: "#chat-form",
|
||||||
data: {
|
data: {
|
||||||
message: {
|
message: {
|
||||||
author: "",//localStorage.author || "Viewer" + (Math.floor(Math.random() * 42) + 1),
|
author: "",//localStorage.author || "Viewer" + (Math.floor(Math.random() * 42) + 1),
|
||||||
|
|
|
@ -74,10 +74,23 @@ header h1 {
|
||||||
height: calc(100vh - 3em)
|
height: calc(100vh - 3em)
|
||||||
}
|
}
|
||||||
|
|
||||||
#info {
|
#chat-input-container {
|
||||||
height: 500px;
|
position: absolute;
|
||||||
|
bottom: 0;
|
||||||
|
width: 100%;
|
||||||
|
border-top: 1px solid #eee;
|
||||||
|
padding: 1em;
|
||||||
|
background-color: #334;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#chat-form {
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: flex-end;
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.no-chat .left-col {
|
.no-chat .left-col {
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
|
|
Loading…
Reference in a new issue