forked from tommyscodebase/gemini_chatbot_javascript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
64 lines (61 loc) · 3.2 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="https://sprifi.weebly.com/files/theme/favicon/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script src="https://kit.fontawesome.com/93eddaa37e.js" crossorigin="anonymous"></script>
<title>Elisa AI by SpriFi</title>
<link rel="stylesheet" href="style.css" />
</head>
<body class="w-full min-h-screen flex flex-col">
<main
class="w-full bg-gemLight min-h-[calc(100vh-1rem)] max-h-[calc(100vh-1rem)] flex flex-col"
>
<!-- Header -->
<header class="p-2 bg-gemRegular flex gap-5 items-center">
<img
src="https://cdn.hashnode.com/res/hashnode/image/upload/v1679548216146/UVfbFzJqZ.png?auto=compress"
alt="chatbot image"
class="w-10 h-10"
/>
<h1 class="text-gemDeep text-lg font-medium" style="margin-top:-5px;">Elisa AI</h1>
<a style="cursor: pointer; margin-left: auto;" href="https://elisa-ai.vercel.app/" target="_parent" title="Full Screen">
<i class='fas fa-expand' style="font-size:22px; color:#ffffff90"></i></a>
</header>
<!-- Chat Box -->
<div class="flex-1 overflow-y-auto">
<!-- Chat area -->
<div class="p-2 flex flex-col gap-4" id="chat-container">
<div class="flex gap-2 justify-start" style="margin: 2rem .5rem .5rem 0;">
<img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1679548216146/UVfbFzJqZ.png?auto=compress" alt="user icon" class="w-10 h-10">
<pre class="bg-gemRegular/40 text-gemDeep p-1 rounded-md-ai shadow-md whitespace-pre-wrap"><p>Hi, I'm Elisa by SpriFi. How can I help you with, today?</p>
</pre>
</div>
</div>
</div>
<!-- prompt -->
<form action="" method="post" class="p-2 h-fit" id="chat-form" style="display: flex; background: #cc98d445; margin: 7px; color: white; border-radius: 25px;">
<textarea
name="prompt"
id="prompt"
cols="30"
rows="4"
class="w-full p-2 rounded-md resize-none focus:outline-none"
placeholder="Chat with Elisa AI"
style="background: none !important;"
></textarea>
<div id="typing-indicator" style="display: none; color: #cc98d4; align-self: center;">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="margin:auto;background:#ffffff00;display:block;" width="25px" height="25px" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid">
<circle cx="50" cy="50" fill="none" stroke="#ff00ee" stroke-width="10" r="35" stroke-dasharray="164.93361431346415 56.97787143782138">
<animateTransform attributeName="transform" type="rotate" repeatCount="indefinite" dur="1s" values="0 50 50;360 50 50" keyTimes="0;1"></animateTransform>
</circle></svg>
</div>
<button type="submit" id="submit-indicator" onclick="toggleButton()" class="w-full p-1 bg-gemDeep rounded text-white" style="background: none !important;">
Send
</button>
</form>
</main>
<script type="module" src="/main.js"></script>
</body>
</html>