-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmessage.html
90 lines (77 loc) · 2.13 KB
/
message.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>User Search and Messaging</title>
<style>
body {
font-family: 'Arial', sans-serif;
background-color: #f0f0f0;
margin: 0;
padding: 20px;
text-align: center;
}
h2, h3 {
color: #333;
}
input[type="text"], textarea {
width: 90%;
padding: 10px;
margin-bottom: 10px;
border: 1px solid #ddd;
border-radius: 4px;
box-sizing: border-box;
}
button {
background-color: #4CAF50;
color: white;
padding: 10px 15px;
margin: 10px 0;
border: none;
border-radius: 4px;
cursor: pointer;
width: 30%;
}
button:hover {
background-color: #45a049;
}
#searchResults, #messageList {
text-align: left;
margin-top: 20px;
}
#searchResults div, #messageList div {
background: white;
margin-bottom: 10px;
padding: 10px;
border-radius: 4px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
#messageInput {
width: 90%;
height: 100px;
}
#messagingSection {
margin-top: 20px;
}
</style>
</head>
<body>
<h2>Welcome to the User Search and Messaging Page</h2>
<!-- User Search Section -->
<div>
<input type="text" id="searchInput" placeholder="Search users...">
<button id="searchButton">Search</button>
<div id="searchResults"></div>
</div>
<!-- Messaging Section -->
<div id="messagingSection" style="display: none;">
<h3>Messages</h3>
<div id="messageList"></div>
<textarea id="messageInput"></textarea>
<button id="sendMessageButton">Send Message</button>
</div>
<!-- Redirect to Dashboard Button -->
<button id="dashboardButton">Go to Dashboard</button>
<script src="message.js"></script>
</body>
</html>