Compare commits

...

5 commits

2 changed files with 35 additions and 10 deletions

View file

@ -18,6 +18,10 @@ body {
margin: 0; margin: 0;
} }
*:focus-visible {
outline: 1px solid rgb(150, 150, 150);
}
a { a {
color: aquamarine; color: aquamarine;
} }

View file

@ -6,8 +6,8 @@
</div> </div>
<div id="message-box"> <div id="message-box">
<form id="message-form" @submit="sendMessage"> <form id="message-form" @submit="sendMessage">
<input v-model="messageInput" type="text" name="message-input" id="message-box-input"> <input v-model="messageInput" type="text" name="message-input" id="message-box-input" autocomplete="off">
<button type="submit"> <button id="submit-button" type="submit">
<Icon name="lucide:send" /> <Icon name="lucide:send" />
</button> </button>
</form> </form>
@ -98,27 +98,38 @@ onMounted(async () => {
<style scoped> <style scoped>
#message-area { #message-area {
padding-top: 3dvh; display: grid;
} grid-template-columns: 1fr;
grid-template-rows: 8fr 1fr;
#message-area {
display: flex;
flex-direction: column;
justify-content: space-between; justify-content: space-between;
padding-top: 3dvh;
padding-left: 1dvw; padding-left: 1dvw;
padding-right: 1dvw; padding-right: 1dvw;
overflow: hidden; overflow: hidden;
} }
#message-box { #message-box {
display: flex;
flex-direction: column;
justify-content: center;
align-content: center;
border: 1px solid rgb(70, 70, 70); border: 1px solid rgb(70, 70, 70);
padding-bottom: 1dvh; padding-bottom: 1dvh;
padding-top: 1dvh; padding-top: 1dvh;
margin-bottom: 1dvh; margin-bottom: 1dvh;
margin-top: 1dvh;
} }
#message-input { #message-form {
width: 100%; display: flex;
justify-content: center;
height: 60%;
}
#message-box-input {
width: 80%;
background-color: rgb(50, 50, 50);
border: none;
} }
#messages { #messages {
@ -128,4 +139,14 @@ onMounted(async () => {
gap: 1dvh; gap: 1dvh;
} }
#submit-button {
background-color: inherit;
border: none;
color: white;
}
#submit-button:hover {
background-color: rgb(40, 40, 40);
}
</style> </style>