More qol.

This commit is contained in:
Alfred Jophy 2026-02-05 02:16:47 +05:30
commit 2bdd2c1c9d
16 changed files with 657 additions and 26 deletions

View file

@ -1,5 +1,27 @@
<script lang="ts">
import Altcha from './altcha.svelte';
import { PUBLIC_LEAD_SUBMIT_URL } from '$env/static/public';
let isSubmitted = false;
const handleSubmit = async (
e: SubmitEvent & { currentTarget: EventTarget & HTMLFormElement }
) => {
e.stopPropagation();
e.preventDefault();
const data = new FormData(e.currentTarget!);
const res = await fetch(PUBLIC_LEAD_SUBMIT_URL, {
body: data,
method: 'POST'
});
if (res.ok) {
isSubmitted = true;
} else {
alert('Something went wrong');
}
};
</script>
<section id="contact" class="bg-black py-32">
@ -40,7 +62,7 @@
<p class="mb-1 text-[10px] font-bold tracking-widest text-slate-600 uppercase">
Operational Hub
</p>
<p class="text-lg font-medium text-white">Tech Corridor, Bangalore</p>
<p class="text-lg font-medium text-white">Kochi, India</p>
</div>
</div>
</div>
@ -62,14 +84,14 @@
</p>
</div>
{:else}
<form onSubmit={handleSubmit} class="space-y-6">
<form onsubmit={handleSubmit} class="space-y-6">
<div class="grid gap-6 md:grid-cols-2">
<div>
<input
type="text"
required
class="w-full rounded-2xl border border-white/10 bg-black/40 px-6 py-4 font-light text-white transition-all focus:border-cyan-500 focus:outline-none"
placeholder="Principal Name"
placeholder="Your Name"
name="name"
/>
</div>
<div>
@ -78,6 +100,7 @@
required
class="w-full rounded-2xl border border-white/10 bg-black/40 px-6 py-4 font-light text-white transition-all focus:border-cyan-500 focus:outline-none"
placeholder="Work Email"
name="email"
/>
</div>
</div>
@ -86,12 +109,15 @@
type="text"
class="w-full rounded-2xl border border-white/10 bg-black/40 px-6 py-4 font-light text-white transition-all focus:border-cyan-500 focus:outline-none"
placeholder="Organization / Project"
name="organization"
/>
</div>
<div>
<select
class="w-full appearance-none rounded-2xl border border-white/10 bg-black/40 px-6 py-4 font-light text-slate-400 transition-all focus:border-cyan-500 focus:outline-none"
name="category"
>
<option class="bg-slate-900">Cost Optimization</option>
<option class="bg-slate-900">Hardened Migration</option>
<option class="bg-slate-900">DevSecOps Audit</option>
<option class="bg-slate-900">Zero-Trust Implementation</option>
@ -102,14 +128,18 @@
<textarea
rows={4}
class="w-full resize-none rounded-2xl border border-white/10 bg-black/40 px-6 py-4 font-light text-white transition-all focus:border-cyan-500 focus:outline-none"
placeholder="Requirements Summary..."
placeholder="Tell us about your requirements..."
name="requirements"
></textarea>
</div>
<div>
<Altcha hideFooter={true} hideLogo={true} />
</div>
<button
type="submit"
class="w-full rounded-2xl bg-white py-5 text-xs font-black tracking-[0.3em] text-black uppercase shadow-2xl transition-all hover:scale-[1.02] hover:bg-cyan-500 active:scale-95"
>
Submit Proposal
Ask us
</button>
</form>
{/if}