You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
97 lines
1.9 KiB
97 lines
1.9 KiB
<script>
|
|
import Socials from "$lib/Socials.svelte";
|
|
|
|
import { variables } from "$lib/helpers/variables";
|
|
|
|
let email;
|
|
let message;
|
|
let notify;
|
|
|
|
function send() {
|
|
email = "";
|
|
message = "";
|
|
notify = "Email sent!";
|
|
}
|
|
</script>
|
|
|
|
<main class="flex flex-col gap-5">
|
|
<span class="p-5 flex justify-center">
|
|
<Socials />
|
|
</span>
|
|
|
|
<section
|
|
class="bg-gray-200 dark:bg-gray-800 p-10 rounded-xl shadow w-full flex flex-col gap-5"
|
|
>
|
|
<h3 class="text-xl font-bold">Quick compose email</h3>
|
|
|
|
<form
|
|
class="flex flex-col gap-5"
|
|
action="https://api.staticforms.xyz/submit"
|
|
method="post"
|
|
>
|
|
<input
|
|
type="hidden"
|
|
name="accessKey"
|
|
value="f237579b-85d1-414f-846c-409b8c8f57f0"
|
|
/>
|
|
<input type="text" name="honeypot" style="display: none;" />
|
|
<input type="hidden" name="redirectTo" value={variables.appUrl} />
|
|
|
|
<div class="flex flex-col">
|
|
<label for="email" value="E-Mail" class="text-lg font-bold"
|
|
>E-Mail</label
|
|
>
|
|
<input
|
|
id="email"
|
|
name="email"
|
|
type="text"
|
|
class="text-lg py-1 px-2 rounded-lg shadow"
|
|
bind:value={email}
|
|
/>
|
|
</div>
|
|
|
|
<div class="flex flex-col">
|
|
<label for="message" value="E-Mail" class="text-lg font-bold"
|
|
>Message</label
|
|
>
|
|
<textarea
|
|
id="message"
|
|
name="message"
|
|
class="text-lg py-1 px-2 rounded-lg shadow"
|
|
bind:value={message}
|
|
rows="5"
|
|
/>
|
|
</div>
|
|
|
|
<div class="flex flex-col">
|
|
<button
|
|
type="submit"
|
|
on:click={send}
|
|
class="bg-white py-2 px-3 rounded-lg font-bold shadow"
|
|
>Send</button
|
|
>
|
|
</div>
|
|
|
|
{#if notify}
|
|
<p class="text-green-500 font-bold text-lg">{notify}</p>
|
|
{/if}
|
|
</form>
|
|
</section>
|
|
</main>
|
|
|
|
<style>
|
|
button {
|
|
transition-duration: 0.3s;
|
|
}
|
|
|
|
button:hover {
|
|
transition-duration: 0.3s;
|
|
transform: translateY(-5px);
|
|
}
|
|
|
|
button:active {
|
|
transition-duration: 0.3s;
|
|
transform: translateY(5px);
|
|
}
|
|
</style>
|