fix: styling

This commit is contained in:
Mike 2024-12-28 17:47:39 -05:00
parent 8c0a4a773e
commit cd43c949aa
3 changed files with 4 additions and 3 deletions

View file

@ -9,7 +9,7 @@ async function getAllMessages() {
}
async function insertMessage(msg) {
db.run("INSERT INTO MESSAGES (message, username, date) VALUES (?, ?, ?)", [
db.run("INSERT INTO MESSAGES (message, username, date) VALUES ($1, $2, $3)", [
msg.message,
msg.username,
msg.date,

View file

@ -94,6 +94,7 @@
border-radius: 5px;
border: 1px solid #525252;
background-color: #faf7f0;
padding: 20px;
}
.form-item > .btn {

View file

@ -6,11 +6,11 @@
<h1 class="headline">Add a message :)</h1>
<div class="form-item">
<label for="uername">Name</label>
<input type="text" id="username" name="username">
<input type="text" id="username" name="username" placeholder="Enter your name...">
</div>
<div class="form-item">
<label for="message">Message</label>
<textarea id="message" name="message" rows="5"></textarea>
<textarea id="message" name="message" rows="5" placeholder="what's on your mind?"></textarea>
</div>
<div class="form-item">
<button class="btn primary-btn" type="submit">Post</button>