Add initial HTML template for Local AI Portal
This commit is contained in:
@@ -0,0 +1,75 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
|
||||
<meta http-equiv="Pragma" content="no-cache">
|
||||
<meta http-equiv="Expires" content="0">
|
||||
<title>Local AI Portal</title>
|
||||
<style>
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
body {
|
||||
font-family: system-ui, sans-serif;
|
||||
background: #0f0f0f;
|
||||
color: #e0e0e0;
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.card {
|
||||
background: #1a1a1a;
|
||||
border: 1px solid #2a2a2a;
|
||||
border-radius: 16px;
|
||||
padding: 2.5rem;
|
||||
width: 420px;
|
||||
text-align: center;
|
||||
}
|
||||
h1 { font-size: 1.4rem; font-weight: 500; margin-bottom: 0.4rem; }
|
||||
.status { font-size: 0.85rem; color: #888; margin-bottom: 2rem; }
|
||||
.buttons { display: flex; gap: 1rem; }
|
||||
.btn {
|
||||
flex: 1;
|
||||
padding: 1rem;
|
||||
border-radius: 12px;
|
||||
border: 1px solid #333;
|
||||
background: #222;
|
||||
color: #e0e0e0;
|
||||
font-size: 1rem;
|
||||
cursor: pointer;
|
||||
text-decoration: none;
|
||||
display: block;
|
||||
transition: background 0.15s;
|
||||
}
|
||||
.btn:hover { background: #2a2a2a; }
|
||||
.btn.active { border-color: #4a9eff; background: #1a2a3a; color: #4a9eff; }
|
||||
.btn.active-green { border-color: #4aff8a; background: #1a3a2a; color: #4aff8a; }
|
||||
.btn span { display: block; font-size: 0.75rem; color: #666; margin-top: 0.3rem; }
|
||||
.btn.active span, .btn.active-green span { color: inherit; opacity: 0.7; }
|
||||
.message { margin-top: 1.5rem; font-size: 0.8rem; color: #555; }
|
||||
{% if swapping %}
|
||||
.btn { pointer-events: none; opacity: 0.5; }
|
||||
{% endif %}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="card">
|
||||
<h1>Local AI</h1>
|
||||
<p class="status">{{ message }}</p>
|
||||
<div class="buttons">
|
||||
<a href="/switch/chat"
|
||||
class="btn {% if active == 'chat' %}active{% endif %}">
|
||||
💬 Chat
|
||||
<span>{% if active == 'chat' %}active{% else %}Open WebUI + Ollama{% endif %}</span>
|
||||
</a>
|
||||
<a href="/switch/images"
|
||||
class="btn {% if active == 'images' %}active-green{% endif %}">
|
||||
🎨 Images
|
||||
<span>{% if active == 'images' %}active{% else %}InvokeAI{% endif %}</span>
|
||||
</a>
|
||||
</div>
|
||||
<p class="message">{{ message }}</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user