diff --git a/sophora-components/src/routes/highlight-cards/+page.svelte b/sophora-components/src/routes/highlight-cards/+page.svelte index 33344d6b..bb81f610 100644 --- a/sophora-components/src/routes/highlight-cards/+page.svelte +++ b/sophora-components/src/routes/highlight-cards/+page.svelte @@ -1,81 +1,19 @@ -
- - {#each entries as entry} - - {/each} - -
- - +{#if dev} + + + +{:else} + +{/if} diff --git a/sophora-components/src/routes/highlight-cards/HighlightCards.svelte b/sophora-components/src/routes/highlight-cards/HighlightCards.svelte new file mode 100644 index 00000000..cd55ba74 --- /dev/null +++ b/sophora-components/src/routes/highlight-cards/HighlightCards.svelte @@ -0,0 +1,39 @@ + + + +
+ {#each entries as entry} + + {/each} +
+
+ + diff --git a/sophora-components/vite.config.ts b/sophora-components/vite.config.ts index fa174486..bbf8c7da 100644 --- a/sophora-components/vite.config.ts +++ b/sophora-components/vite.config.ts @@ -1,4 +1,3 @@ -import path from 'path'; import { sveltekit } from '@sveltejs/kit/vite'; import { defineConfig } from 'vite';