From 80e0fe38cb7a4e8b1f9b36c1a8ebeb55782db7e9 Mon Sep 17 00:00:00 2001 From: Josh Patra <30350506+SoPat712@users.noreply.github.com> Date: Fri, 18 Apr 2025 22:04:58 -0400 Subject: [PATCH] Base app in working condition --- package-lock.json | 83 +++--- package.json | 4 + src/app.css | 10 + src/app.html | 3 +- src/lib/HeardleGame.svelte | 499 +++++++++++++++++++++++++++++++++++++ src/lib/index.ts | 3 +- src/routes/+layout.svelte | 12 +- src/routes/+page.svelte | 7 +- static/favicon-dark.ico | Bin 0 -> 39639 bytes static/favicon-dark.png | Bin 0 -> 39639 bytes static/favicon.ico | Bin 0 -> 34912 bytes static/favicon.png | Bin 1571 -> 34912 bytes tailwind.config.cjs | 10 + vite.config.ts | 6 +- 14 files changed, 597 insertions(+), 40 deletions(-) create mode 100644 src/lib/HeardleGame.svelte create mode 100644 static/favicon-dark.ico create mode 100644 static/favicon-dark.png create mode 100644 static/favicon.ico create mode 100644 tailwind.config.cjs diff --git a/package-lock.json b/package-lock.json index b6ac982..bf4b746 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7,6 +7,9 @@ "": { "name": "maisie-heardle", "version": "0.0.1", + "dependencies": { + "moment": "^2.30.1" + }, "devDependencies": { "@eslint/compat": "^1.2.5", "@eslint/js": "^9.18.0", @@ -23,6 +26,7 @@ "prettier-plugin-tailwindcss": "^0.6.11", "svelte": "^5.0.0", "svelte-check": "^4.0.0", + "svelte-hero-icons": "^5.2.0", "tailwindcss": "^4.0.0", "typescript": "^5.0.0", "typescript-eslint": "^8.20.0", @@ -1101,6 +1105,13 @@ "win32" ] }, + "node_modules/@steeze-ui/heroicons": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/@steeze-ui/heroicons/-/heroicons-2.4.2.tgz", + "integrity": "sha512-66luL+uaxyC6mcZigewH4phfDxNWj4sH+n6qK2VnY3zcgpMmNAgVQbMGfZYfKhLqrUo13BlqpmhWuHqAUpehlA==", + "dev": true, + "license": "MIT" + }, "node_modules/@sveltejs/acorn-typescript": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/@sveltejs/acorn-typescript/-/acorn-typescript-1.0.5.tgz", @@ -2964,6 +2975,19 @@ "node": ">=8.6" } }, + "node_modules/micromatch/node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, "node_modules/minimatch": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", @@ -2977,6 +3001,15 @@ "node": "*" } }, + "node_modules/moment": { + "version": "2.30.1", + "resolved": "https://registry.npmjs.org/moment/-/moment-2.30.1.tgz", + "integrity": "sha512-uEmtNhbDOrWPFS+hdjFCBfy9f2YoyzRpwcl+DqpC6taX21FzsTLQVbMV/W7PzNSX6x/bhC1zA3c2UQ5NzH6how==", + "license": "MIT", + "engines": { + "node": "*" + } + }, "node_modules/mri": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/mri/-/mri-1.2.0.tgz", @@ -3121,13 +3154,13 @@ "license": "ISC" }, "node_modules/picomatch": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", - "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.2.tgz", + "integrity": "sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==", "dev": true, "license": "MIT", "engines": { - "node": ">=8.6" + "node": ">=12" }, "funding": { "url": "https://github.com/sponsors/jonschlinkert" @@ -3702,6 +3735,22 @@ } } }, + "node_modules/svelte-hero-icons": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/svelte-hero-icons/-/svelte-hero-icons-5.2.0.tgz", + "integrity": "sha512-KpdMTL0bOnkxciEmDXvyVF/R5nrZ1x1uHCSt9gMrrbEd3g5HSIaaDChOutTOfeI+cZ3EJbb+OcBH/lBzJr1aEw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@steeze-ui/heroicons": "^2.4.0" + }, + "engines": { + "node": ">=18.0.0" + }, + "peerDependencies": { + "svelte": "^3.0.0 || ^4.0.0 || ^5.0.0" + } + }, "node_modules/tailwindcss": { "version": "4.1.4", "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-4.1.4.tgz", @@ -3736,19 +3785,6 @@ "url": "https://github.com/sponsors/SuperchupuDev" } }, - "node_modules/tinyglobby/node_modules/picomatch": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.2.tgz", - "integrity": "sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, "node_modules/to-regex-range": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", @@ -4393,19 +4429,6 @@ "@esbuild/win32-x64": "0.25.2" } }, - "node_modules/vite/node_modules/picomatch": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.2.tgz", - "integrity": "sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, "node_modules/vitefu": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/vitefu/-/vitefu-1.0.6.tgz", diff --git a/package.json b/package.json index 83090ba..98a8ece 100644 --- a/package.json +++ b/package.json @@ -29,9 +29,13 @@ "prettier-plugin-tailwindcss": "^0.6.11", "svelte": "^5.0.0", "svelte-check": "^4.0.0", + "svelte-hero-icons": "^5.2.0", "tailwindcss": "^4.0.0", "typescript": "^5.0.0", "typescript-eslint": "^8.20.0", "vite": "^6.2.5" + }, + "dependencies": { + "moment": "^2.30.1" } } diff --git a/src/app.css b/src/app.css index d4b5078..ae32b94 100644 --- a/src/app.css +++ b/src/app.css @@ -1 +1,11 @@ +@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap'); @import 'tailwindcss'; +/* load any custom fonts here, e.g.: */ + +@tailwind base; +@tailwind components; +@tailwind utilities; + +html { + font-family: 'Inter', sans-serif; +} diff --git a/src/app.html b/src/app.html index 77a5ff5..381bf8f 100644 --- a/src/app.html +++ b/src/app.html @@ -2,9 +2,10 @@
- %sveltekit.head% + ++ {ARTIST_NAME} – Test your {ARTIST_NAME} knowledge! +
++ All songs used are copyrighted and belong to {ARTIST_NAME}. +
+
+ Prepared with SoundCloud, Svelte, Tailwind, Inter font,
+ svelte‑hero‑icons
+
Game version: 1.0.0
+Visit svelte.dev/docs/kit to read the documentation
+ + +HM5&xSiS1z7LZ^Jhm(hei_*rhC{vp}LV6@y)7
zFyUhS_QW~hrMTdhg^9H_Rd&;bl(4m%?026L^0|oQPy(AO=SU`7t?9U^A}ClhO?a})
zXn_bWf))gb-^qj{moHg{sJe&V^on#}6Xeu^5?>>bzB;p~8reeKiGFVQ48A0u(-8N?
zN?l$sGGQ{V4m{?1bAqNo02>!-mV=Lh5zdka4&%Gt_EM9ZI$NdhI(3zP$P`g3Cin5N
zB*8QX5t|>KfX&?*yEScF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