Basic contact page

This commit is contained in:
2025-01-08 22:12:10 +00:00
parent 856528fbc4
commit 66c8b16018
6 changed files with 102 additions and 9 deletions

View File

@@ -1,16 +1,20 @@
{% include 'header.html' %}
<main>
<main id="contact-main">
<h2>Contact Me</h2>
<p>Got a question or want to talk about something on this site? Drop me a message below:</p>
<form action="#" method="post">
<label for="name">Name:</label>
<input type="text" name="name">
<input type="text" name="name" required>
<label for="email">Email Address:</label>
<input type="email" name="email">
<input type="email" name="email" required>
<label for="message">Message:</label>
<textarea name="message"></textarea>
<textarea name="message" rows="10"></textarea>
<div class="cf-turnstile" data-sitekey="0x4AAAAAAA45FeR26JuvqKy7"></div>
<input type="submit" name="submit" value="Submit">
</form>
{% if user_message is not none %}
<p id="{{ 'contact-error' if error else 'contact-message' }}">{{ user_message }}</p>
{% endif %}
</main>
{% include 'footer.html' %}

View File

@@ -12,12 +12,14 @@
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<script src="/static/js/filter_projects.js"></script>
<script src="/static/js/update_copyright.js"></script>
<script src="https://challenges.cloudflare.com/turnstile/v0/api.js" async defer></script>
</head>
<body>
<header>
<nav id="top-nav">
<a href="/">About</a>
<a href="/projects/">Projects</a>
<a href="/contact/">Contact</a>
</nav>
<div id="logo-container">
<div id="logo">