diff --git a/.eslintrc.cjs b/.eslintrc.cjs index fab32bf..814af8c 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -1,15 +1,15 @@ module.exports = { root: true, - extends: ['eslint:recommended', 'prettier'], - plugins: ['svelte3'], - overrides: [{ files: ['*.svelte'], processor: 'svelte3/svelte3' }], + extends: ["eslint:recommended", "prettier"], + plugins: ["svelte3"], + overrides: [{ files: ["*.svelte"], processor: "svelte3/svelte3" }], parserOptions: { - sourceType: 'module', - ecmaVersion: 2020 + sourceType: "module", + ecmaVersion: 2020, }, env: { browser: true, es2017: true, - node: true - } + node: true, + }, }; diff --git a/biome.json b/biome.json index d565a05..0196b05 100644 --- a/biome.json +++ b/biome.json @@ -12,4 +12,4 @@ "files": { "ignore": ["node_modules/*", ".netlify/*", ".svelte-kit/", "build/"] } -} \ No newline at end of file +} diff --git a/package.json b/package.json index 5527fc2..eef8d91 100644 --- a/package.json +++ b/package.json @@ -1,35 +1,35 @@ { - "name": "illusion", - "version": "0.0.1", - "private": true, - "scripts": { - "dev": "vite dev", - "build": "vite build", - "preview": "vite preview", - "check": "svelte-kit sync && svelte-check --tsconfig ./jsconfig.json", - "check:watch": "svelte-kit sync && svelte-check --tsconfig ./jsconfig.json --watch", - "lint": "prettier --plugin-search-dir . --check . && eslint .", - "format": "prettier --plugin-search-dir . --write ." - }, - "devDependencies": { - "@biomejs/biome": "1.7.1", - "@sveltejs/adapter-auto": "^3.2.0", - "@sveltejs/kit": "^2.5.7", - "@unocss/preset-uno": "^0.59.4", - "eslint": "^9.1.1", - "eslint-config-biome": "^1.5.3", - "eslint-plugin-svelte3": "^4.0.0", - "svelte": "^4.2.1", - "svelte-check": "^3.5.2", - "svelte-preprocess": "^5.0.4", - "typescript": "^5.2.2", - "unocss": "^0.59.4", - "vite": "^5.2.10" - }, - "type": "module", - "dependencies": { - "@selemondev/svelte-marquee": "^0.0.2", - "@sveltejs/adapter-netlify": "^4.2.0", - "rescript": "^11.1.0" - } + "name": "illusion", + "version": "0.0.1", + "private": true, + "scripts": { + "dev": "vite dev", + "build": "vite build", + "preview": "vite preview", + "check": "svelte-kit sync && svelte-check --tsconfig ./jsconfig.json", + "check:watch": "svelte-kit sync && svelte-check --tsconfig ./jsconfig.json --watch", + "lint": "prettier --plugin-search-dir . --check . && eslint .", + "format": "prettier --plugin-search-dir . --write ." + }, + "devDependencies": { + "@biomejs/biome": "1.7.1", + "@sveltejs/adapter-auto": "^3.2.0", + "@sveltejs/kit": "^2.5.7", + "@unocss/preset-uno": "^0.59.4", + "eslint": "^9.1.1", + "eslint-config-biome": "^1.5.3", + "eslint-plugin-svelte3": "^4.0.0", + "svelte": "^4.2.1", + "svelte-check": "^3.5.2", + "svelte-preprocess": "^5.0.4", + "typescript": "^5.2.2", + "unocss": "^0.59.4", + "vite": "^5.2.10" + }, + "type": "module", + "dependencies": { + "@selemondev/svelte-marquee": "^0.0.2", + "@sveltejs/adapter-netlify": "^4.2.0", + "rescript": "^11.1.0" + } } diff --git a/src/app.d.ts b/src/app.d.ts index f59b884..ee0e17d 100644 --- a/src/app.d.ts +++ b/src/app.d.ts @@ -9,4 +9,4 @@ declare global { } } -export {}; +export type {}; diff --git a/src/components/Background.svelte b/src/components/Background.svelte index 095e0da..3f2a1e4 100644 --- a/src/components/Background.svelte +++ b/src/components/Background.svelte @@ -1,7 +1,7 @@ diff --git a/src/components/Link.svelte b/src/components/Link.svelte index 3d426bc..4b7d42b 100644 --- a/src/components/Link.svelte +++ b/src/components/Link.svelte @@ -1,7 +1,7 @@ {#if back} diff --git a/src/components/Marquee.svelte b/src/components/Marquee.svelte index 8659350..6400624 100644 --- a/src/components/Marquee.svelte +++ b/src/components/Marquee.svelte @@ -1,6 +1,6 @@ diff --git a/src/components/MarqueeContainer.svelte b/src/components/MarqueeContainer.svelte index 377fd86..156c2a1 100644 --- a/src/components/MarqueeContainer.svelte +++ b/src/components/MarqueeContainer.svelte @@ -1,8 +1,8 @@
diff --git a/src/components/Rise.svelte b/src/components/Rise.svelte index 75651f2..fe88ea7 100644 --- a/src/components/Rise.svelte +++ b/src/components/Rise.svelte @@ -1,7 +1,7 @@
diff --git a/src/routes/+layout.server.js b/src/routes/+layout.server.js index c8cacf0..189f71e 100644 --- a/src/routes/+layout.server.js +++ b/src/routes/+layout.server.js @@ -1 +1 @@ -export const prerender = true; \ No newline at end of file +export const prerender = true; diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index afa4980..fc4a7c2 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -1,6 +1,6 @@
diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 89d1a92..61ef989 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -1,9 +1,9 @@ diff --git a/src/routes/+page.ts b/src/routes/+page.ts index 4a6ad08..ed0ac32 100644 --- a/src/routes/+page.ts +++ b/src/routes/+page.ts @@ -1 +1 @@ -const prerender = true; \ No newline at end of file +const prerender = true; diff --git a/src/routes/about/+page.svelte b/src/routes/about/+page.svelte index 7300333..34198a0 100644 --- a/src/routes/about/+page.svelte +++ b/src/routes/about/+page.svelte @@ -1,6 +1,6 @@
diff --git a/src/routes/api/finances/organization/+server.ts b/src/routes/api/finances/organization/+server.ts index fe00ffd..495c445 100644 --- a/src/routes/api/finances/organization/+server.ts +++ b/src/routes/api/finances/organization/+server.ts @@ -1,9 +1,11 @@ -import { json } from "@sveltejs/kit" +import { json } from "@sveltejs/kit"; /** @type {import('./$types').RequestHandler} */ export async function GET({ url }) { - const res = await fetch("https://bank.hackclub.com/api/v3/organizations/org_rPurE1.json") - const data = await res.json() + const res = await fetch( + "https://bank.hackclub.com/api/v3/organizations/org_rPurE1.json", + ); + const data = await res.json(); - return json(data); + return json(data); } diff --git a/src/routes/api/finances/transactions/+server.ts b/src/routes/api/finances/transactions/+server.ts index 876d6d0..1062a00 100644 --- a/src/routes/api/finances/transactions/+server.ts +++ b/src/routes/api/finances/transactions/+server.ts @@ -1,9 +1,11 @@ -import { json } from "@sveltejs/kit" +import { json } from "@sveltejs/kit"; /** @type {import('./$types').RequestHandler} */ export async function GET({ url }) { - const res = await fetch("https://bank.hackclub.com/api/v3/organizations/teamillusion/transactions") - const data = await res.json() + const res = await fetch( + "https://bank.hackclub.com/api/v3/organizations/teamillusion/transactions", + ); + const data = await res.json(); - return json(data); + return json(data); } diff --git a/src/routes/contact/+page.js b/src/routes/contact/+page.js index c8cacf0..189f71e 100644 --- a/src/routes/contact/+page.js +++ b/src/routes/contact/+page.js @@ -1 +1 @@ -export const prerender = true; \ No newline at end of file +export const prerender = true; diff --git a/src/routes/contact/+page.svelte b/src/routes/contact/+page.svelte index b228619..9bdd979 100644 --- a/src/routes/contact/+page.svelte +++ b/src/routes/contact/+page.svelte @@ -14,21 +14,21 @@ title="Team Illusion Contact Form " > +var d = document, + w = "https://tally.so/widgets/embed.js", + v = () => { + "undefined" != typeof Tally + ? Tally.loadEmbeds() + : d.querySelectorAll("iframe[data-tally-src]:not([src])").forEach((e) => { + e.src = e.dataset.tallySrc; + }); + }; +if ("undefined" != typeof Tally) v(); +else if (d.querySelector('script[src="' + w + '"]') == null) { + var s = d.createElement("script"); + (s.src = w), (s.onload = v), (s.onerror = v), d.body.appendChild(s); +} +
diff --git a/src/routes/finances/+page.svelte b/src/routes/finances/+page.svelte index ddb451a..b2d32a4 100644 --- a/src/routes/finances/+page.svelte +++ b/src/routes/finances/+page.svelte @@ -1,18 +1,18 @@ {#await data} diff --git a/src/routes/finances/+page.ts b/src/routes/finances/+page.ts index c8cacf0..189f71e 100644 --- a/src/routes/finances/+page.ts +++ b/src/routes/finances/+page.ts @@ -1 +1 @@ -export const prerender = true; \ No newline at end of file +export const prerender = true; diff --git a/static/site.webmanifest b/static/site.webmanifest index 45dc8a2..9591150 100644 --- a/static/site.webmanifest +++ b/static/site.webmanifest @@ -1 +1,19 @@ -{"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"} \ No newline at end of file +{ + "name": "", + "short_name": "", + "icons": [ + { + "src": "/android-chrome-192x192.png", + "sizes": "192x192", + "type": "image/png" + }, + { + "src": "/android-chrome-512x512.png", + "sizes": "512x512", + "type": "image/png" + } + ], + "theme_color": "#ffffff", + "background_color": "#ffffff", + "display": "standalone" +} diff --git a/svelte.config.js b/svelte.config.js index f1bee89..aa7fea7 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -1,5 +1,5 @@ -import adapter from '@sveltejs/adapter-netlify'; -import preprocess from 'svelte-preprocess'; +import adapter from "@sveltejs/adapter-netlify"; +import preprocess from "svelte-preprocess"; /** @type {import('@sveltejs/kit').Config} */ const config = { @@ -7,7 +7,7 @@ const config = { kit: { adapter: adapter({ precompress: true, - }) + }), }, extensions: [".svelte"], }; diff --git a/uno.config.ts b/uno.config.ts index 54187f2..2ae88db 100644 --- a/uno.config.ts +++ b/uno.config.ts @@ -1,18 +1,22 @@ // uno.config.ts -import { defineConfig, presetUno } from 'unocss' +import { defineConfig, presetUno } from "unocss"; -export default defineConfig( - { - presets: [presetUno()], - rules: [ - // cursor - [/^cursor-emoji-(\w+)$/, ([, w]) => ({ cursor: `url('/emojis/${w}.webp') 64 64, auto` })], - [/^spacing-(\d)$/, ([, d]) => ({ 'letter-spacing': `${d}px` })], - ['font-spacemono', { 'font-family': 'Space Mono' }] - ], - shortcuts: { - 'button': 'no-underline text-current text-center hover:scale-105 duration-250 ease-out rounded-full bg-[#6000FF] text-white b-none py-2 px-5 md:px-10 mt-5 text-xl font-bold -spacing-1 flex items-center justify-center', - 'section-wrapper': 'h-screen w-screen font-[Inter]', - 'section': 'mx-auto flex flex-col items-center justify-center text-white lg:max-w-screen-xl w-screen h-screen m-auto overflow-x-clip', - } - }) \ No newline at end of file +export default defineConfig({ + presets: [presetUno()], + rules: [ + // cursor + [ + /^cursor-emoji-(\w+)$/, + ([, w]) => ({ cursor: `url('/emojis/${w}.webp') 64 64, auto` }), + ], + [/^spacing-(\d)$/, ([, d]) => ({ "letter-spacing": `${d}px` })], + ["font-spacemono", { "font-family": "Space Mono" }], + ], + shortcuts: { + button: + "no-underline text-current text-center hover:scale-105 duration-250 ease-out rounded-full bg-[#6000FF] text-white b-none py-2 px-5 md:px-10 mt-5 text-xl font-bold -spacing-1 flex items-center justify-center", + "section-wrapper": "h-screen w-screen font-[Inter]", + section: + "mx-auto flex flex-col items-center justify-center text-white lg:max-w-screen-xl w-screen h-screen m-auto overflow-x-clip", + }, +}); diff --git a/vite.config.js b/vite.config.js index 3fb136a..845835d 100644 --- a/vite.config.js +++ b/vite.config.js @@ -1,7 +1,7 @@ -import { sveltekit } from '@sveltejs/kit/vite'; -import { defineConfig } from 'vite'; +import { sveltekit } from "@sveltejs/kit/vite"; import UnoCSS from "unocss/vite"; +import { defineConfig } from "vite"; export default defineConfig({ - plugins: [sveltekit(), UnoCSS()] + plugins: [sveltekit(), UnoCSS()], });