forked from ProjectSegfault/website
Add form (fixme)
Signed-off-by: Odyssey346 <odyssey346@disroot.org>
This commit is contained in:
parent
dae0ad26c7
commit
6a9a38cf6c
@ -22,6 +22,7 @@
|
||||
"prettier-plugin-svelte": "^2.7.0",
|
||||
"svelte": "^3.49.0",
|
||||
"svelte-check": "^2.8.0",
|
||||
"svelte-hcaptcha": "^0.1.1",
|
||||
"svelte-preprocess": "^4.10.7",
|
||||
"svelte-seo": "^1.4.1",
|
||||
"tslib": "^2.4.0",
|
||||
|
@ -3,10 +3,36 @@ title: Contact Us
|
||||
description: Do you want to contact us?
|
||||
---
|
||||
|
||||
|
||||
<script lang="ts">
|
||||
import IconLock from '~icons/fa6-solid/lock';
|
||||
import HCaptcha from 'svelte-hcaptcha';
|
||||
</script>
|
||||
|
||||
|
||||
# { title }
|
||||
|
||||
{ description }
|
||||
|
||||
## Contact Form
|
||||
<IconLock /> <b>Your IP will be logged for anti-abuse measures.</b>
|
||||
<form action="https://segfautilities.projectsegfau.lt/api/form" method="POST">
|
||||
<input type="text" name="email" class="FormTextbox" placeholder="Email" required="required"/>
|
||||
<select id="commentType" name="commentType" required="required" class="button">
|
||||
<option value="" selected="selected" disabled="disabled">Select a type of comment</option>
|
||||
<option value="Feedback">Feedback</option>
|
||||
<option value="Suggestion">Suggestion</option>
|
||||
<option value="Question">Question</option>
|
||||
<option value="Bug">Bug</option>
|
||||
</select>
|
||||
<br />
|
||||
<textarea id="comment" name="message" rows="4" cols="50" required="required" class="FormTextbox">Your message.</textarea>
|
||||
<HCaptcha
|
||||
sitekey=67e84266-980c-4050-8a39-142a91928fe8
|
||||
/>
|
||||
<input type="submit" value="Submit" class="button" />
|
||||
</form>
|
||||
|
||||
## Our email
|
||||
|
||||
[contact@projectsegfau.lt](mailto:contact@projectsegfau.lt)
|
||||
@ -16,3 +42,43 @@ _Please be aware that Microsoft often blocks non-popular emails, if you do conta
|
||||
## People
|
||||
|
||||
You can find ways to contact individual members [on our Members page](/members).
|
||||
|
||||
<style>
|
||||
.FormTextbox {
|
||||
background-color: var(--tertiary);
|
||||
color: var(--text);
|
||||
border-radius: 10px;
|
||||
border: none;
|
||||
padding: 0.5rem;
|
||||
margin-bottom: 5px;
|
||||
font-family: 'Comfortaa', sans-serif;
|
||||
}
|
||||
.FormTextbox:focus {
|
||||
outline: none !important;
|
||||
}
|
||||
|
||||
.button {
|
||||
background-color: var(--tertiary);
|
||||
border: none;
|
||||
border-radius: 10px;
|
||||
padding: 0.5rem;
|
||||
cursor: pointer;
|
||||
color: var(--text);
|
||||
font-family: var(--font-primary);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.button:hover {
|
||||
background-color: var(--accent-tertiary);
|
||||
text-decoration: none;
|
||||
transition: all 0.5s;
|
||||
color: var(--secondary);
|
||||
}
|
||||
|
||||
.button:active {
|
||||
background-color: var(--accent-primary);
|
||||
text-decoration: none;
|
||||
transition: all 0.5s;
|
||||
color: var(--secondary);
|
||||
}
|
||||
</style>
|
Loading…
Reference in New Issue
Block a user