anycoder-2bce939e / index.html
akhaliq's picture
akhaliq HF Staff
Upload index.html with huggingface_hub
025e63f verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Apple Style AI Chatbot</title>
<link rel="stylesheet" href="styles.css">
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
</head>
<body>
<div class="app-container">
<!-- Header -->
<header class="header">
<div class="header-content">
<div class="header-left">
<svg class="logo" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M12 2L2 7L12 12L22 7L12 2Z" stroke="currentColor" stroke-width="2" stroke-linecap="round"
stroke-linejoin="round" />
<path d="M2 17L12 22L22 17" stroke="currentColor" stroke-width="2" stroke-linecap="round"
stroke-linejoin="round" />
<path d="M2 12L12 17L22 12" stroke="currentColor" stroke-width="2" stroke-linecap="round"
stroke-linejoin="round" />
</svg>
<h1>AI Assistant</h1>
</div>
<div class="header-right">
<span id="model-status" class="status-indicator offline">Offline</span>
<a href="https://huggingface.co/spaces/akhaliq/anycoder" target="_blank" class="built-with">Built with
anycoder</a>
</div>
</div>
</header>
<!-- Loading Screen -->
<div id="loading-screen" class="loading-screen">
<div class="loading-content">
<div class="spinner"></div>
<h2>Loading AI Model</h2>
<p id="loading-text">Initializing...</p>
<div class="progress-bar">
<div id="progress-fill" class="progress-fill"></div>
</div>
<p id="progress-text" class="progress-text">0%</p>
</div>
</div>
<!-- Main Chat Area -->
<main id="chat-container" class="chat-container hidden">
<div class="chat-messages" id="chat-messages">
<div class="welcome-message">
<div class="message-content">
<h2>Welcome to AI Assistant</h2>
<p>I'm here to help you with questions, creative writing, coding, and much more. How can I assist you today?
</p>
</div>
</div>
</div>
</main>
<!-- Input Area -->
<footer id="input-area" class="input-area hidden">
<div class="input-container">
<div class="input-wrapper">
<textarea
id="message-input"
class="message-input"
placeholder="Type your message..."
rows="1"
maxlength="2000"
></textarea>
<button id="send-button" class="send-button" disabled>
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M22 2L11 13M22 2L15 22L11 13L2 9L22 2Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
</button>
</div>
<div class="input-footer">
<span id="char-count">0 / 2000</span>
<span class="model-info">Gemma-3-270m</span>
</div>
</div>
</footer>
</div>
<script type="module" src="app.js"></script>
</body>
</html>