-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
133 lines (133 loc) · 7.89 KB
/
index.html
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- libreria bootstrap -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<!-- libreria fontawesome -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css" integrity="sha512-1ycn6IcaQQ40/MKBW2W4Rhis/DbILU74C1vSrLJxCq57o941Ym01SwNsOMqvEBFlcgUa6xLiPY/NS5R+E6ztJQ==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<!-- foonts google -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Lato:wght@100;300;400;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="css/style.css">
<title>Boolzapp</title>
</head>
<body>
<main>
<section id="sfondo-up"></section>
<section id="sfondo-down"></section>
<!-- app -->
<section id="app">
<div class="container" id="main-container">
<div class="row">
<div class="col-4 p-0">
<!-- sezione contatti -->
<div id="contatti">
<!-- profilo -->
<div class="profilo">
<div class="utente">
<img class="img-utente" src="img/img-utente.jpg" alt="">
<span>Simone</span>
</div>
<div class="opzione-profilo">
<i class="fas fa-circle-notch"></i>
<i class="fas fa-comment-alt"></i>
<i class="fas fa-ellipsis-v"></i>
</div>
</div>
<!-- ricezione notifiche -->
<div id="ricevi-notifiche">
<div id="icona-ricevi-notifica">
<i class="fas fa-bell-slash"></i>
</div>
<div id="testo-ricevi-notifica">
<p>
Ricevi notifiche di nuovi messaggi
<br>
<span>Attiva notifiche desktop</span>
</p>
</div>
</div>
<!-- ricerca contatto -->
<div id="ricerca-contatto">
<div class="input-group input-group-sm">
<span class="input-group-text" id="inputGroup-sizing-sm" @click="searchContact()"><i class="fas fa-search"></i></span>
<input type="text" class="form-control" aria-label="Sizing example input" aria-describedby="inputGroup-sizing-sm" placeholder="Cerca o inizia una nuova chat" v-model="contact" @keyup="searchContact()">
</div>
</div>
<!-- lista chat -->
<div id="lista-chat">
<div class="preview-chat" :class="chatActive === index ? 'active' : ''" v-for="(chat,index) in contacts" :key="index" @click="selectChat(index)" v-if="chat.visible === true">
<div class="utente">
<img class="img-utente" :src="chat.avatar" alt="">
</div>
<div class="nome-chat">
<p>
{{chat.name}}
<br>
<span>{{chat.messages[chat.messages.length - 1].message}} </span>
</p>
</div>
<div class="ultimo-accesso">
<span>{{chat.messages[chat.messages.length - 1].date}}</span>
</div>
</div>
</div>
</div>
</div>
<div class="col-8 p-0">
<!-- chat -->
<div id="chat">
<!-- titolo chat -->
<div class="profilo" id="titolo-chat">
<div class="utente">
<img class="img-utente" :src="contacts[chatActive].avatar" alt="">
<p>
{{contacts[chatActive].name}}
<br>
<span v-if="contacts[chatActive].ultimoAccesso !== 'Sta scrivendo...' && contacts[chatActive].ultimoAccesso !== 'Online'">Ultimo accesso {{contacts[chatActive].ultimoAccesso}}</span>
<span v-else>{{contacts[chatActive].ultimoAccesso}}</span>
</p>
</div>
<div class="opzione-profilo">
<i class="fas fa-search"></i>
<i class="fas fa-paperclip"></i>
<i class="fas fa-ellipsis-v"></i>
</div>
</div>
<!-- corpo chat -->
<div id="corpo-chat">
<div v-for="(messaggio,i) in contacts[chatActive].messages" :class="messaggio.status === 'sent' ? 'messaggio-inviato' : 'messaggio-ricevuto'" :key="i" @click="selectMessage(i)">
<p>{{messaggio.message}}</p>
<span>{{messaggio.date}}</span>
<div class="elimina-messaggio" :class="messaggio.select === true ? 'select' : ''" :key="i">
<span class="elimina-text">Message Info</span>
<span class="elimina-text" @click="deleteMessage">Delete Message</span>
</div>
</div>
</div>
<!-- input nuovo messaggio -->
<div id="input-chat">
<div class="more-input">
<i class="far fa-smile"></i>
</div>
<input class="form-control" id="nuovo-messaggio" type="text" placeholder="Scrivi un nuovo messaggio" v-model="newMessage" @keyup.enter="addNewMessage">
<div class="more-input">
<i v-if="newMessage === ''" class="fas fa-microphone"></i>
<i v-else @click="addNewMessage" class="fas fa-paper-plane"></i>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
</main>
<script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
<script src="https://unpkg.com/dayjs@1.8.21/dayjs.min.js"></script>
<script src="js/script.js"></script>
</body>
</html>