leilukin-site/src/pages/guestbook.njk

108 lines
2.8 KiB
Plaintext
Raw Normal View History

---
layout: main/content
title: Guestbook
eleventyNavigation:
key: Guestbook
order: 9
2024-05-22 05:43:39 +00:00
eleventyComputed:
desc: Leave a message for {{ sitemeta.siteAuthor.name }}.
---
<p>Feel free to say hi and connect with me! You may share your own website here.</p>
2024-05-22 05:43:39 +00:00
<p>This guestbook is not the place to ask for help with my video game mods. Ask for mod support or report issues with my mods on Deadly Stream, Nexus Mods or <a href="mailto:{{sitemeta.siteAuthor.email}}">send me an email</a>.</p>
<p>This guestbook utilises <a href="https://firebase.google.com/docs/database/">Firebase Realtime Database</a>, thus JavaScript is required for this guestbook to fully function.</p>
<p><a href="https://web.archive.org/web/20240510121252/https%3A%2F%2Fleilukin.123guestbook.com%2F">Archive of my previous guestbook hosted on 123Guestbook</a></p>
2024-05-19 06:24:07 +00:00
<h2>Leave A Message</h2>
<form class="gb__form">
2024-05-19 14:21:29 +00:00
<div class="gb__form--group">
2024-05-19 06:24:07 +00:00
<label for="name-input">Name:</label>
<input type="text" name="name" id="name-input" required>
</div>
2024-05-19 14:21:29 +00:00
<div class="gb__form--group">
2024-05-22 05:43:39 +00:00
<label for="email-input">Email (will not be published):</label>
2024-05-19 06:24:07 +00:00
<input type="email" name="email" id="email-input" required>
</div>
2024-05-19 14:21:29 +00:00
<div class="gb__form--group">
2024-05-19 06:24:07 +00:00
<label for="website-input">Website (optional):</label>
<input type="text" name="website" id="website-input">
</div>
2024-05-19 14:21:29 +00:00
<div class="gb__form--group">
2024-05-19 06:24:07 +00:00
<label for="message-input">Message:</label>
<textarea type="text" rows="4" name="message" id="message-input" required></textarea>
</div>
<button type="submit" class="gb__form--submit">Publish</button>
</form>
<section class="gb__messages">
<h2>Messages</h2>
<div class="gb__message--list"></div>
</section>
<style>
2024-05-19 06:24:07 +00:00
.gb__form,
2024-05-19 14:21:29 +00:00
.gb__form--group,
.gb__message--list,
.gb__message {
display: grid;
}
2024-05-19 06:24:07 +00:00
.gb__form {
gap: 0.6em;
margin-bottom: 2em;
2024-05-14 17:40:53 +00:00
}
2024-05-19 14:21:29 +00:00
.gb__form--group {
2024-05-19 06:24:07 +00:00
gap: 0.2em;
}
2024-05-24 12:35:02 +00:00
.gb__form--submit {
2024-05-19 06:24:07 +00:00
border: none;
background: var(--clr-link-btn-bg);
color: var(--clr-link-btn-txt);
padding: 0.3em 0.6em;
}
2024-05-14 17:40:53 +00:00
2024-05-19 14:21:29 +00:00
.gb__form--group input,
.gb__form--group textarea,
2024-05-24 12:35:02 +00:00
.gb__form--submit {
2024-05-19 06:24:07 +00:00
border-radius: 0.2em;
2024-05-14 17:40:53 +00:00
}
2024-05-19 14:21:29 +00:00
.gb__form--group textarea {
2024-05-19 06:24:07 +00:00
resize: vertical;
2024-05-14 17:40:53 +00:00
}
2024-05-19 14:21:29 +00:00
.gb__form--group input:focus,
.gb__form--group textarea:focus {
2024-05-19 06:24:07 +00:00
outline: 0.15em solid var(--clr-link);
2024-05-14 17:40:53 +00:00
}
.gb__message--list {
gap: 1em;
}
.gb__message {
gap: 0.5em;
padding: 1em 1.4em 1.4em;
background-color: var(--clr-quote-bg);
}
.gb__message--name {
font-size: 1.4rem;
}
2024-05-24 12:35:02 +00:00
.gb__message--time{
font-size: 1rem;
}
</style>
2024-05-19 05:27:01 +00:00
<script type="module" src="/assets/js/guestbook.js" defer></script>