Initial PWA assistant proof of concept
This commit is contained in:
55
static/index.html
Normal file
55
static/index.html
Normal file
@@ -0,0 +1,55 @@
|
||||
<!doctype html>
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
|
||||
<meta name="theme-color" content="#111827">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-title" content="Assistant">
|
||||
<title>OpenSquared Assistant</title>
|
||||
<link rel="manifest" href="/manifest.webmanifest">
|
||||
<link rel="icon" href="/icons/icon.svg" type="image/svg+xml">
|
||||
<link rel="stylesheet" href="/styles.css">
|
||||
</head>
|
||||
<body>
|
||||
<main class="app-shell">
|
||||
<header class="topbar">
|
||||
<div>
|
||||
<p class="eyebrow">OpenSquared</p>
|
||||
<h1>Assistant vocal</h1>
|
||||
</div>
|
||||
<button class="icon-button" id="resetButton" type="button" aria-label="Nouvelle conversation">
|
||||
<span aria-hidden="true">↻</span>
|
||||
</button>
|
||||
</header>
|
||||
|
||||
<section class="status-band" id="statusBand">
|
||||
<span class="status-dot" id="statusDot"></span>
|
||||
<span id="statusText">Pret a demarrer</span>
|
||||
</section>
|
||||
|
||||
<section class="conversation" id="conversation" aria-live="polite">
|
||||
<article class="bubble assistant">
|
||||
Bonjour Laurent. Appuie sur Demarrer, puis parle-moi naturellement.
|
||||
</article>
|
||||
</section>
|
||||
|
||||
<section class="composer">
|
||||
<textarea id="textInput" rows="2" placeholder="Ecrire ou utiliser le micro"></textarea>
|
||||
<div class="controls">
|
||||
<button class="secondary-button" id="sendButton" type="button">Envoyer</button>
|
||||
<button class="primary-button" id="voiceButton" type="button">
|
||||
<span class="mic-icon" aria-hidden="true"></span>
|
||||
<span id="voiceLabel">Demarrer</span>
|
||||
</button>
|
||||
</div>
|
||||
<label class="toggle-row">
|
||||
<input id="audioToggle" type="checkbox" checked>
|
||||
<span>Lire les reponses a voix haute</span>
|
||||
</label>
|
||||
</section>
|
||||
</main>
|
||||
|
||||
<script src="/app.js" type="module"></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user