Skip to content

Commit 50c6762

Browse files
committed
chore: cleanup
1 parent 8cc7134 commit 50c6762

2 files changed

Lines changed: 32 additions & 5 deletions

File tree

.vitepress/theme/NChartsHome.vue

Lines changed: 31 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -302,18 +302,20 @@ const data: BarChartData = {
302302
v-for="snippet in chartSnippets"
303303
:key="snippet.title"
304304
:href="snippet.link"
305-
class="group block overflow-hidden rounded-2xl border border-slate-200 bg-white transition-all duration-300 hover:-translate-y-1 hover:border-blue-300 hover:shadow-xl dark:border-slate-700 dark:bg-slate-800/50 dark:hover:border-blue-600"
305+
class="group flex flex-col overflow-hidden rounded-2xl border border-slate-200 bg-white shadow-sm transition-all duration-300 hover:-translate-y-1 hover:border-blue-300 hover:shadow-xl dark:border-slate-700 dark:bg-slate-800/50 dark:hover:border-blue-600"
306306
>
307-
<div class="flex items-center justify-between border-b border-slate-100 bg-slate-50 px-4 py-3 dark:border-slate-700 dark:bg-slate-800">
307+
<div class="flex items-center justify-between border-b border-slate-100 bg-gradient-to-r from-slate-50 to-slate-100/80 px-4 py-3 dark:border-slate-700 dark:from-slate-800 dark:to-slate-800/80">
308308
<div class="flex items-center gap-2">
309-
<span class="text-lg">{{ snippet.icon }}</span>
309+
<span class="text-xl">{{ snippet.icon }}</span>
310310
<span class="font-semibold text-slate-700 dark:text-slate-200">{{ snippet.title }}</span>
311311
</div>
312312
<svg class="h-4 w-4 text-slate-400 transition-transform group-hover:translate-x-1 group-hover:text-blue-500" fill="none" viewBox="0 0 24 24" stroke="currentColor">
313313
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7" />
314314
</svg>
315315
</div>
316-
<CodeBlock :code="snippet.code" language="typescript" />
316+
<div class="code-card-wrapper flex-1">
317+
<CodeBlock :code="snippet.code" language="typescript" />
318+
</div>
317319
</a>
318320
</div>
319321

@@ -383,4 +385,29 @@ const data: BarChartData = {
383385
.hero-dot {
384386
filter: drop-shadow(0 0 6px currentColor);
385387
}
388+
389+
/* Code card styling */
390+
.code-card-wrapper {
391+
display: flex;
392+
flex-direction: column;
393+
min-height: 200px;
394+
}
395+
396+
.code-card-wrapper :deep(.code-block) {
397+
flex: 1;
398+
display: flex;
399+
flex-direction: column;
400+
border: none;
401+
border-radius: 0;
402+
}
403+
404+
.code-card-wrapper :deep(.code-block > div:last-child) {
405+
flex: 1;
406+
display: flex;
407+
align-items: flex-start;
408+
}
409+
410+
.code-card-wrapper :deep(.code-block > div:last-child > *) {
411+
width: 100%;
412+
}
386413
</style>

.vitepress/theme/PluginsHome.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ const otherPlugins = plugins.filter(p => !p.featured);
363363
<div class="grid gap-8 p-8 md:grid-cols-2 md:p-12">
364364
<div class="flex flex-col justify-center space-y-6">
365365
<div class="inline-flex w-fit items-center gap-2 rounded-full bg-gradient-to-r from-blue-500/10 to-cyan-500/10 px-4 py-2">
366-
<span class="text-2xl">{{ featuredPlugin.icon }}</span>
366+
<!-- <span class="text-2xl">🏆</span> -->
367367
<span class="font-medium text-blue-600 dark:text-blue-400">Featured Plugin</span>
368368
</div>
369369

0 commit comments

Comments
 (0)