Koda-Frontend / index.html
sam-fritz's picture
Update index.html
4e87cb1 verified
Raw History Blame Contribute Delete
6.28 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>Adapt Chatbot</title>
<style>
/* BASE STYLES */
body, html {
margin: 0;
padding: 0;
height: 100vh; /* Standard viewport height */
width: 100%;
overflow: hidden;
background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
font-family: 'Nunito Sans', sans-serif !important;
box-sizing: border-box;
position: relative; /* Established coordinate system */
}
/* HEADER STYLES */
.header-message {
position: absolute;
top: 20px;
left: 50%;
transform: translateX(-50%);
width: 80%;
max-width: 800px;
height: auto; /* Let it grow with text */
background: white;
padding: 16px 24px;
border-radius: 12px;
text-align: center;
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2) !important;
z-index: 1000;
box-sizing: border-box;
}
.header-message h2 {
margin: 0 0 8px 0;
color: #2d3748;
font-size: 24px;
font-weight: 700;
display: flex;
align-items: center;
justify-content: center;
gap: 12px;
}
.header-message h2 img {
width: 40px;
height: 40px;
object-fit: contain;
}
.header-message p {
margin: 0;
color: #4a5568;
font-size: 14px;
line-height: 1.5;
}
/* CHAT CONTAINER - THE ANCHOR METHOD */
#anything-llm-embed-chat-container {
position: absolute !important;
left: 50% !important;
transform: translateX(-50%) !important;
/* DESKTOP POSITIONING */
/* We pin the TOP to sit below the header */
top: 150px !important;
/* We pin the BOTTOM to sit above the page edge */
bottom: 20px !important;
height: auto !important; /* Allow top/bottom to define height */
width: 80% !important;
max-width: 1000px !important;
background-color: transparent !important;
box-shadow: none !important;
border: none !important;
padding: 0 !important;
z-index: 999 !important;
}
#anything-llm-embed-chat-container iframe {
width: 100% !important;
height: 100% !important;
background-color: white !important;
border-radius: 12px !important;
box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.25) !important;
border: 1px solid rgba(0,0,0,0.05) !important;
display: block !important;
}
/* --- MOBILE RESPONSIVENESS (Max Width 768px) --- */
@media screen and (max-width: 768px) {
/* Compact Header for Mobile */
.header-message {
top: 10px;
width: 95%;
padding: 12px 16px;
}
.header-message h2 {
font-size: 18px;
}
.header-message h2 img {
width: 30px;
height: 30px;
}
.header-message p {
font-size: 12px;
display: block;
}
/* Adjust Chat Position for Mobile Header */
#anything-llm-embed-chat-container {
width: 96% !important;
/* Move UP because the header is smaller on mobile */
top: 115px !important;
bottom: 10px !important;
}
}
</style>
</head>
<body>
<div class="header-message">
<h2><img src="https://res.cloudinary.com/de82bosts/image/upload/v1768940576/25-09-19_Adapt_AdaptStore-Koda_Waving_smmbyd.png" alt="Koda">Hey! I'm Koda</h2>
<p>I can answer questions about AdaptAbilities policies and processes. My answers may be inaccurate—please always reference the provided context.</p>
</div>
<script
data-embed-id="f3827b04-baca-4a07-ae93-2d06ea5437fe"
data-base-api-url="https://adaptabilities-adapt-chatbot.hf.space/api/embed"
src="https://adaptabilities-adapt-chatbot.hf.space/embed/anythingllm-chat-widget.min.js"
data-assistant-icon="https://res.cloudinary.com/de82bosts/image/upload/v1767909204/25-09-19_Adapt_AdaptStore-Koda_Sitting_ddmggb.png"
data-assistant-name="Koda Korner"
data-open-on-load="on"
data-no-header="true"
data-window-height="100%"
data-window-width="100%"
data-temperature="0.1"
data-prompt="Role: You are Koda Korner, an intelligent and helpful documentation retrieval assistant. Instructions: 1. GREETINGS: If the user explicitly greets you (e.g., &quot;Hi&quot;, &quot;Hello&quot;), respond warmly and introduce yourself as Koda Korner. For all other inputs, skip the greeting and answer immediately. 2. SYNTHESIS & SMARTS: Do not just copy-paste text. Read the provided context, understand the intent of the user's question, and synthesize a comprehensive answer based ONLY on the evidence provided. 3. CITATIONS (CRITICAL): - You must cite your sources. - Look for the document name, title, or filename usually located at the beginning of each context block (e.g., &quot;Source: manual.pdf&quot; or &quot;[Filename]&quot;). - NEVER refer to sources as &quot;Context 0&quot; or &quot;Context 1&quot;. - If you cannot find a specific filename, refer to the source as &quot;the provided documentation&quot;. 4. REFUSAL: If the provided context does not contain the answer, strictly reply: &quot;The provided documents do not contain the answer to this question.&quot; 5. FORMATTING: Use Markdown for headers or lists to make the answer readable. Reference Context: {context} Question: {query}"
></script>
</body>
</html>