0% found this document useful (0 votes)
2 views6 pages

HTML

The document outlines the structure and design of a web application called CheckIn AI, which serves as an intelligent assistant. It includes a sidebar for chat history, a main content area for chat interactions, and a user input section for sending messages. The application is styled using Tailwind CSS and includes features such as message display, user account management, and a model selector for different AI versions.

Uploaded by

manvendraaa20
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views6 pages

HTML

The document outlines the structure and design of a web application called CheckIn AI, which serves as an intelligent assistant. It includes a sidebar for chat history, a main content area for chat interactions, and a user input section for sending messages. The application is styled using Tailwind CSS and includes features such as message display, user account management, and a model selector for different AI versions.

Uploaded by

manvendraaa20
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 6

<!

DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CheckIn AI - Your Intelligent Assistant</title>
<script src="https://cdn.tailwindcss.com"></script>
<link href="https://fonts.googleapis.com/css2?
family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<style>
:root {
--checkin-green: #10a37f;
--checkin-dark: #343541;
--checkin-light: #444654;
}

body {
font-family: 'Inter', sans-serif;
background-color: #ffffff;
color: #000000;
}

.sidebar {
background-color: #202123;
}

.chat-container {
height: calc(100vh - 140px);
}

.message-user {
background-color: #ffffff;
}

.message-assistant {
background-color: #f7f7f8;
}

.typing-indicator span {
display: inline-block;
width: 8px;
height: 8px;
background-color: var(--checkin-green);
border-radius: 50%;
margin: 0 2px;
animation: typingAnimation 1.2s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) {
animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
animation-delay: 0.4s;
}

@keyframes typingAnimation {
0%, 60%, 100% { transform: translateY(0); }
30% { transform: translateY(-5px); }
}

.model-selector:after {
content: "?";
position: absolute;
top: 50%;
right: 10px;
transform: translateY(-50%);
color: #666;
pointer-events: none;
}

/* Markdown style formatting */


.markdown p {
margin-bottom: 1em;
}

.markdown pre {
background-color: #f6f8fa;
border-radius: 6px;
padding: 16px;
margin: 1em 0;
overflow-x: auto;
}

.markdown code {
background-color: rgba(175,184,193,0.2);
border-radius: 6px;
padding: 0.2em 0.4em;
font-family: ui-monospace,SFMono-Regular,SF
Mono,Menlo,Consolas,Liberation Mono,monospace;
font-size: 85%;
}

.markdown ol, .markdown ul {


margin-bottom: 1em;
padding-left: 2em;
}

.markdown ol {
list-style-type: decimal;
}

.markdown ul {
list-style-type: disc;
}

.markdown h1, .markdown h2, .markdown h3 {


font-weight: 600;
margin-top: 1.5em;
margin-bottom: 0.5em;
}

.markdown h1 {
font-size: 1.5em;
border-bottom: 1px solid #eaecef;
padding-bottom: 0.3em;
}
.markdown h2 {
font-size: 1.25em;
border-bottom: 1px solid #eaecef;
padding-bottom: 0.3em;
}

.markdown h3 {
font-size: 1.1em;
}

.markdown blockquote {
border-left: 4px solid var(--checkin-green);
padding-left: 1em;
margin: 1em 0;
color: #666;
}

.markdown table {
border-collapse: collapse;
width: 100%;
margin: 1em 0;
}

.markdown th, .markdown td {


border: 1px solid #ddd;
padding: 8px;
}

.markdown th {
background-color: #f2f2f2;
}
</style>
</head>
<body class="h-screen flex">
<!-- Sidebar -->
<div class="sidebar w-64 h-full text-white fixed hidden md:flex flex-col">
<div class="p-4">
<button id="new-chat" class="w-full border border-gray-600 rounded-md
py-2 px-3 flex items-center hover:bg-gray-700 transition-colors">
<svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4 mr-2"
fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-
width="2" d="M12 4v16m8-8H4" />
</svg>
New chat
</button>
</div>

<div class="flex-1 overflow-y-auto mt-2">


<div class="px-3 py-1">
<div class="text-xs text-gray-400 uppercase font-medium mb-2 px-
2">Today</div>
<div class="space-y-1">
<div class="chat-history-item px-2 py-2 rounded-md hover:bg-
gray-700">
<div class="text-sm truncate">Explain quantum
computing</div>
</div>
<div class="chat-history-item px-2 py-2 rounded-md hover:bg-
gray-700 bg-gray-700">
<div class="text-sm truncate">Write a Python script for web
scraping</div>
</div>
</div>

<div class="text-xs text-gray-400 uppercase font-medium my-2 px-


2">Previous 7 Days</div>
<div class="space-y-1">
<div class="chat-history-item px-2 py-2 rounded-md hover:bg-
gray-700">
<div class="text-sm truncate">JavaScript design
patterns</div>
</div>
<div class="chat-history-item px-2 py-2 rounded-md hover:bg-
gray-700">
<div class="text-sm truncate">Best practices for
React</div>
</div>
</div>
</div>
</div>

<div class="p-4 border-t border-gray-700">


<div class="flex items-center gap-3 p-2 rounded-md hover:bg-gray-700
cursor-pointer">
<div class="w-6 h-6 rounded-full bg-green-600 flex items-center
justify-center text-white text-xs font-bold">
MS
</div>
<div class="text-sm">My Account</div>
</div>
</div>
</div>

