diff --git a/package.json b/package.json index dfa4ac4..81b9d88 100644 --- a/package.json +++ b/package.json @@ -38,6 +38,7 @@ "downloadjs": "1.4.7", "jszip": "3.10.1", "lucide-svelte": "0.314.0", + "mode-watcher": "0.1.2", "shiki": "0.14.7", "svelte-sonner": "0.3.6", "tailwind-merge": "2.2.1" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index cdd1ff4..ec751c6 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -29,6 +29,9 @@ dependencies: lucide-svelte: specifier: 0.314.0 version: 0.314.0(svelte@4.2.9) + mode-watcher: + specifier: 0.1.2 + version: 0.1.2(svelte@4.2.9) shiki: specifier: 0.14.7 version: 0.14.7 @@ -2047,6 +2050,14 @@ packages: ufo: 1.3.2 dev: true + /mode-watcher@0.1.2(svelte@4.2.9): + resolution: {integrity: sha512-XTdPCdqC3kqSvB+Q262Kor983YJkkB2Z3vj9uqg5IqKQpOdiz+xB99Jihp8sWbyM67drC7KKp0Nt5FzCypZi2g==} + peerDependencies: + svelte: ^4.0.0 + dependencies: + svelte: 4.2.9 + dev: false + /mri@1.2.0: resolution: {integrity: sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA==} engines: {node: '>=4'} diff --git a/src/components/downloadSvg.svelte b/src/components/downloadSvg.svelte index e347156..72ad344 100644 --- a/src/components/downloadSvg.svelte +++ b/src/components/downloadSvg.svelte @@ -84,7 +84,7 @@ }; -{#if typeof svgInfo.route === 'string'} +{#if typeof svgInfo.route === 'string' && svgInfo.wordmark === undefined} + {#if typeof svgInfo.route === 'string'} +
+ {svgInfo.title} + +
+ {:else} +
+ {svgInfo.title} + - + - -
+ + + {/if} {#if typeof svgInfo.wordmark === 'string' && svgInfo.wordmark !== undefined}
diff --git a/src/components/theme.svelte b/src/components/theme.svelte index d1d3900..cbfb0d3 100644 --- a/src/components/theme.svelte +++ b/src/components/theme.svelte @@ -1,59 +1,12 @@ - - - - -