Spaces:
Runtime error
Runtime error
Upload index.html
Browse files- index.html +142 -0
index.html
ADDED
@@ -0,0 +1,142 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html lang="en">
|
3 |
+
<head>
|
4 |
+
<meta charset="UTF-8" />
|
5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
6 |
+
<title>Arqonz AI Chatbot</title>
|
7 |
+
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
|
8 |
+
<style>
|
9 |
+
body {
|
10 |
+
background-color: #f9f9f9;
|
11 |
+
font-family: 'Segoe UI', sans-serif;
|
12 |
+
}
|
13 |
+
|
14 |
+
.chat-container {
|
15 |
+
max-width: 600px;
|
16 |
+
margin: 40px auto;
|
17 |
+
background: #fff;
|
18 |
+
border-radius: 12px;
|
19 |
+
box-shadow: 0 0 12px rgba(0, 0, 0, 0.08);
|
20 |
+
display: flex;
|
21 |
+
flex-direction: column;
|
22 |
+
height: 80vh;
|
23 |
+
}
|
24 |
+
|
25 |
+
.chat-header {
|
26 |
+
background: #111;
|
27 |
+
color: #fff;
|
28 |
+
padding: 16px;
|
29 |
+
font-size: 18px;
|
30 |
+
font-weight: bold;
|
31 |
+
border-top-left-radius: 12px;
|
32 |
+
border-top-right-radius: 12px;
|
33 |
+
}
|
34 |
+
|
35 |
+
.chat-box {
|
36 |
+
flex: 1;
|
37 |
+
padding: 16px;
|
38 |
+
overflow-y: auto;
|
39 |
+
display: flex;
|
40 |
+
flex-direction: column;
|
41 |
+
}
|
42 |
+
|
43 |
+
.bot-message,
|
44 |
+
.user-message {
|
45 |
+
max-width: 80%;
|
46 |
+
margin: 8px 0;
|
47 |
+
padding: 10px 14px;
|
48 |
+
border-radius: 18px;
|
49 |
+
font-size: 15px;
|
50 |
+
}
|
51 |
+
|
52 |
+
.bot-message {
|
53 |
+
background-color: #e0e0e0;
|
54 |
+
align-self: flex-start;
|
55 |
+
}
|
56 |
+
|
57 |
+
.user-message {
|
58 |
+
background-color: #007bff;
|
59 |
+
color: #fff;
|
60 |
+
align-self: flex-end;
|
61 |
+
}
|
62 |
+
|
63 |
+
.chat-input-area {
|
64 |
+
display: flex;
|
65 |
+
align-items: center;
|
66 |
+
gap: 8px;
|
67 |
+
padding: 12px;
|
68 |
+
border-top: 1px solid #eee;
|
69 |
+
}
|
70 |
+
|
71 |
+
.chat-input-area input[type="text"] {
|
72 |
+
flex: 1;
|
73 |
+
padding: 10px 14px;
|
74 |
+
border-radius: 20px;
|
75 |
+
border: 1px solid #ccc;
|
76 |
+
font-size: 14px;
|
77 |
+
}
|
78 |
+
|
79 |
+
.chat-input-area button {
|
80 |
+
background: none;
|
81 |
+
border: none;
|
82 |
+
font-size: 20px;
|
83 |
+
cursor: pointer;
|
84 |
+
color: #0e7bee;
|
85 |
+
}
|
86 |
+
|
87 |
+
@media (max-width: 768px) {
|
88 |
+
.chat-container {
|
89 |
+
margin: 20px;
|
90 |
+
height: 85vh;
|
91 |
+
}
|
92 |
+
|
93 |
+
.chat-input-area input[type="text"] {
|
94 |
+
font-size: 16px;
|
95 |
+
}
|
96 |
+
}
|
97 |
+
</style>
|
98 |
+
</head>
|
99 |
+
<body>
|
100 |
+
<nav class="navbar navbar-expand-lg navbar-light bg-white border-bottom px-3">
|
101 |
+
<div class="container-fluid">
|
102 |
+
<a class="navbar-brand" href="https://arqonz.com/">
|
103 |
+
<img src="https://www.arqonz.com/static/images/Logo-Arq.png" alt="ARQONZ Logo" height="45">
|
104 |
+
</a>
|
105 |
+
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
|
106 |
+
<span class="navbar-toggler-icon"></span>
|
107 |
+
</button>
|
108 |
+
<div class="collapse navbar-collapse" id="navbarNav">
|
109 |
+
<ul class="navbar-nav mx-auto mb-2 mb-lg-0">
|
110 |
+
<li class="nav-item">
|
111 |
+
<a class="nav-link fw-semibold" href="https://arqonz.com/">Home</a>
|
112 |
+
</li>
|
113 |
+
<li class="nav-item">
|
114 |
+
<a class="nav-link fw-semibold" href="https://arqonz.com/calculator/tile-calculator#">Tools</a>
|
115 |
+
</li>
|
116 |
+
</ul>
|
117 |
+
<div class="d-flex gap-2">
|
118 |
+
<a href="https://arqonz.com/account/sign-in" class="btn btn-outline-secondary btn-sm">Login</a>
|
119 |
+
<a href="https://arqonz.com/account/register" class="btn btn-sm text-white" style="background-color: #2cb494; border-color: #00b287;">Sign Up</a>
|
120 |
+
</div>
|
121 |
+
</div>
|
122 |
+
</div>
|
123 |
+
</nav>
|
124 |
+
|
125 |
+
<main class="container px-3">
|
126 |
+
<div class="chat-container">
|
127 |
+
<div class="chat-header">AI Chatbot</div>
|
128 |
+
<div class="chat-box" id="chatBox">
|
129 |
+
<div class="bot-message">Hi! How can I help you ?</div>
|
130 |
+
</div>
|
131 |
+
<div class="chat-input-area px-3 pb-3">
|
132 |
+
<button id="micBtn">🎙️</button>
|
133 |
+
<input type="text" id="userInput" placeholder="Ask a question..." class="form-control" />
|
134 |
+
<button onclick="sendMessage()">➤</button>
|
135 |
+
</div>
|
136 |
+
</div>
|
137 |
+
</main>
|
138 |
+
|
139 |
+
<script defer src="script.js"></script>
|
140 |
+
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
|
141 |
+
</body>
|
142 |
+
</html>
|