-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
149 lines (133 loc) · 3.58 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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description"
content="Welcome to SamarGPT. SamarGPT is a cloned version of ChatGPT which uses GeminiAI API for fetching responses to user prompts in real time. You will have a better user experience, while chatting with SamarGPT">
<meta name="keywords" content="SamarGPT,ChatGPT,GeminiAI,Chatbot,Real time,Conversational AI,GPT,API">
<meta name="robots" content="NOINDEX,NOFOLLOW">
<title>SamarGPT</title>
<link rel="shortcut icon" href="/chatGPT.png" type="image/x-icon">
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="extra.css">
<style>
body,
html {
height: 100%;
margin: 0;
display: flex;
flex-direction: column;
}
h1 {
font-size: 300%;
color: aliceblue;
}
#redirectButton {
font-size: 110%;
width: 150px;
border-radius: 10rem;
border: 2px solid aliceblue;
color: aliceblue;
}
#redirectButton:hover{
background-color: #19191c;
}
#version p{
font-size: 0.7rem;
color: aliceblue;
}
#mistakes {
font-size: 0.7rem;
color: aliceblue;
}
.first {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
flex: 1;
}
.text-container {
flex: 1;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.button-container {
position: fixed;
bottom: 20px;
width: 100%;
display: flex;
justify-content: center;
}
/* Additional CSS to ensure chat messages start from the top */
.second {
display: flex;
flex-direction: column;
}
.chat-container {
flex: 1;
display: flex;
flex-direction: column;
overflow-y: auto;
padding: 2rem;
}
.form-container {
display: flex;
align-items: center;
padding: 1rem;
background-color: #19191c;
}
#prompt {
flex: 1;
padding: 0.5rem;
margin-right: 1rem;
border: 1px solid #333;
border-radius: 0.5rem;
background-color: #222;
color: white;
}
#chat-form button {
background-color: #333;
border: none;
border-radius: 0.5rem;
padding: 0.5rem 1rem;
cursor: pointer;
}
#chat-form button img {
width: 30px;
height: auto;
}
</style>
</head>
<body>
<main id="first-main" class="first">
<div class="text-container">
<img src="/chatGPT.png" alt="SamarGPT Logo" id="logo">
<h1><span class="text"></span></h1>
</div>
<div class="button-container">
<button id="redirectButton">Get Started</button>
</div>
<div id="version">
<p>SamarGPT Beta version: 1.2.2</p>
</div>
</main>
<main id="second-main" class="second w-full min-h-[calc(100vh-1rem)] max-h-[calc(100vh-1rem)] flex flex-col"
style="display: none;">
<!-- Chat Area -->
<div class="chat-container top-0" id="chat-container"></div>
<!-- Prompt -->
<form method="post" class="form-container h-fit w-full fixed-bottom" id="chat-form">
<textarea name="prompt" id="prompt" cols="30" rows="1"
class="p-2 resize-none focus:outline-none text-white" placeholder="Message SamarGPT"></textarea>
<button type="submit">
<img class="m-auto" src="/sendArrow.png" alt="Send">
</button>
</form>
</main>
<script type="module" src="/main.js"></script>
</body>
</html>