Skip to content

Commit 3bc564b

Browse files
committed
feat: preload slides
1 parent 762bf13 commit 3bc564b

File tree

4 files changed

+13
-6
lines changed

4 files changed

+13
-6
lines changed

docs/.vitepress/config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ module.exports = {
134134
'/guide/': slidebars,
135135
'/themes/': slidebars,
136136
'/custom/': slidebars,
137+
'/builtin/': slidebars,
137138
'/': slidebars,
138139
},
139140
},

docs/.vitepress/theme/components/HomeHero.vue

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,15 @@
1717
<NavLink
1818
v-if="hasAction"
1919
:item="{ link: data.actionLink, text: data.actionText }"
20-
class="action mx-2 rounded-tr-4xl rounded-tl-2xl rounded-br-2xl rounded-bl-3xl"
20+
class="action mx-2"
21+
rounded="tr-4xl tl-2xl br-2xl bl-3xl"
2122
/>
2223

2324
<NavLink
2425
v-if="hasAltAction"
2526
:item="{ link: data.altActionLink, text: data.altActionText }"
26-
class="action alt mx-2 rounded-tr-2xl rounded-tl-3xl rounded-br-4xl rounded-bl-4xl"
27+
class="action alt mx-2"
28+
rounded="tr-2xl tl-3xl br-4xl bl-4xl"
2729
/>
2830

2931
<div class="mt-5 flex">
@@ -61,7 +63,7 @@ const showHero = computed(() => {
6163
})
6264
</script>
6365

64-
<style scoped>
66+
<style scoped lang="postcss">
6567
.home-hero {
6668
margin: 0rem 0 2.75rem;
6769
padding: 3rem 1.5rem;
@@ -134,8 +136,8 @@ const showHero = computed(() => {
134136
line-height: 40px;
135137
border: 0;
136138
color: #ffffff;
137-
background-color: var(--c-brand);
138139
transition: background-color 0.1s ease;
140+
@apply bg-primary cursor-pointer;
139141
}
140142
141143
.action :deep(.item) {
@@ -151,6 +153,10 @@ const showHero = computed(() => {
151153
color: #ffffff;
152154
}
153155
156+
.action:hover {
157+
@apply bg-primary-deep;
158+
}
159+
154160
.action.alt {
155161
background-color: #476582;
156162
}

docs/custom/config-windicss.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Since Markdown naturally supports embedded HTML markups. You can style your cont
1313
</div>
1414
```
1515

16-
## Configure Windi CSS
16+
## Configurations
1717

1818
To configure the Windi CSS configuration, you will need to extend it by
1919

packages/client/internals/SlidesOverview.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const cardWidth = computed(() => {
3535

3636
<template>
3737
<div
38-
v-if="value"
38+
v-show="value"
3939
class="slides-overview bg-main !bg-opacity-75 p-16 overflow-y-auto"
4040
>
4141
<div

0 commit comments

Comments
 (0)