-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathindex.html
47 lines (45 loc) · 1.46 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
<!DOCTYPE html>
<html>
<head>
<title>Tock Bot</title>
<meta charset="UTF-8"/>
<!-- Tock Widget -->
<script src="https://unpkg.com/tock-react-kit@latest/build/tock-react-kit-standalone.umd.js"></script>
<!-- Font -->
<link href="https://fonts.googleapis.com/css?family=Montserrat" rel="stylesheet" />
</head>
<body>
<div id="app"></div>
<script>
//render the widget
TockReact.renderChat(
document.getElementById('app'),
//Set your web connector url here
'http://localhost:8080/[relative web connector rest path]',
//Set referralParameter
'',
//options: https://github.com/theopenconversationkit/tock-react-kit/blob/master/src/styles/theme.ts#L13
{
palette: {
background: {
bot: '#0A2342',
card: '#FFFDF7',
},
},
sizing: {
borderRadius: '1em',
},
typography: {
fontFamily: 'Montserrat, Arial, Helvetica, sans-serif',
fontSize: '16px',
},
overrides: {
chat: `background-image: radial-gradient(circle 79vh at bottom center, #84BC9C, #2CA58D);`,
quickReply: `background: #F46197; color: #FFFDF7; border-color: #FFFDF7;`,
card: `& button { background: #F46197; color: #FFFDF7; border-color: #FFFDF7; }`,
}
}
);
</script>
</body>
</html>