✨feature: Wire up contact and thank you pages, add showInNav meta functionality
This commit is contained in:
@@ -7,12 +7,13 @@
|
||||
<meta charset="UTF-8">
|
||||
<title>Contact</title>
|
||||
<link rel="stylesheet" href="/assets/style.css">
|
||||
<link rel="icon" href="/assets/favicon.ico" type="image/x-icon">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<header id="site_head">
|
||||
<h1 class="text-white text-40px hover:text-primary-200"><a href="/">Go SSG</a></h1>
|
||||
<h1><a href="/">Go SSG</a></h1>
|
||||
|
||||
<nav>
|
||||
<ul class="list-none">
|
||||
@@ -32,8 +33,40 @@
|
||||
|
||||
<main>
|
||||
<article>
|
||||
<h1>Contact</h1>
|
||||
|
||||
<h1 class="text-2xl font-bold mb-4">Contact Me</h1>
|
||||
|
||||
<form action="https://api.staticforms.xyz/submit" method="POST" class="space-y-4 max-w-xl">
|
||||
|
||||
<input type="hidden" name="accessKey" value="sf_5m86ek16hmele1jlkl62ghml" />
|
||||
|
||||
|
||||
<input type="hidden" name="redirectTo" value="/thanks/" />
|
||||
|
||||
<label>
|
||||
<span>Name</span>
|
||||
<input id="name" type="text" name="name" required class="w-full border p-2 rounded" />
|
||||
<span class="text-red-600 text-sm hidden" data-error="name"></span>
|
||||
</label>
|
||||
|
||||
<label>
|
||||
<span>Email</span>
|
||||
<input id="email" type="email" name="email" required class="w-full border p-2 rounded" />
|
||||
<span class="text-red-600 text-sm hidden" data-error="email"></span>
|
||||
</label>
|
||||
|
||||
<label>
|
||||
<span>Message</span>
|
||||
<textarea id="message" name="message" rows="5" required class="w-full border p-2 rounded"></textarea>
|
||||
<span class="text-red-600 text-sm hidden" data-error="message"></span>
|
||||
</label>
|
||||
|
||||
|
||||
|
||||
|
||||
<button type="submit" class="bg-blue-600 text-white px-4 py-2 rounded hover:bg-blue-700">
|
||||
Send Message
|
||||
</button>
|
||||
</form>
|
||||
</article>
|
||||
</main>
|
||||
|
||||
@@ -41,7 +74,6 @@
|
||||
<footer id="site_foot">
|
||||
<p class="p-0 py-4 m-0 leading-none">© 2025 Keith Solomon - Go SSG</p>
|
||||
</footer>
|
||||
|
||||
</body>
|
||||
<script src="/assets/contact.js" defer></script></body>
|
||||
</html>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user