webcompile/src/routes/contact/+page.svelte

100 lines
2.1 KiB
Svelte
Raw Normal View History

2022-11-10 00:12:34 +05:30
<script lang="ts">
import { Note, Captcha, Meta, TextArea } from "$lib/Form";
2022-12-31 17:44:53 +05:30
import type { ActionData, PageServerData } from "./$types";
2022-11-10 00:12:34 +05:30
export let form: ActionData;
2022-12-31 17:44:53 +05:30
export let data: PageServerData;
2022-11-10 00:12:34 +05:30
</script>
<svelte:head>
<title>Contact us | Project Segfault</title>
2022-11-10 00:12:34 +05:30
</svelte:head>
2022-11-29 21:12:15 +05:30
<h1>Contact us</h1>
2022-11-10 00:12:34 +05:30
<div class="contact-form">
2022-12-27 20:58:47 +05:30
<h2>Contact form</h2>
<form
method="POST"
action="?/form"
id="contact-form"
class="flex flex-col gap-4 w-fit"
>
<Note
content="Your IP will be logged for anti-abuse measures."
icon="i-ic:outline-lock text-xl"
/>
<Meta
inputType="email"
2023-01-07 22:59:58 +05:30
inputName="email"
inputPlaceholder="Your email"
selectType="commentType"
2022-12-27 20:58:47 +05:30
>
<option
value=""
selected
disabled>Select a type of comment</option
2022-12-27 20:58:47 +05:30
>
<option value="Feedback">Feedback</option>
<option value="Suggestion">Suggestion</option>
<option value="Question">Question</option>
<option value="Bug">Bug</option>
</Meta>
<TextArea
id="comment"
name="message"
placeholder="Your message"
/>
2022-12-31 17:44:53 +05:30
<Captcha sitekey={data.hcaptchaSitekey}>
{#if form?.success}
{form.message}
{/if}
{#if form?.error}
{form.message}
{/if}
</Captcha>
</form>
2022-11-10 00:12:34 +05:30
</div>
<noscript>
2022-12-27 20:58:47 +05:30
<Note
content="The contact form does not work without JavaScript enabled."
icon="i-ic:outline-info text-xl"
2022-12-27 20:58:47 +05:30
/>
2022-11-10 00:12:34 +05:30
<style>
.contact-form {
display: none;
}
</style>
</noscript>
2022-12-27 20:58:47 +05:30
<h2>Matrix</h2>
<span
>We have a Matrix space for general discussion, support and announcements
about Project Segfault over at <a
href="https://matrix.to/#/#project-segfault:projectsegfau.lt/"
>this link</a
>.</span
>
2022-11-10 00:12:34 +05:30
<h2>Our Email</h2>
<div class="flex flex-col gap-4">
<a href="mailto:contact@projectsegfau.lt">contact@projectsegfau.lt</a>
2022-11-10 00:12:34 +05:30
<span class="italic">
Please be aware that Microsoft and other email providers often block non-popular emails, if you do
contact us through there, make sure to check your spam and mark it as
not-spam!
</span>
</div>
2022-11-10 00:12:34 +05:30
<h2>People</h2>
<span>
2022-12-27 20:58:47 +05:30
You can find ways to contact individual team members <a href="/team"
>on our team page</a
>.
2022-11-10 00:12:34 +05:30
</span>