<!-- Main Content -->


<div class="flex-1 flex flex-col md:ml-64">
<!-- Header (mobile only) -->
<div class="md:hidden p-4 border-b border-gray-200 flex items-center
justify-between bg-white">
<button id="sidebar-toggle" class="text-gray-600">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none"
viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-
width="2" d="M4 6h16M4 12h16M4 18h16" />
</svg>
</button>
<div class="text-lg font-semibold">CheckIn AI</div>
<div class="w-6"></div> <!-- Spacer -->
</div>

<!-- Chat Container -->


<div class="chat-container overflow-y-auto">
<!-- Welcome message -->
<div class="welcome-message max-w-2xl mx-auto px-4 pt-12 pb-6">
<h1 class="text-3xl font-bold text-center mb-4">CheckIn AI</h1>
<div class="grid grid-cols-1 md:grid-cols-2 gap-4 mt-8">
<div class="p-4 rounded-lg hover:bg-gray-50 border border-gray-
200 cursor-pointer">
<h3 class="font-medium">Explain quantum computing</h3>
<p class="text-gray-500 text-sm mt-1">Simple terms for a
high school student</p>
</div>
<div class="p-4 rounded-lg hover:bg-gray-50 border border-gray-
200 cursor-pointer">
<h3 class="font-medium">Write a Python script</h3>
<p class="text-gray-500 text-sm mt-1">To scrape a website
using BeautifulSoup</p>
</div>
<div class="p-4 rounded-lg hover:bg-gray-50 border border-gray-
200 cursor-pointer">
<h3 class="font-medium">Compare two programming
languages</h3>
<p class="text-gray-500 text-sm mt-1">JavaScript vs Python
for web development</p>
</div>
<div class="p-4 rounded-lg hover:bg-gray-50 border border-gray-
200 cursor-pointer">
<h3 class="font-medium">Generate creative story</h3>
<p class="text-gray-500 text-sm mt-1">Sci-fi adventure set
in the 22nd century</p>
</div>
</div>
</div>

<!-- Chat messages -->


<div id="chat-messages" class="max-w-2xl mx-auto px-4 space-y-6 pb-6">
<!-- Messages will be added here dynamically -->
</div>
</div>

<!-- Input Area -->


<div class="p-4 bg-white border-t border-gray-200">
<div class="max-w-2xl mx-auto">
<div class="flex justify-between items-center mb-3">
<div class="relative model-selector w-48">
<select class="appearance-none bg-white border border-gray-
300 rounded-md py-1 px-3 pr-8 text-sm focus:outline-none focus:ring-1 focus:ring-
green-500 focus:border-green-500">
<option value="gpt-4">GPT-4</option>
<option value="gpt-3.5">GPT-3.5</option>
</select>
</div>
<button class="text-xs px-3 py-1 bg-gray-100 rounded-full text-
gray-600 hover:bg-gray-200">
<span class="md:hidden">Log in</span>
<span class="hidden md:inline">Try CheckIn AI Pro for
unlimited access</span>
</button>
</div>
<div class="relative">
<textarea id="message-input" rows="1" class="w-full p-4 pr-12
border border-gray-300 rounded-lg focus:outline-none focus:ring-1 focus:ring-green-
500 focus:border-green-500 resize-none" placeholder="Message CheckIn
AI..."></textarea>
<button id="send-button" class="absolute right-3 bottom-3 p-1
rounded-md text-white bg-green-500 hover:bg-green-600 focus:outline-none
focus:ring-2 focus:ring-green-400">
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5"
viewBox="0 0 20 20" fill="currentColor">
<path fill-rule="evenodd" d="M10.293 3.293a1 1 0
011.414 0l6 6a1 1 0 010 1.414l-6 6a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-
2h11.586l-4.293-4.293a1 1 0 010-1.414z" clip-rule="evenodd" />
</svg>
</button>
</div>
<div class="text-xs text-gray-500 mt-2">
CheckIn AI can make mistakes. Consider checking important
information.
</div>
</div>
</div>
</div>

<script>
// DOM Elements
const sidebarToggle = document.getElementById('sidebar-toggle');
const sidebar = document.querySelector('.sidebar');
const newChatBtn = document.getElementById('new-chat');
const messageInput = document.getElementById('message-input');
const sendButton = document.getElementById('send-button');
const chatMessages = document.getElementById('chat-messages');

// Sample responses (in a real app, these would come from an API)
const sampleResponses = {
"hello": "Hello! I'm CheckIn AI, your intelligent assistant. How can I
help you today?",
"explain quantum computing": "Quantum computing is a type of
computation that harnesses the collective properties of quantum states, such as
superposition, interference, and entanglement, to perform calculations. Unlike
classical computers that use bits (0s or 1s), quantum computers use quantum bits or
qubits which can exist in multiple states at once.<br><br>Key concepts:<br>1.
**Superposition**: Qubits can be in a state of 0, 1, or any quantum superposition
of these states<br>2. **Entanglement**: Qubits can be correlated with each other
such that the state of one qubit depends on the state of another<br>3. **Quantum
interference**: The ability to manipulate the probability amplitudes of quantum
states to reinforce correct computations and cancel out wrong ones",
"write a python script for web scraping": "Here's a basic Python script
using BeautifulSoup for web scraping:<br><br>

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy