-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
116 lines (104 loc) · 5.67 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Spinoco webchat plugin</title>
</head>
<body class="bg-gray-100">
<header class="bg-white p-4 m-4 rounded-md">
<nav class="flex items-center justify-between" aria-label="Global">
<div class="flex lg:flex-1">
<img class="h-8" src="logo.svg" alt="Spinoco">
</div>
<div class="lg:flex lg:flex-1 lg:justify-end">
<a href="https://spinoco.com/" target="_blank" class="inline-flex items-center justify-center px-4 py-2 font-bold leading-6 text-white bg-primary rounded-full md:w-auto hover:bg-gray-800">
<span>Spinoco.com</span>
<span class="ml-2">→</span>
</a>
</div>
</nav>
</header>
<main class="m-4">
<h1 class="text-3xl font-bold tracking-tight text-gray-900 mb-4">Spinoco webchat plugin</h1>
<p class="mb-4 text-sm text-gray-600">This showcase gives short demonstration of the Spinoco plugin and different styles and options</p>
<h2 class="text-xl font-bold tracking-tight text-gray-900 mb-1">How to use webchat plugin</h2>
<p class="mb-2 text-sm text-gray-600">Insert snippet at the very end of your page before <code class="bg-gray-200 p-1 rounded-md text-xs text-black"></body></code> tag:</p>
<div class="bg-gray-200 p-4 rounded-md text-sm mb-6">
<code class="text-black white-space-pre">
<div
id="spinoco-webchat-plugin"
data-client-id="fillme"
data-customer-name="fillme"
data-customer-email="fillme"
data-avatar-user-url="fillme"
data-avatar-bot-url="fillme"
></div> <br>
<script
defer
type="module"
src="https://spinoco.github.io/webchat-plugin/dist/spinoco-webchat-plugin.js"
></script>
</code>
</div>
<h2 class="text-xl font-bold tracking-tight text-gray-900 mb-1">Examples of webchat plugin usage</h2>
<div class="bg-white divide-y rounded-md mb-6">
<div class="md:flex items-center justify-between p-4">
<div class="flex-1">
<h3 class="font-bold text-gray-900">Basic</h3>
<p class="text-sm text-gray-600">Basic green theme</p>
</div>
<div class="flex flex-1 md:justify-end mt-2 md:mt-0">
<a href="<%= basePath %>/examples/basic.html" class="text-sm inline-flex items-center justify-center px-3 py-1 font-bold leading-6 text-white bg-primary rounded-full md:w-auto hover:bg-gray-800">
<span>Show example</span>
</a>
</div>
</div>
<div class="md:flex items-center justify-between p-4">
<div class="flex-1">
<h3 class="font-bold text-gray-900">Dark theme</h3>
<p class="text-sm text-gray-600">Customized theme with dark background</p>
</div>
<div class="flex flex-1 md:justify-end mt-2 md:mt-0">
<a href="<%= basePath %>/examples/slevomat.html" class="text-sm inline-flex items-center justify-center px-3 py-1 font-bold leading-6 text-white bg-primary rounded-full md:w-auto hover:bg-gray-800">
<span>Show example</span>
</a>
</div>
</div>
<div class="md:flex items-center justify-between p-4">
<div class="flex-1">
<h3 class="font-bold text-gray-900">Border only theme</h3>
<p class="text-sm text-gray-600">A feature that allows to style chat bos with border-only theme in bubble</p>
</div>
<div class="flex flex-1 md:justify-end mt-2 md:mt-0">
<a href="<%= basePath %>/examples/border-only.html" class="text-sm inline-flex items-center justify-center px-3 py-1 font-bold leading-6 text-white bg-primary rounded-full md:w-auto hover:bg-gray-800">
<span>Show example</span>
</a>
<a href="<%= basePath %>/examples/border-only-minified.html" class="ml-2 text-sm inline-flex items-center justify-center px-3 py-1 font-bold leading-6 text-white bg-primary rounded-full md:w-auto hover:bg-gray-800">
<span>Minified</span>
</a>
</div>
</div>
<div class="md:flex items-center justify-between p-4">
<div class="flex-1">
<h3 class="font-bold text-gray-900">Lottie</h3>
<p class="text-sm text-gray-600">Lottie icon animation with box shadow feature.</p>
</div>
<div class="flex flex-1 md:justify-end mt-2 md:mt-0">
<a href="<%= basePath %>/examples/lottie.html" class="text-sm inline-flex items-center justify-center px-3 py-1 font-bold leading-6 text-white bg-primary rounded-full md:w-auto hover:bg-gray-800">
<span>Show example</span>
</a>
</div>
</div>
</div>
<h2 class="text-xl font-bold tracking-tight text-gray-900 mb-1">How to develop features to webchat plugin</h2>
<p class="text-sm text-gray-600">Learn more in <a href="https://github.com/Spinoco/webchat-plugin" class="text-primary" target="_blank">Github repository</a>.</p>
<hr class="mt-4"/>
<p class="text-sm mt-2 text-gray-400">
<a href="https://spinoco.com/" target="_blank">Spinoco.com</a>
</p>
</main>
<script type="module" src="src/spinoco-webchat-plugin.tsx"></script>
<script type="module" src="src/spinoco-examples.tsx"></script>
</body>
</html>