Skip to content

Commit

Permalink
style: Update form labels and input elements in guestbook template
Browse files Browse the repository at this point in the history
  • Loading branch information
blackfyre committed Mar 7, 2024
1 parent d2ed988 commit 2b82a0f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
15 changes: 7 additions & 8 deletions assets/templ/pages/guestbook.templ
Original file line number Diff line number Diff line change
Expand Up @@ -74,41 +74,40 @@ templ GuestbookEntryForm() {
hx-disabled-elt="input,button,select"
>
<div class="field">
<label class="label">Name</label>
<label class="label" for="sender_name">Name</label>
<input
type="text"
class="input"
placeholder="Your name"
name="sender_name"
required
autocomplete="name"
id="sender_name"
/>
</div>
<div class="field">
<label class="label">Email</label>
<label class="label" for="sender_email">Email</label>
<input
type="email"
class="input"
placeholder="Your email"
name="sender_email"
required
autocomplete="email"
id="sender_email"
/>
</div>
<div class="field">
<label class="label">Location</label>
<label class="label" for="location">Location</label>
<input
type="text"
class="input"
placeholder="Your location"
name="location"
required
autocomplete="location"
/>
</div>
<div class="field">
<trix-editor input="message" placeholder="Your message"></trix-editor>
<input type="hidden" id="message" name="message"/>
<label class="label" for="message">Entry</label>
<textarea class="textarea" id="message" name="message" placeholder="Your entry"></textarea>
</div>
<div class="field">
<label aria-hidden="true" class="hpt" for="name"></label>
Expand Down
1 change: 1 addition & 0 deletions esbuild.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ let result = await esbuild.build({
"is-one-third-tablet",
"is-one-quarter-desktop",
"is-full-mobile",
"textarea",
],
content: [
"assets/templ/**/*.templ",
Expand Down
12 changes: 6 additions & 6 deletions resources/css/_layout.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.customBody {
display: flex;
flex-direction: column;
justify-content: space-between;
height: 100%;
}
// .customBody {
// display: flex;
// flex-direction: column;
// justify-content: space-between;
// height: 100%;
// }

0 comments on commit 2b82a0f

Please sign in to comment.