Restructure GUI folder & modify styles.css
This commit is contained in:
32
gui/html/index.html
Normal file
32
gui/html/index.html
Normal file
@@ -0,0 +1,32 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Kuzco Chat</title>
|
||||
<link rel="stylesheet" href="../css/styles.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app">
|
||||
<header>
|
||||
<h1>Welcome to Kuzco Chat</h1>
|
||||
</header>
|
||||
<div id="modelSelectionContainer">
|
||||
<label for="modelSelect">Choose AI Model:</label>
|
||||
<select id="modelSelect">
|
||||
<option value="mistral">Mistral</option>
|
||||
<option value="llama2">Llama2</option>
|
||||
</select>
|
||||
</div>
|
||||
<main id="chatHistory" class="chat-history">
|
||||
</main>
|
||||
<footer>
|
||||
<form id="chatForm" class="chat-form">
|
||||
<input id="promptInput" type="text" placeholder="Enter your prompt" autofocus>
|
||||
<button id="sendButton">Send</button>
|
||||
<button id="stopButton" disabled>Stop</button>
|
||||
</form>
|
||||
</footer>
|
||||
</div>
|
||||
<script src="../js/renderer.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
20
gui/html/prompt.html
Normal file
20
gui/html/prompt.html
Normal file
@@ -0,0 +1,20 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Enter API Key</title>
|
||||
<link rel="stylesheet" href="../css/styles.css">
|
||||
</head>
|
||||
<body>
|
||||
<h1>Enter API Key</h1>
|
||||
<input type="text" id="apiKeyInput" placeholder="API Key">
|
||||
<button id="submitApiKey">Submit</button>
|
||||
<script>
|
||||
const { ipcRenderer } = require('electron');
|
||||
|
||||
document.getElementById('submitApiKey').addEventListener('click', () => {
|
||||
const apiKey = document.getElementById('apiKeyInput').value;
|
||||
ipcRenderer.send('submit-api-key', apiKey);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user