-
Notifications
You must be signed in to change notification settings - Fork 0
/
creation.html
193 lines (167 loc) · 6.27 KB
/
creation.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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="icon" href="https://cdn.discordapp.com/attachments/951417646191083551/1119215559343616061/speech-bubble.png" type="image/x-icon">
<meta name="description" content="JustChat - A live chat website with self-hosted rooms and no login required. Join the conversation and chat with others in real-time.">
<meta name="keywords" content="JustChat, live chat, chat website, self-hosted rooms, no login required">
<!-- Open Graph Meta Tags -->
<meta property="og:title" content="JustChat">
<meta property="og:description" content="JustChat - A live chat website with self-hosted rooms and no login required. Join the conversation and chat with others in real-time.">
<meta property="og:image" content="https://cdn.discordapp.com/attachments/951417646191083551/1119215559343616061/speech-bubble.png">
<meta property="og:url" content="https://justct.github.io/">
<meta property="og:type" content="website">
<!-- Twitter Card Meta Tags -->
<meta name="twitter:title" content="JustChat">
<meta name="twitter:description" content="JustChat - A live chat website with self-hosted rooms and no login required. Join the conversation and chat with others in real-time.">
<meta name="twitter:image" content="https://cdn.discordapp.com/attachments/951417646191083551/1119215559343616061/speech-bubble.png">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="styles.css">
<title>Create a Chat Room</title>
<style>
/* Heading styles */
.heading {
text-align: center;
margin-bottom: 20px;
}
.heading h1 {
font-size: 36px;
font-weight: bold;
color: #333;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}
.heading p {
font-size: 18px;
color: #666;
margin-top: 10px;
}
.info-container {
text-align: center;
margin-top: 100px;
}
.info-text {
font-size: 18px;
margin-bottom: 20px;
transition: color 0.3s ease;
}
.info-text:hover {
color: blue;
}
.info-button {
display: inline-block;
padding: 10px 20px;
background-color: #6441A4;
color: white;
font-size: 16px;
text-decoration: none;
border-radius: 4px;
transition: background-color 0.3s ease;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.info-button:hover {
background-color: #4B367E;
box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}
body {
overflow-x: hidden;
}
.info-container {
display: flex;
align-items: center;
background-color: #e8f5e9;
border: 2px solid #388e3c;
border-radius: 5px;
padding: 10px;
margin: 0 auto;
width: 70%;
max-height: 100px;
transition: background-color 0.3s ease;
}
.info-container:hover {
background-color: #c8e6c9;
}
.info-container h2 {
color: #388e3c;
font-size: 14px;
margin-right: 10px;
font-family: "Arial Black", sans-serif;
}
.info-container p {
color: #666;
font-size: 16px;
line-height: 1.5;
}
</style>
</head>
<body>
<header>
<h1>Create a Chat Room</h1>
<a href="index.html" class="top-button">Discover Chat Rooms</a>
</header>
<main>
<form id="creation-form">
<input type="text" id="api-url-input" placeholder="API URL" required>
<input type="text" id="name-input" placeholder="Name" required>
<textarea id="description-input" placeholder="Description" required></textarea>
<button type="submit" id="create-button">Create</button>
</form>
</main>
<div class="heading">
<h1>Create a Chatroom!!</h1>
<p>Follow the steps below to get started</p>
</div>
<div class="instruction-container">
<div class="instruction">
Step 1: Make sure you meet all requirements,<br> Requirements - python3 , pip3/pip , git
</div>
<div class="instruction">Step 2: Clone the repo
<div>
<div class="command">git clone https://github.com/Justct/Chatroom.git && cd Chatroom</div>
<button class="copy-button">Copy</button>
</div>
<i>If using replit to host use: </i>
<div>
<div class="command">
sed -i 's|entrypoint = "main.py"|entrypoint = "Chatroom-replit/main.py"|' .replit
</div> <button class="copy-button">Copy</button></div>
<div>
<div class="command">git clone https://github.com/Justct/Chatroom-replit.git && cd Chatroom-replit</div>
<button class="copy-button">Copy</button>
</div>
</div>
<div class="instruction">Step 3 : Install Pip requirements
<div class="command">pip install -r requirements.txt</div>
<button class="copy-button">Copy</button>
</div>
<div class="instruction">Step 4 : Run the python program (using python3 if on linux, or use python) If on replit use the 'run' button!
<div class="command">python main.py</div>
<button class="copy-button">Copy</button>
</div>
<div class="instruction">Step 5 : Answer the questions the application ask, Then come here and register.</div>
</div>
<div class="info-container">
<p>For more information, visit our Github <a href="https://github.com/Justct" > Visit Github</a>
</p>
</div>
<script src="script_c.js"></script>
<script>
// Copy button functionality
const copyButtons = document.querySelectorAll('.copy-button');
copyButtons.forEach(button => {
button.addEventListener('click', () => {
const instruction = button.parentNode;
const commandText = instruction.querySelector('.command').textContent;
navigator.clipboard.writeText(commandText)
.then(() => {
console.log('Command copied to clipboard:', commandText);
// Display a success message or perform any other desired action
})
.catch(error => {
console.error('Error copying command to clipboard:', error);
// Display an error message or perform any other desired action
});
});
});
</script>
</body>
</html>