File size: 3,397 Bytes
ab9f226
dd1b723
 
 
5b021fb
 
 
 
 
dd1b723
 
 
5b021fb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
dd1b723
5b021fb
dd1b723
 
 
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
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Apple Style Chatbot - Gemma AI</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 class="header">
      <div class="header-content">
        <div class="app-info">
          <div class="app-icon">
            <svg width="32" height="32" viewBox="0 0 32 32" fill="none">
              <circle cx="16" cy="16" r="16" fill="url(#gradient)" />
              <path d="M16 8C16 8 12 10 12 14C12 18 14 20 16 22C18 20 20 18 20 14C20 10 16 8 16 8Z" fill="white" />
              <defs>
                <linearGradient id="gradient" x1="0" y1="0" x2="32" y2="32">
                  <stop offset="0%" stop-color="#007AFF" />
                  <stop offset="100%" stop-color="#5856D6" />
                </linearGradient>
              </defs>
            </svg>
          </div>
          <div>
            <h1>Gemma AI Assistant</h1>
            <p class="subtitle">Powered by Google Gemma 3</p>
          </div>
        </div>
        <a href="https://huggingface.co/spaces/akhaliq/anycoder" target="_blank" class="built-with">
          Built with anycoder
        </a>
      </div>
    </header>

    <main class="chat-container">
      <div id="chatMessages" class="messages-container">
        <div class="welcome-message">
          <div class="message-bubble assistant">
            <div class="message-content">
              <p>πŸ‘‹ Hello! I'm your AI assistant powered by Google's Gemma 3 model. I'm here to help with questions,
                creative writing, coding, and much more.</p>
              <p>Just type your message below and I'll respond right away!</p>
            </div>
          </div>
        </div>
      </div>

      <div id="typingIndicator" class="typing-indicator" style="display: none;">
        <div class="message-bubble assistant">
          <div class="typing-dots">
            <span></span>
            <span></span>
            <span></span>
          </div>
        </div>
      </div>
    </main>

    <footer class="input-container">
      <div class="input-wrapper">
        <div class="input-group">
          <textarea
                        id="messageInput"
                        class="message-input"
                        placeholder="Type your message..."
                        rows="1"
                        disabled
                    ></textarea>
          <button id="sendButton" class="send-button" disabled>
                        <svg width="20" height="20" viewBox="0 0 24 24" fill="none">
                            <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 id="statusBar" class="status-bar">
          <div id="statusText" class="status-text">Initializing model...</div>
          <div id="progressBar" class="progress-bar">
            <div id="progressFill" class="progress-fill"></div>
          </div>
        </div>
      </div>
    </footer>
  </div>

  <script type="module" src="app.js"></script>
</body>

</html>