Stash commit

This commit is contained in:
2024-11-07 14:19:09 +01:00
parent 4991467d32
commit 441e071074
10 changed files with 105 additions and 15 deletions

4
frontend/Trunk.toml Normal file
View File

@@ -0,0 +1,4 @@
[build]
minify = "on_release"
[clean]
cargo = true

View File

@@ -1,4 +1,4 @@
pub mod models;
pub static BASE: &'static str = env!("BASE");
pub static BASE: &'static str = "/api";

View File

@@ -45,7 +45,7 @@ impl Component for Chat {
</div>
<form class="chat">
<div>
<input type="textfield" required=true />
<textarea type="textfield" autofocus=true required=true />
</div>
<div>
<button onclick={

View File

@@ -8,16 +8,16 @@ use allpaca::log;
#[function_component]
fn App() -> Html {
html! {
<>
<div class="navbar">
<nav::Bar></nav::Bar>
</div>
<models::List></models::List>
<Chat></Chat>
<div>
<Fetcher></Fetcher>
</div>
</>
<center>
<div class="navbar">
<nav::Bar></nav::Bar>
</div>
<models::List></models::List>
<Chat></Chat>
<div>
<Fetcher></Fetcher>
</div>
</center>
}
}

View File

@@ -3,10 +3,20 @@ body {
color: lime;
}
.navbar, .model-list {
ul {
list-style: none;
}
.model-list > li {
margin: 1vh;
}
.chat textarea {
resize: none;
width: 69vw;
height: 3vh;
}
.chat {
align-content: center;
}