From 4e4134f8b2c1611e7d40074af55dcef75476016f Mon Sep 17 00:00:00 2001 From: Arjun Satarkar Date: Wed, 1 Jan 2025 00:01:12 +0530 Subject: Initial commit --- src/app.d.ts | 13 +++++++++++++ src/app.html | 12 ++++++++++++ src/lib/index.ts | 1 + src/routes/+page.svelte | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 73 insertions(+) create mode 100644 src/app.d.ts create mode 100644 src/app.html create mode 100644 src/lib/index.ts create mode 100644 src/routes/+page.svelte (limited to 'src') diff --git a/src/app.d.ts b/src/app.d.ts new file mode 100644 index 0000000..da08e6d --- /dev/null +++ b/src/app.d.ts @@ -0,0 +1,13 @@ +// See https://svelte.dev/docs/kit/types#app.d.ts +// for information about these interfaces +declare global { + namespace App { + // interface Error {} + // interface Locals {} + // interface PageData {} + // interface PageState {} + // interface Platform {} + } +} + +export {}; diff --git a/src/app.html b/src/app.html new file mode 100644 index 0000000..77a5ff5 --- /dev/null +++ b/src/app.html @@ -0,0 +1,12 @@ + + + + + + + %sveltekit.head% + + +
%sveltekit.body%
+ + diff --git a/src/lib/index.ts b/src/lib/index.ts new file mode 100644 index 0000000..856f2b6 --- /dev/null +++ b/src/lib/index.ts @@ -0,0 +1 @@ +// place files you want to import through the `$lib` alias in this folder. diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte new file mode 100644 index 0000000..3519725 --- /dev/null +++ b/src/routes/+page.svelte @@ -0,0 +1,47 @@ + + +
+ {#if isPerfectSquare} +
Yes.
+ {sqrt}2 = {year}. + {:else} +
No.
+ {/if} + The last was + {last} ({lastSqrt}2), and + the next is + {next} ({nextSqrt}2), {nextRelative}! +
+ + -- cgit v1.2.3-57-g22cb