diff --git a/src/lib/components/header/Header.svelte b/src/lib/components/header/Header.svelte index 005a7a4..eeefea2 100644 --- a/src/lib/components/header/Header.svelte +++ b/src/lib/components/header/Header.svelte @@ -15,8 +15,8 @@ diff --git a/src/lib/components/preferences/gameCollection.svelte b/src/lib/components/preferences/gameCollection.svelte new file mode 100644 index 0000000..a80dc56 --- /dev/null +++ b/src/lib/components/preferences/gameCollection.svelte @@ -0,0 +1,43 @@ + + +
+ + +
+ + \ No newline at end of file diff --git a/src/lib/components/preferences/profile.svelte b/src/lib/components/preferences/profile.svelte index 6c4a191..199d970 100644 --- a/src/lib/components/preferences/profile.svelte +++ b/src/lib/components/preferences/profile.svelte @@ -1,25 +1,141 @@ - - Solutions +
+ + + + - - + {#if open} +
+ +
+ + + + - - - + Preferences + +
+ + +
+
+
+
+ {/if} +
+
diff --git a/src/lib/stores/collectionStore.ts b/src/lib/stores/collectionStore.ts index b0951bd..1b2d08e 100644 --- a/src/lib/stores/collectionStore.ts +++ b/src/lib/stores/collectionStore.ts @@ -5,6 +5,12 @@ import type { GameType } from '$lib/types'; const state = () => { const { subscribe, set, update } = writable([]); + function addAll(games: GameType[]) { + for (const game of games) { + add(game); + } + } + function add(game: GameType) { update((store) => [...store, game]); } @@ -22,7 +28,7 @@ const state = () => { }); } - return { subscribe, set, update, add, remove, removeAll }; + return { subscribe, set, update, add, addAll, remove, removeAll }; }; export const collectionStore = state(); diff --git a/src/routes/__layout.svelte b/src/routes/__layout.svelte index e552509..a039118 100644 --- a/src/routes/__layout.svelte +++ b/src/routes/__layout.svelte @@ -1,4 +1,5 @@ diff --git a/src/routes/index.svelte b/src/routes/index.svelte index 9775422..6b2eaaf 100644 --- a/src/routes/index.svelte +++ b/src/routes/index.svelte @@ -80,7 +80,6 @@ } } .game-search { - margin: 1rem; border-radius: 4px; box-shadow: var(--level-2); background: rgba(0, 0, 0, 0.02);