diff --git a/package.json b/package.json index 8ff43b8..d7ab0cc 100644 --- a/package.json +++ b/package.json @@ -22,8 +22,6 @@ "@types/node": "^18.11.7", "@typescript-eslint/eslint-plugin": "^5.41.0", "@typescript-eslint/parser": "^5.41.0", - "carbon-components-svelte": "^0.70.12", - "carbon-icons-svelte": "^11.4.0", "eslint": "^8.26.0", "eslint-config-prettier": "^8.1.0", "eslint-plugin-svelte3": "^4.0.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index ed51618..137a6b2 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -15,8 +15,6 @@ specifiers: '@types/node': ^18.11.7 '@typescript-eslint/eslint-plugin': ^5.41.0 '@typescript-eslint/parser': ^5.41.0 - carbon-components-svelte: ^0.70.12 - carbon-icons-svelte: ^11.4.0 cookie: ^0.5.0 eslint: ^8.26.0 eslint-config-prettier: ^8.1.0 @@ -56,8 +54,6 @@ devDependencies: '@types/node': 18.11.7 '@typescript-eslint/eslint-plugin': 5.41.0_huremdigmcnkianavgfk3x6iou '@typescript-eslint/parser': 5.41.0_wyqvi574yv7oiwfeinomdzmc3m - carbon-components-svelte: 0.70.12 - carbon-icons-svelte: 11.4.0 eslint: 8.26.0 eslint-config-prettier: 8.5.0_eslint@8.26.0 eslint-plugin-svelte3: 4.0.0_l6ppk7eerpslmlsqymzic46t24 @@ -650,16 +646,6 @@ packages: engines: {node: '>=6'} dev: true - /carbon-components-svelte/0.70.12: - resolution: {integrity: sha512-CSVXWr53kSP/6ITaLxcCd/7rZStM3Mgl1tXedlwgvkViqDgCexWzSsK1u2RoSptmqL5IggUehabcETD6tm5EFg==} - dependencies: - flatpickr: 4.6.9 - dev: true - - /carbon-icons-svelte/11.4.0: - resolution: {integrity: sha512-p/llZde2kP2BI9SOqM+QFKGfQnYrW+4dVxF1rAYriEADXDsjt9EYlh+KpQ5qf4JpXAq+e2+TB/r/lIG1xdUbAQ==} - dev: true - /chalk/4.1.2: resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==} engines: {node: '>=10'} @@ -1462,10 +1448,6 @@ packages: rimraf: 3.0.2 dev: true - /flatpickr/4.6.9: - resolution: {integrity: sha512-F0azNNi8foVWKSF+8X+ZJzz8r9sE1G4hl06RyceIaLvyltKvDl6vqk9Lm/6AUUCi5HWaIjiUbk7UpeE/fOXOpw==} - dev: true - /flatted/3.2.7: resolution: {integrity: sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==} dev: true diff --git a/src/lib/components/dialog/RemoveCollectionDialog.svelte b/src/lib/components/dialog/RemoveCollectionDialog.svelte index 4045308..e6f090f 100644 --- a/src/lib/components/dialog/RemoveCollectionDialog.svelte +++ b/src/lib/components/dialog/RemoveCollectionDialog.svelte @@ -1,82 +1,87 @@ { - boredState.update((n) => ({ ...n, dialog: { isOpen: false } })); - }} - static + open={isOpen} + on:close={() => { + boredState.update((n) => ({ ...n, dialog: { isOpen: false } })); + }} + static > -
- -
- Remove from collection - Are you sure you want to remove from your collection? +
+ +
+ Remove from collection + Are you sure you want to remove from your collection? - -
-
+ +
+
diff --git a/src/lib/components/game/index.svelte b/src/lib/components/game/index.svelte index 4ee00f8..ec63268 100644 --- a/src/lib/components/game/index.svelte +++ b/src/lib/components/game/index.svelte @@ -1,112 +1,119 @@
-
-

{game.name}

- - {`Image - -
+
+

{game.name}

+ + {`Image + +
- {#if !minimal} -
-

{game.year_published}

-

{game.players} {game.max_players === 1 ? 'player' : 'players'}

-

{game.playtime} minutes

-

Minimum Age: {game.min_age}

- View Game - {#if detailed} -
{@html game.description}
- {/if} -
- {/if} - {#if existsInCollection} - - {:else} - - {/if} + {#if !minimal} +
+

{game.year_published}

+

{game.players} {game.max_players === 1 ? 'player' : 'players'}

+

{game.playtime} minutes

+

Minimum Age: {game.min_age}

+ View Game + {#if detailed} +
{@html game.description}
+ {/if} +
+ {/if} + {#if existsInCollection} + + {:else} + + {/if}
diff --git a/src/lib/components/preferences/gameCollection.svelte b/src/lib/components/preferences/gameCollection.svelte index c10dea9..8b805e3 100644 --- a/src/lib/components/preferences/gameCollection.svelte +++ b/src/lib/components/preferences/gameCollection.svelte @@ -1,57 +1,77 @@
-
- Your Collection -
-
- - -
+
+ Your Collection +
+
+ + + +
- diff --git a/src/lib/components/preferences/profile.svelte b/src/lib/components/preferences/profile.svelte index 919175f..0f2c35c 100644 --- a/src/lib/components/preferences/profile.svelte +++ b/src/lib/components/preferences/profile.svelte @@ -1,136 +1,146 @@
- - - - + + + + - {#if open} -
- -
- - - - + {#if open} +
+ +
+ + + + - Preferences + Preferences -
- - -
-
-
-
- {/if} - +
+ + +
+
+
+
+ {/if} +
diff --git a/src/lib/components/search/advancedSearch/index.svelte b/src/lib/components/search/advancedSearch/index.svelte index 283a2b3..4204a19 100644 --- a/src/lib/components/search/advancedSearch/index.svelte +++ b/src/lib/components/search/advancedSearch/index.svelte @@ -1,4 +1,5 @@ - {game?.name} | Bored Game + {game?.name} | Bored Game

{game?.name}

-
- - {`Image - -
-
-

Year Published: {game?.year_published}

-

Players: {game.players} {game.max_players === 1 ? 'player' : 'players'}

-

Playtime: {game.playtime} minutes

-

Minimum Age: {game.min_age}

-

Price: ${game?.price}

- Board Game Atlas Link - {#if existsInCollection} - - {:else} - - {/if} -
+
+ + {`Image + +
+
+

Year Published: {game?.year_published}

+

Players: {game.players} {game.max_players === 1 ? 'player' : 'players'}

+

Playtime: {game.playtime} minutes

+

Minimum Age: {game.min_age}

+ {#if +game?.price !== 0.0} +

Price: ${game?.price}

+ {/if} + Board Game Atlas Link + {#if existsInCollection} + + {:else} + + {/if} +
{#if firstParagraphEnd > 0} -
- - {@html game?.description?.substring(0, firstParagraphEnd)} - - {#if game?.description?.substring(firstParagraphEnd + 1) !== ''} - {#if seeMore} - - {@html game?.description?.substring(firstParagraphEnd + 1)} - - {/if} - - {/if} -
+
+ + {@html game?.description?.substring(0, firstParagraphEnd)} + + {#if game?.description?.substring(firstParagraphEnd + 1) !== ''} + {#if seeMore} + + {@html game?.description?.substring(firstParagraphEnd + 1)} + + {/if} + + {/if} +
{:else} -
- - {@html game?.description} - -
+
+ + {@html game?.description} + +
{/if}