Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
mscno committed Jan 30, 2024
1 parent ebf43ac commit 6d6cd9e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
9 changes: 4 additions & 5 deletions islands/email.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,12 @@ export default function EmailIsland() {
);
const data = await response.json();
setResult(JSON.stringify(data, null, 2));
}
};

const handleCheckEmail = async (e: Event) => {
e.preventDefault();
await checkEmail(email);
};


useEffect(() => {
checkEmail(email);
Expand Down Expand Up @@ -47,9 +46,9 @@ export default function EmailIsland() {
required
className="block w-full p-2 border border-gray-300 rounded"
/>
<div class="text-xs italic">result automatically fetched on input update</div>


<div class="text-xs italic">
result automatically fetched on input update
</div>
</form>
<div className="mt-8">
<h2 className="text-lg font-bold mb-2">Request:</h2>
Expand Down
27 changes: 14 additions & 13 deletions routes/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ import EmailIsland from "../islands/email.tsx";
export default function Home() {
return (
<div className="flex flex-col items-center justify-center h-screen bg-[#86efac]">
<div className="flex items-center justify-center mb-4">
<img
src="/logo_indigo.svg"
alt="emailchecker"
className="mr-4 h-24"
/>
<h1 className="text-6xl font-bold text-center text-indigo-600 pb-2">
emailchecker.deno.dev
</h1>
</div>
<div className="flex items-center justify-center mb-4">
<img
src="/logo_indigo.svg"
alt="emailchecker"
className="mr-4 h-24"
/>
<h1 className="text-6xl font-bold text-center text-indigo-600 pb-2">
emailchecker.deno.dev
</h1>
</div>
<EmailIsland />
<div className="mt-10 max-w-4xl p-4 bg-white rounded shadow">
<h2 className="text-lg font-bold mb-2">API Details:</h2>
Expand All @@ -31,9 +31,10 @@ export default function Home() {
</div>
<div className="max-w-4xl my-4 text-center">
<p>
<strong>emailchecker.deno.dev</strong> is a completely free service that allows you to check
if an email is valid or not and whether the email provider is a free
or disposable email provider.
<strong>emailchecker.deno.dev</strong>{" "}
is a completely free service that allows you to check if an email is
valid or not and whether the email provider is a free or disposable
email provider.
</p>
<p>
It is built using{" "}
Expand Down

0 comments on commit 6d6cd9e

Please sign in to comment.