integrate master
This commit is contained in:
parent
94eddf81a6
commit
07117763bf
Binary file not shown.
Before Width: | Height: | Size: 4.3 KiB |
@ -1,28 +1,23 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="chatInformation">
|
<div id="chatInformation">
|
||||||
<h1>open chat</h1>
|
<h1>open chat</h1>
|
||||||
<icon class="closeBtn" onclick="this.parentNode.style.display = 'none'" ic="./sym/ic_close_white_24px.svg" />
|
<icon class="closeBtn" onclick="this.parentNode.style.display = 'none'" ic="./sym/ic_close_white_24px.svg" />
|
||||||
<div id="box">
|
<div id="box">
|
||||||
<div class="informationBox">
|
<div class="informationBox">
|
||||||
<div class="picBoxBig"><div class="placeholderBig"><p>O P</p></div></div>
|
<div class="picBoxBig"><div class="placeholderBig"><p>{{chatroom.name.substr(0,2)}}</p></div></div>
|
||||||
<div class="roomInformation">
|
<div class="roomInformation">
|
||||||
<div class="roomName">Open Chat room</div>
|
<div class="roomName">{{chatroom.name}}</div>
|
||||||
<div class="users">2 members</div>
|
<div class="users">{{chatroom.user.length}} members</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="textMembers">Members</div>
|
<h2 v-if="chatroom.user.length !== 0">members</h2>
|
||||||
<div class="contentBox">
|
<div v-for="user in chatroom.user" :key="user">
|
||||||
<div class="picBox"><div class="picPlaceholder"><p>O P</p></div></div>
|
<div class="contentBox">
|
||||||
<div class="information">
|
<div class="picBox"><div class="picPlaceholder"><p>{{user.substr(0,2)}}</p></div></div>
|
||||||
<div class="userName">TechCrafter07</div>
|
<div class="information">
|
||||||
<div class="status">Online</div>
|
<div class="userName">{{user}}</div>
|
||||||
</div>
|
<div class="status">online</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="contentBox">
|
|
||||||
<div class="picBox"><div class="picPlaceholder"><p>O P</p></div></div>
|
|
||||||
<div class="information">
|
|
||||||
<div class="userName">Alban</div>
|
|
||||||
<div class="status">Online</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -30,30 +25,38 @@
|
|||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import icon from './icon.vue';
|
import icon from './icon.vue';
|
||||||
|
import main from '@/main.js'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "chatInformation",
|
name: "chatInformation",
|
||||||
components:{
|
components:{
|
||||||
icon
|
icon
|
||||||
|
},
|
||||||
|
data(){
|
||||||
|
return {
|
||||||
|
chatroom: main.data().chatroom
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.chatInformation{
|
#chatInformation{
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
transform: translate(-50%, 0);
|
transform: translate(-50%, 0);
|
||||||
top: 5rem;
|
top: 5rem;
|
||||||
width: calc(100% - 8rem);
|
width: calc(100% - 8rem);
|
||||||
|
max-width: 30rem;
|
||||||
height: calc(100% - 10rem);
|
height: calc(100% - 10rem);
|
||||||
background-color: #1d1d1d;
|
background-color: #1d1d1d;
|
||||||
box-shadow: 6px 6px 20px #111;
|
box-shadow: 6px 6px 20px #111;
|
||||||
border-radius: 1rem;
|
border-radius: 1rem;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
display: none;
|
||||||
}
|
}
|
||||||
@media (max-width: 30rem) {
|
@media (max-width: 30rem) {
|
||||||
.chatInformation{
|
#chatInformation{
|
||||||
transform: unset;
|
transform: unset;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
@ -71,16 +74,14 @@ export default {
|
|||||||
#box{
|
#box{
|
||||||
position: relative;
|
position: relative;
|
||||||
width: calc(100% - 2rem);
|
width: calc(100% - 2rem);
|
||||||
background-color: #2d2d2d;
|
|
||||||
padding: 0.001rem 1rem 1rem;
|
padding: 0.001rem 1rem 1rem;
|
||||||
overflow: auto;
|
overflow-y: auto;
|
||||||
max-height: calc(100% - 8rem);
|
max-height: calc(100% - 8rem);
|
||||||
}
|
}
|
||||||
.informationBox{
|
.informationBox{
|
||||||
margin-top: 0.2rem;
|
margin-top: 0.2rem;
|
||||||
height: 5rem;
|
height: 5rem;
|
||||||
padding: 0.2rem;
|
padding: 0.2rem;
|
||||||
border-bottom: 2px solid #9c9c9c;
|
|
||||||
}
|
}
|
||||||
.picBoxBig{
|
.picBoxBig{
|
||||||
text-align: center;
|
text-align: center;
|
||||||
@ -107,17 +108,9 @@ export default {
|
|||||||
font-size: 1.2rem;
|
font-size: 1.2rem;
|
||||||
color: #9c9c9c;
|
color: #9c9c9c;
|
||||||
}
|
}
|
||||||
#textMembers{
|
|
||||||
font-size: 1.5rem;
|
|
||||||
text-align: left;
|
|
||||||
margin-left: 0.2rem;
|
|
||||||
margin-top: 0.3rem;
|
|
||||||
margin-bottom: 0.2rem;
|
|
||||||
}
|
|
||||||
.contentBox{
|
.contentBox{
|
||||||
margin-top: 0.2rem;
|
margin-top: 0.2rem;
|
||||||
height: 3.2rem;
|
height: 3.2rem;
|
||||||
border-bottom: 2px solid #9c9c9c ;
|
|
||||||
padding: 0.2rem;
|
padding: 0.2rem;
|
||||||
max-height: 48px;
|
max-height: 48px;
|
||||||
}
|
}
|
||||||
|
@ -15,6 +15,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<newMessage />
|
<newMessage />
|
||||||
<topBanner />
|
<topBanner />
|
||||||
|
<chatInformation />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -24,10 +25,12 @@ import messageReceive from '@/components/messageReceive.vue';
|
|||||||
import newMessage from '@/components/newMessage.vue';
|
import newMessage from '@/components/newMessage.vue';
|
||||||
import topBanner from '@/components/topBanner.vue';
|
import topBanner from '@/components/topBanner.vue';
|
||||||
import main from '@/main.js';
|
import main from '@/main.js';
|
||||||
|
import ChatInformation from "@/components/chatInformation";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'chat',
|
name: 'chat',
|
||||||
components: {
|
components: {
|
||||||
|
ChatInformation,
|
||||||
message,
|
message,
|
||||||
messageReceive,
|
messageReceive,
|
||||||
newMessage,
|
newMessage,
|
||||||
|
Loading…
Reference in New Issue
Block a user