Skip to content

Commit 981933e

Browse files
authored
Update index.html
1 parent 2a3e813 commit 981933e

File tree

1 file changed

+85
-11
lines changed

1 file changed

+85
-11
lines changed

index.html

Lines changed: 85 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,99 @@
11
<!DOCTYPE html>
2-
<html lang="en">
2+
<html lang="nl">
33
<head>
44
<meta charset="UTF-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
6-
<title>Indicatiehulp Webchat</title>
6+
<title>Webchat met GPT Agent</title>
77
<style>
8-
body { font-family: sans-serif; margin: 0; padding: 0; display: flex; flex-direction: column; height: 100vh; }
9-
#chat { flex: 1; overflow-y: auto; padding: 1em; background: #f4f4f4; }
10-
#input-form { display: flex; padding: 1em; background: #fff; }
11-
input { flex: 1; padding: 0.5em; font-size: 1em; }
12-
button { padding: 0.5em 1em; }
13-
.user { font-weight: bold; margin-top: 1em; }
14-
.agent { margin-left: 1em; color: #333; }
8+
body {
9+
font-family: Arial, sans-serif;
10+
margin: 0;
11+
padding: 0;
12+
background-color: #f4f4f4;
13+
display: flex;
14+
flex-direction: column;
15+
height: 100vh;
16+
}
17+
18+
h1 {
19+
text-align: center;
20+
background-color: #1976d2;
21+
color: white;
22+
padding: 12px 0;
23+
margin: 0;
24+
}
25+
26+
#chat {
27+
flex-grow: 1;
28+
overflow-y: auto;
29+
padding: 16px;
30+
display: flex;
31+
flex-direction: column;
32+
}
33+
34+
.message {
35+
margin-bottom: 12px;
36+
padding: 8px 12px;
37+
border-radius: 10px;
38+
max-width: 75%;
39+
word-wrap: break-word;
40+
}
41+
42+
.user-message {
43+
background-color: #e0f7fa;
44+
align-self: flex-end;
45+
text-align: right;
46+
}
47+
48+
.agent-message {
49+
background-color: #f1f1f1;
50+
align-self: flex-start;
51+
text-align: left;
52+
}
53+
54+
#input-form {
55+
display: flex;
56+
border-top: 1px solid #ccc;
57+
padding: 10px;
58+
background: white;
59+
}
60+
61+
#user-input {
62+
flex-grow: 1;
63+
padding: 10px;
64+
font-size: 16px;
65+
border: 1px solid #ccc;
66+
border-radius: 6px;
67+
margin-right: 10px;
68+
}
69+
70+
button {
71+
padding: 10px 16px;
72+
font-size: 16px;
73+
background-color: #1976d2;
74+
color: white;
75+
border: none;
76+
border-radius: 6px;
77+
cursor: pointer;
78+
}
79+
80+
button:hover {
81+
background-color: #125aa3;
82+
}
1583
</style>
1684
</head>
1785
<body>
86+
87+
<h1>Chat met de AI Agent</h1>
88+
1889
<div id="chat"></div>
90+
1991
<form id="input-form">
20-
<input type="text" id="user-input" placeholder="Typ hier je vraag..." autocomplete="off" />
21-
<button type="submit">Verzend</button>
92+
<input type="text" id="user-input" placeholder="Typ je bericht..." autocomplete="off" />
93+
<button type="submit">Verstuur</button>
2294
</form>
95+
2396
<script src="script.js"></script>
97+
2498
</body>
2599
</html>

0 commit comments

Comments
 (0)