-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathChatView.vue
75 lines (73 loc) · 2.64 KB
/
ChatView.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<script lang="ts" setup>
import HeaderComponent from "@/components/HeaderComponent.vue";
import InputComponent from "@/components/InputComponent.vue";
import MessageComponent from "@/components/MessageComponent.vue";
const messages = [
{
sender: "You",
content:
"Hey Bob, have you heard about this new project called BLINK? It's part of a Web3 initiative.",
},
{
sender: "Bob",
content: "No, I haven't heard of BLINK. What's it about?",
},
{
sender: "You",
content:
"It's a DApp that focuses on creating a communication system on the ICP blockchain. It’s actually part of an On-Chain Bootcamp I’m participating in.",
},
{
sender: "Bob",
content:
"That sounds interesting. So, it's all about Web3 technologies then?",
},
{
sender: "You",
content:
"Exactly. Web3 is all about decentralization and giving control back to users. With BLINK, we're aiming to innovate in digital services, data security, and interoperability using smart contracts on the ICP blockchain.\n",
},
{
sender: "You",
content:
"Hey Bob, have you heard about this new project called BLINK? It's part of a Web3 initiative.",
},
{
sender: "Bob",
content: "No, I haven't heard of BLINK. What's it about?",
},
{
sender: "You",
content:
"It's a DApp that focuses on creating a communication system on the ICP blockchain. It’s actually part of an On-Chain Bootcamp I’m participating in.",
},
{
sender: "Bob",
content:
"That sounds interesting. So, it's all about Web3 technologies then?",
},
{
sender: "You",
content:
"Exactly. Web3 is all about decentralization and giving control back to users. With BLINK, we're aiming to innovate in digital services, data security, and interoperability using smart contracts on the ICP blockchain.\n",
},
];
</script>
<template>
<section
class="w-full h-full flex flex-col gap-6 transition-root pb-[12rem] lg:pb-12"
>
<HeaderComponent :title="$route.params.reciever_id as string" />
<p class="text-[2rem] lg:text-base">Status: Offline</p>
<article
class="flex-grow flex flex-col gap-6 lg:gap-3 rounded-xl overflow-y-scroll no-scrollbar mb-3 lg:mb-0"
>
<MessageComponent
v-for="{ sender, content } in messages"
:message="content"
:sender="sender"
/>
</article>
<InputComponent />
</section>
</template>