feat: add contact page with name, email, and message fields

This commit is contained in:
2026-08-25 10:45:12 +00:00
parent f77720c10b
commit b7692551e1
+44
View File
@@ -0,0 +1,44 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Contact | My Personal Blog</title>
<link rel="stylesheet" href="css/style.css" />
</head>
<body>
<header class="site-header">
<nav class="site-nav" aria-label="Main navigation">
<a class="brand" href="index.html">My Blog</a>
<ul class="nav-links">
<li><a href="index.html">Home</a></li>
<li><a href="contact.html" aria-current="page">Contact</a></li>
</ul>
</nav>
</header>
<main>
<h1>Contact</h1>
<p>Use the form below to get in touch — submitting it opens your mail client with the details pre-filled.</p>
<form id="contact-form" class="contact-form">
<div class="form-field">
<label for="name">Name</label>
<input type="text" id="name" name="name" required autocomplete="name" />
</div>
<div class="form-field">
<label for="email">Email</label>
<input type="email" id="email" name="email" required autocomplete="email" />
</div>
<div class="form-field">
<label for="message">Message</label>
<textarea id="message" name="message" rows="6" required></textarea>
</div>
<button type="submit">Send message</button>
</form>
</main>
<footer class="site-footer">
<p>&copy; 2026 My Personal Blog</p>
</footer>
<script type="module" src="js/contact.js"></script>
</body>
</html>