-
Notifications
You must be signed in to change notification settings - Fork 1
ux improvements, homepage, this is the only level #394
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
ddfa36d
add this is the only level
ingoau 61f5c18
Merge pull request #386 from EducationalTools/385-gmae-request-this-i…
ingoau 1a8a01a
only show settings when experimental features on
ingoau 015c5d5
Bump prettier from 3.5.3 to 3.6.0
dependabot[bot] f318a66
Bump @sveltejs/kit from 2.21.5 to 2.22.0
dependabot[bot] 88c6833
Bump posthog-js from 1.253.4 to 1.255.1
dependabot[bot] c3c536b
Bump layerchart from 2.0.0-next.22 to 2.0.0-next.24
dependabot[bot] 3614e3e
show unique id to user
ingoau b0502fc
clean up
ingoau 3e8ed14
Prettified Code!
b99af42
add link component
ingoau ca39a82
add componenet to cell
ingoau b80f992
Merge branch '392-ux-issue-with-gmaes-data-table' of https://github.c…
ingoau 11b25bf
Prettified Code!
76679b3
Merge pull request #393 from EducationalTools/392-ux-issue-with-gmaes…
ingoau 4f404df
add start of home page
ingoau c0640ec
add tools
ingoau 1f71cfb
Merge pull request #391 from EducationalTools/dependabot/npm_and_yarn…
ingoau 83f6fb3
Merge pull request #390 from EducationalTools/dependabot/npm_and_yarn…
ingoau 8a3c04b
Merge pull request #387 from EducationalTools/dependabot/npm_and_yarn…
ingoau 29cb5bc
Merge pull request #389 from EducationalTools/dependabot/npm_and_yarn…
ingoau 456b543
add history and saved and change styles
ingoau c4f759d
Merge branch 'main' of https://github.com/EducationalTools/src
ingoau 50137c2
chnage gradient
ingoau a415c03
add cool grid background
ingoau fbf27a8
add placeholders and remove button
ingoau 3b1a208
add clear history button
ingoau a044fe8
change button styles a bit
ingoau bcef5a6
Update src/lib/components/settings.svelte
ingoau f6f0421
fix error introduced by copilot. coderabbit is really just better
ingoau File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,96 @@ | ||
| <script lang="ts"> | ||
| import Button from '$lib/components/ui/button/button.svelte'; | ||
| import { preferencesStore, historyStore, favoritesStore } from '$lib/stores'; | ||
| import clsx from 'clsx'; | ||
| import { getGameById } from '$lib/gmaes'; | ||
| import History from '@lucide/svelte/icons/history'; | ||
| import Bookmark from 'lucide-svelte/icons/bookmark'; | ||
| import X from 'lucide-svelte/icons/x'; | ||
|
|
||
| const tools = [ | ||
| { name: 'Calculator', url: '/tools/calculator' }, | ||
| { name: 'Converter', url: '/tools/converter' }, | ||
| { name: 'Rich Text Editor', url: '/tools/rich-text-editor' }, | ||
| { name: 'Word Counter', url: '/tools/word-counter' }, | ||
| { name: 'Password Generator', url: '/tools/password-generator' }, | ||
| { name: 'Random Number Generator', url: '/tools/random-number-generator' } | ||
| ]; | ||
| </script> | ||
|
|
||
| <div class="bg-background relative flex w-full items-center justify-center py-52"> | ||
| <div | ||
| class="absolute top-0 left-0 h-full w-full bg-[linear-gradient(to_right,var(--muted)_1px,transparent_1px),linear-gradient(to_bottom,var(--muted)_1px,transparent_1px)] [mask-image:linear-gradient(0deg,_transparent,_var(--background))] bg-[size:24px_24px]" | ||
| ></div> | ||
| <h1 class="z-10 text-4xl"> | ||
| EduTools {#if $preferencesStore.experimentalFeatures}Experimental{/if} | ||
| </h1> | ||
| </div> | ||
|
|
||
| <div class="flex w-full flex-col gap-3 p-3 md:flex-row"> | ||
| <div | ||
| class={clsx( | ||
| 'grid h-fit w-full gap-3', | ||
| $preferencesStore.experimentalFeatures ? 'grid-cols-1' : 'grid-cols-3' | ||
| )} | ||
| > | ||
| {#each tools as tool} | ||
| <Button variant="outline" class="py-10 text-xl" href={tool.url}>{tool.name}</Button> | ||
| {/each} | ||
| </div> | ||
| {#if $preferencesStore.experimentalFeatures} | ||
| <div class="grid h-fit w-full grid-cols-1 gap-3"> | ||
| <div class="flex flex-row items-center gap-1"> | ||
| <History /> | ||
| History | ||
| </div> | ||
| {#each $historyStore as item} | ||
| <Button variant="outline" class="py-10 text-xl" href={'/g/' + item} | ||
| >{getGameById(item)?.name}</Button | ||
| > | ||
| {/each} | ||
| {#if $historyStore.length === 0} | ||
| <div | ||
| class="flex flex-row items-center justify-center gap-1 rounded-md border border-dashed p-16" | ||
| > | ||
| No history saved | ||
| </div> | ||
| {:else} | ||
| <Button | ||
| variant="ghost" | ||
| onclick={() => { | ||
| $historyStore = []; | ||
| }}>Clear</Button | ||
| > | ||
| {/if} | ||
| </div> | ||
| <div class="grid h-fit w-full grid-cols-1 gap-3"> | ||
| <div class="flex flex-row items-center gap-1"> | ||
| <Bookmark /> | ||
| Saved | ||
| </div> | ||
| {#each $favoritesStore as item} | ||
| <div class="flex w-full flex-row gap-3"> | ||
| <Button variant="outline" class="grow py-10 text-xl" href={'/g/' + item} | ||
| >{getGameById(item)?.name}</Button | ||
| > | ||
| <Button | ||
| variant="ghost" | ||
| class="aspect-square py-10 text-xl" | ||
| onclick={() => { | ||
| $favoritesStore = $favoritesStore.filter((id) => id !== item); | ||
| }} | ||
| > | ||
| <X /> | ||
| </Button> | ||
| </div> | ||
| {/each} | ||
| {#if $favoritesStore.length === 0} | ||
| <div | ||
| class="flex flex-row items-center justify-center gap-1 rounded-md border border-dashed p-16" | ||
| > | ||
| Nothing saved | ||
| </div> | ||
| {/if} | ||
| </div> | ||
| {/if} | ||
| </div> | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| <script lang="ts"> | ||
| const { children, ...rest } = $props(); | ||
| </script> | ||
|
|
||
| <a {...rest}>{children}</a> | ||
ingoau marked this conversation as resolved.
Show resolved
Hide resolved
|
||
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| <html> | ||
ingoau marked this conversation as resolved.
Show resolved
Hide resolved
ingoau marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| <head> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
| <title>This Is The Only Level | 3kh0</title> | ||
| <link rel="icon" type="image/x-icon" href="thisistheonlylevel.png" /> | ||
| <link rel="shortcut icon" type="image/x-icon" href="thisistheonlylevel.png" /> | ||
| </head> | ||
| <body> | ||
| <script src="/js/main.js"></script> | ||
| <div id="ruffle" width="100%" height="100%"></div> | ||
| <script src="ruffle.js"></script> | ||
| <script> | ||
| window.RufflePlayer = window.RufflePlayer || {}; | ||
| window.addEventListener("load", (event) => { | ||
| const ruffle = window.RufflePlayer.newest(); | ||
| const player = ruffle.createPlayer(); | ||
| const container = document.getElementById("ruffle"); | ||
| player.id = "player"; | ||
| player.style.width = "100%"; | ||
| player.style.height = "100%"; | ||
| container.appendChild(player); | ||
| player.load("thisistheonlylevel.swf"); | ||
| }); | ||
| </script> | ||
| </body> | ||
| </html> | ||
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.