From 038edfa2ae400fbe4aa0f5539108aa8d59fcaef8 Mon Sep 17 00:00:00 2001 From: pheralb Date: Sat, 20 Apr 2024 23:41:34 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9A=A1=EF=B8=8F=20Remove=20spotlight=20effec?= =?UTF-8?q?t=20to=20improve=20performance?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/cardSpotlight.svelte | 55 ------ src/components/svgCard.svelte | 259 ++++++++++++++-------------- 2 files changed, 130 insertions(+), 184 deletions(-) delete mode 100644 src/components/cardSpotlight.svelte diff --git a/src/components/cardSpotlight.svelte b/src/components/cardSpotlight.svelte deleted file mode 100644 index c812204..0000000 --- a/src/components/cardSpotlight.svelte +++ /dev/null @@ -1,55 +0,0 @@ - - - -
-
- -
diff --git a/src/components/svgCard.svelte b/src/components/svgCard.svelte index 91f859a..45654e7 100644 --- a/src/components/svgCard.svelte +++ b/src/components/svgCard.svelte @@ -1,16 +1,14 @@ - -
- - {#if wordmarkSvg == true} - - {svgInfo.title} - {:else} - {svgInfo.title} - {svgInfo.title} - {/if} - -
-

- {svgInfo.title} -

-
- {#if Array.isArray(svgInfo.category)} - {#each svgInfo.category.sort() as c, index} - {c} - {/each} - {:else} - - {svgInfo.category} - - {/if} -
-
- -
- {#if isInFigma} - - {/if} - - {#if wordmarkSvg} - +
+ + {#if wordmarkSvg == true} + {svgInfo.title} + {svgInfo.title} + {:else} + {svgInfo.title} + {svgInfo.title} + {/if} + +
+

+ {svgInfo.title} +

+
+ {#if Array.isArray(svgInfo.category)} + {#each svgInfo.category.sort() as c, index} + {c} + {/each} {:else} - - {/if} - - { - const dark = document.documentElement.classList.contains('dark'); - return dark; - }} - /> - - - - - {#if svgInfo.wordmark !== undefined} - + + {svgInfo.category} + {/if}
- + +
+ {#if isInFigma} + + {/if} + + {#if wordmarkSvg} + + {:else} + + {/if} + + { + const dark = document.documentElement.classList.contains('dark'); + return dark; + }} + /> + + + + + {#if svgInfo.wordmark !== undefined} + + {/if} +
+