vitepress 0.22.4 → 1.0.0-draft.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client.d.ts +2 -3
- package/dist/client/app/components/ClientOnly.js +1 -1
- package/dist/client/app/index.js +1 -1
- package/dist/client/index.d.ts +5 -0
- package/dist/client/shared.js +1 -0
- package/dist/client/theme-default/Layout.vue +39 -180
- package/dist/client/theme-default/NotFound.vue +9 -8
- package/dist/client/theme-default/components/VPAlgoliaSearchBox.vue +127 -0
- package/dist/client/theme-default/components/VPBackdrop.vue +39 -0
- package/dist/client/theme-default/components/VPBox.vue +59 -0
- package/dist/client/theme-default/components/VPButton.vue +123 -0
- package/dist/client/theme-default/components/VPContent.vue +74 -0
- package/dist/client/theme-default/components/VPDoc.vue +173 -0
- package/dist/client/theme-default/components/VPDocFooter.vue +141 -0
- package/dist/client/theme-default/components/VPDocOutline.vue +108 -0
- package/dist/client/theme-default/components/VPFlyout.vue +149 -0
- package/dist/client/theme-default/components/VPFooter.vue +53 -0
- package/dist/client/theme-default/components/VPHero.vue +144 -0
- package/dist/client/theme-default/components/VPHome.vue +33 -0
- package/dist/client/theme-default/components/VPHomeFeatures.vue +96 -0
- package/dist/client/theme-default/components/VPHomeHero.vue +17 -0
- package/dist/client/theme-default/components/VPHomeSponsors.vue +93 -0
- package/dist/client/theme-default/components/VPLink.vue +37 -0
- package/dist/client/theme-default/components/VPLocalNav.vue +106 -0
- package/dist/client/theme-default/components/VPMenu.vue +79 -0
- package/dist/client/theme-default/components/VPMenuGroup.vue +35 -0
- package/dist/client/theme-default/components/VPMenuLink.vue +30 -0
- package/dist/client/theme-default/components/VPNav.vue +33 -0
- package/dist/client/theme-default/components/VPNavBar.vue +110 -0
- package/dist/client/theme-default/components/VPNavBarAppearance.vue +25 -0
- package/dist/client/theme-default/components/VPNavBarExtra.vue +107 -0
- package/dist/client/theme-default/components/VPNavBarHamburger.vue +79 -0
- package/dist/client/theme-default/components/VPNavBarMenu.vue +29 -0
- package/dist/client/theme-default/components/VPNavBarMenuGroup.vue +18 -0
- package/dist/client/theme-default/components/VPNavBarMenuLink.vue +56 -0
- package/dist/client/theme-default/components/VPNavBarSearch.vue +269 -0
- package/dist/client/theme-default/components/VPNavBarSocialLinks.vue +27 -0
- package/dist/client/theme-default/components/VPNavBarTitle.vue +57 -0
- package/dist/client/theme-default/components/VPNavBarTranslations.vue +74 -0
- package/dist/client/theme-default/components/VPNavScreen.vue +100 -0
- package/dist/client/theme-default/components/VPNavScreenAppearance.vue +33 -0
- package/dist/client/theme-default/components/VPNavScreenMenu.vue +24 -0
- package/dist/client/theme-default/components/VPNavScreenMenuGroup.vue +118 -0
- package/dist/client/theme-default/components/VPNavScreenMenuGroupLink.vue +33 -0
- package/dist/client/theme-default/components/VPNavScreenMenuGroupSection.vue +35 -0
- package/dist/client/theme-default/components/VPNavScreenMenuLink.vue +34 -0
- package/dist/client/theme-default/components/VPNavScreenSocialLinks.vue +14 -0
- package/dist/client/theme-default/components/VPNavScreenTranslations.vue +73 -0
- package/dist/client/theme-default/components/VPPage.vue +5 -0
- package/dist/client/theme-default/components/VPSidebar.vue +118 -0
- package/dist/client/theme-default/components/VPSidebarGroup.vue +44 -0
- package/dist/client/theme-default/components/VPSidebarLink.vue +57 -0
- package/dist/client/theme-default/components/VPSkipLink.vue +72 -0
- package/dist/client/theme-default/components/VPSocialLink.vue +63 -0
- package/dist/client/theme-default/components/VPSocialLinks.vue +27 -0
- package/dist/client/theme-default/components/VPSponsors.vue +77 -0
- package/dist/client/theme-default/components/VPSponsorsGrid.vue +32 -0
- package/dist/client/theme-default/components/VPSwitch.vue +66 -0
- package/dist/client/theme-default/components/VPSwitchAppearance.vue +74 -0
- package/dist/client/theme-default/components/icons/VPIconAlignJustify.vue +8 -0
- package/dist/client/theme-default/components/icons/VPIconAlignLeft.vue +8 -0
- package/dist/client/theme-default/components/icons/VPIconAlignRight.vue +8 -0
- package/dist/client/theme-default/components/icons/{ArrowLeft.vue → VPIconArrowLeft.vue} +0 -0
- package/dist/client/theme-default/components/icons/{ArrowRight.vue → VPIconArrowRight.vue} +0 -0
- package/dist/client/theme-default/components/icons/VPIconChevronDown.vue +5 -0
- package/dist/client/theme-default/components/icons/VPIconChevronLeft.vue +5 -0
- package/dist/client/theme-default/components/icons/VPIconChevronRight.vue +5 -0
- package/dist/client/theme-default/components/icons/VPIconChevronUp.vue +5 -0
- package/dist/client/theme-default/components/icons/VPIconDiscord.vue +5 -0
- package/dist/client/theme-default/components/icons/VPIconEdit.vue +6 -0
- package/dist/client/theme-default/components/icons/VPIconExternalLink.vue +13 -0
- package/dist/client/theme-default/components/icons/VPIconFacebook.vue +5 -0
- package/dist/client/theme-default/components/icons/VPIconGitHub.vue +5 -0
- package/dist/client/theme-default/components/icons/VPIconHeart.vue +5 -0
- package/dist/client/theme-default/components/icons/VPIconInstagram.vue +5 -0
- package/dist/client/theme-default/components/icons/VPIconLanguages.vue +9 -0
- package/dist/client/theme-default/components/icons/VPIconLinkedIn.vue +5 -0
- package/dist/client/theme-default/components/icons/VPIconMoon.vue +5 -0
- package/dist/client/theme-default/components/icons/VPIconMoreHorizontal.vue +7 -0
- package/dist/client/theme-default/components/icons/VPIconPlus.vue +5 -0
- package/dist/client/theme-default/components/icons/VPIconSlack.vue +5 -0
- package/dist/client/theme-default/components/icons/VPIconSun.vue +13 -0
- package/dist/client/theme-default/components/icons/VPIconTwitter.vue +5 -0
- package/dist/client/theme-default/components/icons/VPIconYouTube.vue +5 -0
- package/dist/client/theme-default/composables/edit-link.js +22 -0
- package/dist/client/theme-default/composables/flyout.js +40 -0
- package/dist/client/theme-default/composables/nav.js +27 -1
- package/dist/client/theme-default/composables/outline.js +112 -0
- package/dist/client/theme-default/composables/prev-next.js +18 -0
- package/dist/client/theme-default/composables/sidebar.js +57 -0
- package/dist/client/theme-default/composables/sponsor-grid.js +92 -0
- package/dist/client/theme-default/fonts/inter-cyrillic-ext.woff2 +0 -0
- package/dist/client/theme-default/fonts/inter-cyrillic.woff2 +0 -0
- package/dist/client/theme-default/fonts/inter-greek-ext.woff2 +0 -0
- package/dist/client/theme-default/fonts/inter-greek.woff2 +0 -0
- package/dist/client/theme-default/fonts/inter-latin-ext.woff2 +0 -0
- package/dist/client/theme-default/fonts/inter-latin.woff2 +0 -0
- package/dist/client/theme-default/fonts/inter-vietnamese.woff2 +0 -0
- package/dist/client/theme-default/index.js +8 -4
- package/dist/client/theme-default/styles/base.css +203 -0
- package/dist/client/theme-default/styles/fonts.css +67 -0
- package/dist/client/theme-default/styles/utils.css +9 -0
- package/dist/client/theme-default/styles/vars.css +291 -66
- package/dist/client/theme-default/styles/vp-doc.css +425 -0
- package/dist/client/theme-default/styles/vp-sponsor.css +86 -0
- package/dist/client/theme-default/support/sidebar.js +29 -0
- package/dist/client/theme-default/support/utils.js +62 -0
- package/dist/node/cli.js +3 -8
- package/dist/node/index.d.ts +121 -78
- package/dist/node/index.js +1 -1
- package/dist/node/{serve-3035f99b.js → serve-b5dc02b2.js} +11444 -1417
- package/package.json +24 -18
- package/types/default-theme.d.ts +114 -77
- package/types/shared.d.ts +11 -6
- package/dist/client/theme-default/components/AlgoliaSearchBox.vue +0 -188
- package/dist/client/theme-default/components/BuySellAds.vue +0 -152
- package/dist/client/theme-default/components/CarbonAds.vue +0 -99
- package/dist/client/theme-default/components/EditLink.vue +0 -38
- package/dist/client/theme-default/components/Home.vue +0 -31
- package/dist/client/theme-default/components/HomeFeatures.vue +0 -143
- package/dist/client/theme-default/components/HomeFooter.vue +0 -50
- package/dist/client/theme-default/components/HomeHero.vue +0 -161
- package/dist/client/theme-default/components/LastUpdated.vue +0 -60
- package/dist/client/theme-default/components/NavBar.vue +0 -60
- package/dist/client/theme-default/components/NavBarTitle.vue +0 -41
- package/dist/client/theme-default/components/NavDropdownLink.vue +0 -135
- package/dist/client/theme-default/components/NavDropdownLinkItem.vue +0 -76
- package/dist/client/theme-default/components/NavLink.vue +0 -61
- package/dist/client/theme-default/components/NavLinks.vue +0 -52
- package/dist/client/theme-default/components/NextAndPrevLinks.vue +0 -88
- package/dist/client/theme-default/components/Page.vue +0 -53
- package/dist/client/theme-default/components/PageFooter.vue +0 -44
- package/dist/client/theme-default/components/SideBar.vue +0 -60
- package/dist/client/theme-default/components/SideBarLink.js +0 -68
- package/dist/client/theme-default/components/SideBarLinks.vue +0 -12
- package/dist/client/theme-default/components/ToggleSideBarButton.vue +0 -46
- package/dist/client/theme-default/components/icons/OutboundLink.vue +0 -31
- package/dist/client/theme-default/composables/activeSidebarLink.js +0 -99
- package/dist/client/theme-default/composables/editLink.js +0 -49
- package/dist/client/theme-default/composables/navLink.js +0 -42
- package/dist/client/theme-default/composables/nextAndPrevLinks.js +0 -37
- package/dist/client/theme-default/composables/repo.js +0 -38
- package/dist/client/theme-default/composables/sideBar.js +0 -57
- package/dist/client/theme-default/styles/code.css +0 -299
- package/dist/client/theme-default/styles/custom-blocks.css +0 -76
- package/dist/client/theme-default/styles/layout.css +0 -236
- package/dist/client/theme-default/styles/sidebar-links.css +0 -107
- package/dist/client/theme-default/support/sideBar.js +0 -46
- package/dist/client/theme-default/utils.js +0 -63
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import { onMounted } from 'vue'
|
|
3
|
-
|
|
4
|
-
// global _bsa
|
|
5
|
-
const ID = 'bsa-cpc-script'
|
|
6
|
-
|
|
7
|
-
declare global {
|
|
8
|
-
var _bsa: BSA | undefined
|
|
9
|
-
|
|
10
|
-
interface BSA {
|
|
11
|
-
init(
|
|
12
|
-
name: string,
|
|
13
|
-
code: string,
|
|
14
|
-
placement: string,
|
|
15
|
-
options: {
|
|
16
|
-
target: string
|
|
17
|
-
align: string
|
|
18
|
-
disable_css?: 'true' | 'false'
|
|
19
|
-
}
|
|
20
|
-
): void
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
const { code, placement } = defineProps<{
|
|
25
|
-
code: string
|
|
26
|
-
placement: string
|
|
27
|
-
}>()
|
|
28
|
-
|
|
29
|
-
onMounted(() => {
|
|
30
|
-
if (!document.getElementById(ID)) {
|
|
31
|
-
const s = document.createElement('script')
|
|
32
|
-
|
|
33
|
-
s.id = ID
|
|
34
|
-
s.src = '//m.servedby-buysellads.com/monetization.js'
|
|
35
|
-
|
|
36
|
-
document.head.appendChild(s)
|
|
37
|
-
|
|
38
|
-
s.onload = () => {
|
|
39
|
-
load()
|
|
40
|
-
}
|
|
41
|
-
} else {
|
|
42
|
-
load()
|
|
43
|
-
}
|
|
44
|
-
})
|
|
45
|
-
|
|
46
|
-
function load() {
|
|
47
|
-
if (typeof _bsa !== 'undefined' && _bsa) {
|
|
48
|
-
const parent = document.querySelector('.bsa-cpc')!
|
|
49
|
-
// cleanup any existing ad to avoid them stacking
|
|
50
|
-
parent.innerHTML = ''
|
|
51
|
-
|
|
52
|
-
_bsa.init('default', code, `placement:${placement}`, {
|
|
53
|
-
target: '.bsa-cpc',
|
|
54
|
-
align: 'horizontal',
|
|
55
|
-
disable_css: 'true'
|
|
56
|
-
})
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
</script>
|
|
60
|
-
|
|
61
|
-
<template>
|
|
62
|
-
<div class="buy-sell-ads">
|
|
63
|
-
<div class="bsa-cpc" />
|
|
64
|
-
</div>
|
|
65
|
-
</template>
|
|
66
|
-
|
|
67
|
-
<style scoped>
|
|
68
|
-
.buy-sell-ads {
|
|
69
|
-
margin: 0 auto;
|
|
70
|
-
padding-top: 2rem;
|
|
71
|
-
font-size: 0.85rem;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.bsa-cpc {
|
|
75
|
-
border-radius: 6px;
|
|
76
|
-
background-color: var(--c-bg-accent);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.bsa-cpc ::v-deep(a._default_) {
|
|
80
|
-
display: flex;
|
|
81
|
-
flex-wrap: wrap;
|
|
82
|
-
align-items: flex-start;
|
|
83
|
-
margin-bottom: 20px;
|
|
84
|
-
padding: 12px;
|
|
85
|
-
text-decoration: none;
|
|
86
|
-
line-height: 1.4;
|
|
87
|
-
font-weight: 400;
|
|
88
|
-
color: var(--c-text-light);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
@media (min-width: 512px) {
|
|
92
|
-
.bsa-cpc ::v-deep(a._default_) {
|
|
93
|
-
flex-wrap: nowrap;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.bsa-cpc ::v-deep(.default-ad) {
|
|
98
|
-
display: none;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
.bsa-cpc ::v-deep(a._default_ .default-image) {
|
|
102
|
-
flex-shrink: 0;
|
|
103
|
-
margin-right: 12px;
|
|
104
|
-
width: 24px;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
.bsa-cpc ::v-deep(a._default_ .default-image img) {
|
|
108
|
-
border-radius: 4px;
|
|
109
|
-
height: 24px;
|
|
110
|
-
vertical-align: middle;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.bsa-cpc ::v-deep(._default_::after) {
|
|
114
|
-
border: 1px solid #1c90f3;
|
|
115
|
-
border-radius: 4px;
|
|
116
|
-
margin-top: 8px;
|
|
117
|
-
margin-left: 36px;
|
|
118
|
-
padding: 0 8px;
|
|
119
|
-
line-height: 22px;
|
|
120
|
-
font-size: 0.85em;
|
|
121
|
-
font-weight: 500;
|
|
122
|
-
color: #1c90f3;
|
|
123
|
-
content: 'Sponsored';
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
@media (min-width: 512px) {
|
|
127
|
-
.bsa-cpc ::v-deep(._default_::after) {
|
|
128
|
-
margin-top: 0px;
|
|
129
|
-
margin-left: 12px;
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
.bsa-cpc ::v-deep(.default-text) {
|
|
134
|
-
flex-grow: 1;
|
|
135
|
-
align-self: center;
|
|
136
|
-
width: calc(100% - 36px);
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
@media (min-width: 512px) {
|
|
140
|
-
.bsa-cpc ::v-deep(.default-text) {
|
|
141
|
-
width: auto;
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
.bsa-cpc ::v-deep(.default-title) {
|
|
146
|
-
font-weight: 600;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
.bsa-cpc ::v-deep(.default-description) {
|
|
150
|
-
padding-left: 8px;
|
|
151
|
-
}
|
|
152
|
-
</style>
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import { ref, onMounted } from 'vue'
|
|
3
|
-
|
|
4
|
-
const { code, placement } = defineProps<{
|
|
5
|
-
code: string
|
|
6
|
-
placement: string
|
|
7
|
-
}>()
|
|
8
|
-
|
|
9
|
-
const el = ref()
|
|
10
|
-
|
|
11
|
-
onMounted(() => {
|
|
12
|
-
const s = document.createElement('script')
|
|
13
|
-
s.id = '_carbonads_js'
|
|
14
|
-
s.src = `//cdn.carbonads.com/carbon.js?serve=${code}&placement=${placement}`
|
|
15
|
-
el.value.appendChild(s)
|
|
16
|
-
})
|
|
17
|
-
</script>
|
|
18
|
-
|
|
19
|
-
<template>
|
|
20
|
-
<div class="carbon-ads" ref="el" />
|
|
21
|
-
</template>
|
|
22
|
-
|
|
23
|
-
<style scoped>
|
|
24
|
-
.carbon-ads {
|
|
25
|
-
border-radius: 4px;
|
|
26
|
-
margin: 0 auto;
|
|
27
|
-
padding: 8px;
|
|
28
|
-
max-width: 280px;
|
|
29
|
-
font-size: 0.75rem;
|
|
30
|
-
background-color: var(--c-bg-accent);
|
|
31
|
-
min-height: 105.38px; /* avoid layout shift on mobile */
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.carbon-ads::after {
|
|
35
|
-
clear: both;
|
|
36
|
-
display: block;
|
|
37
|
-
content: '';
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
@media (min-width: 420px) {
|
|
41
|
-
.carbon-ads {
|
|
42
|
-
z-index: 1;
|
|
43
|
-
float: right;
|
|
44
|
-
margin: -8px -8px 24px 24px;
|
|
45
|
-
width: 146px;
|
|
46
|
-
max-width: 100%;
|
|
47
|
-
min-height: 200px;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
@media (min-width: 1400px) {
|
|
52
|
-
.carbon-ads {
|
|
53
|
-
right: 8px;
|
|
54
|
-
float: none;
|
|
55
|
-
margin: 0;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.carbon-ads :deep(.carbon-img) {
|
|
60
|
-
float: left;
|
|
61
|
-
margin-right: 0.75rem;
|
|
62
|
-
max-width: 110px;
|
|
63
|
-
border: 1px solid var(--c-divider);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
@media (min-width: 420px) {
|
|
67
|
-
.carbon-ads :deep(.carbon-img) {
|
|
68
|
-
float: none;
|
|
69
|
-
display: block;
|
|
70
|
-
margin-right: 0;
|
|
71
|
-
max-width: 130px;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.carbon-ads :deep(.carbon-img img) {
|
|
76
|
-
display: block;
|
|
77
|
-
width: 100%;
|
|
78
|
-
height: auto;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
@media (min-width: 420px) {
|
|
82
|
-
.carbon-ads :deep(.carbon-text) {
|
|
83
|
-
padding-top: 8px;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.carbon-ads :deep(.carbon-text) {
|
|
88
|
-
display: block;
|
|
89
|
-
font-weight: 400;
|
|
90
|
-
color: var(--c-text-light);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.carbon-ads :deep(.carbon-poweredby) {
|
|
94
|
-
display: block;
|
|
95
|
-
padding-top: 2px;
|
|
96
|
-
font-weight: 400;
|
|
97
|
-
color: var(--c-text-lighter);
|
|
98
|
-
}
|
|
99
|
-
</style>
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import { useEditLink } from '../composables/editLink'
|
|
3
|
-
import OutboundLink from './icons/OutboundLink.vue'
|
|
4
|
-
|
|
5
|
-
const { url, text } = useEditLink()
|
|
6
|
-
</script>
|
|
7
|
-
|
|
8
|
-
<template>
|
|
9
|
-
<div class="edit-link">
|
|
10
|
-
<a
|
|
11
|
-
v-if="url"
|
|
12
|
-
class="link"
|
|
13
|
-
:href="url"
|
|
14
|
-
target="_blank"
|
|
15
|
-
rel="noopener noreferrer"
|
|
16
|
-
>
|
|
17
|
-
{{ text }} <OutboundLink class="icon" />
|
|
18
|
-
</a>
|
|
19
|
-
</div>
|
|
20
|
-
</template>
|
|
21
|
-
|
|
22
|
-
<style scoped>
|
|
23
|
-
.link {
|
|
24
|
-
display: inline-block;
|
|
25
|
-
font-size: 1rem;
|
|
26
|
-
font-weight: 500;
|
|
27
|
-
color: var(--c-text-light);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.link:hover {
|
|
31
|
-
text-decoration: none;
|
|
32
|
-
color: var(--c-brand);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.icon {
|
|
36
|
-
margin-left: 4px;
|
|
37
|
-
}
|
|
38
|
-
</style>
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import HomeHero from './HomeHero.vue'
|
|
3
|
-
import HomeFeatures from './HomeFeatures.vue'
|
|
4
|
-
import HomeFooter from './HomeFooter.vue'
|
|
5
|
-
</script>
|
|
6
|
-
|
|
7
|
-
<template>
|
|
8
|
-
<main class="home" aria-labelledby="main-title">
|
|
9
|
-
<HomeHero />
|
|
10
|
-
<slot name="hero" />
|
|
11
|
-
<HomeFeatures />
|
|
12
|
-
<div class="home-content">
|
|
13
|
-
<Content />
|
|
14
|
-
</div>
|
|
15
|
-
<slot name="features" />
|
|
16
|
-
<HomeFooter />
|
|
17
|
-
<slot name="footer" />
|
|
18
|
-
</main>
|
|
19
|
-
</template>
|
|
20
|
-
|
|
21
|
-
<style scoped>
|
|
22
|
-
.home {
|
|
23
|
-
padding-top: var(--header-height);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.home-content {
|
|
27
|
-
max-width: 960px;
|
|
28
|
-
margin: 0px auto;
|
|
29
|
-
padding: 0 1.5rem;
|
|
30
|
-
}
|
|
31
|
-
</style>
|
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import { computed } from 'vue'
|
|
3
|
-
import { useData } from 'vitepress'
|
|
4
|
-
|
|
5
|
-
const { frontmatter } = useData()
|
|
6
|
-
|
|
7
|
-
const hasFeatures = computed(() => {
|
|
8
|
-
return frontmatter.value.features && frontmatter.value.features.length > 0
|
|
9
|
-
})
|
|
10
|
-
|
|
11
|
-
interface Feature {
|
|
12
|
-
title?: string
|
|
13
|
-
details?: string
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
const features = computed<Feature[]>(() => {
|
|
17
|
-
return frontmatter.value.features ? frontmatter.value.features : []
|
|
18
|
-
})
|
|
19
|
-
</script>
|
|
20
|
-
|
|
21
|
-
<template>
|
|
22
|
-
<div v-if="hasFeatures" class="home-features">
|
|
23
|
-
<div class="wrapper">
|
|
24
|
-
<div class="container">
|
|
25
|
-
<div class="features">
|
|
26
|
-
<section
|
|
27
|
-
v-for="(feature, index) in features"
|
|
28
|
-
:key="index"
|
|
29
|
-
class="feature"
|
|
30
|
-
>
|
|
31
|
-
<h2 class="title" v-if="feature.title">{{ feature.title }}</h2>
|
|
32
|
-
<p class="details" v-if="feature.details">{{ feature.details }}</p>
|
|
33
|
-
</section>
|
|
34
|
-
</div>
|
|
35
|
-
</div>
|
|
36
|
-
</div>
|
|
37
|
-
</div>
|
|
38
|
-
</template>
|
|
39
|
-
|
|
40
|
-
<style scoped>
|
|
41
|
-
.home-features {
|
|
42
|
-
margin: 0 auto;
|
|
43
|
-
padding: 2.5rem 0 2.75rem;
|
|
44
|
-
max-width: 960px;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.home-hero + .home-features {
|
|
48
|
-
padding-top: 0;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
@media (min-width: 420px) {
|
|
52
|
-
.home-features {
|
|
53
|
-
padding: 3.25rem 0 3.5rem;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.home-hero + .home-features {
|
|
57
|
-
padding-top: 0;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
@media (min-width: 720px) {
|
|
62
|
-
.home-features {
|
|
63
|
-
padding-right: 1.5rem;
|
|
64
|
-
padding-left: 1.5rem;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.wrapper {
|
|
69
|
-
padding: 0 1.5rem;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.home-hero + .home-features .wrapper {
|
|
73
|
-
border-top: 1px solid var(--c-divider);
|
|
74
|
-
padding-top: 2.5rem;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
@media (min-width: 420px) {
|
|
78
|
-
.home-hero + .home-features .wrapper {
|
|
79
|
-
padding-top: 3.25rem;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
@media (min-width: 720px) {
|
|
84
|
-
.wrapper {
|
|
85
|
-
padding-right: 0;
|
|
86
|
-
padding-left: 0;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.container {
|
|
91
|
-
margin: 0 auto;
|
|
92
|
-
max-width: 392px;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
@media (min-width: 720px) {
|
|
96
|
-
.container {
|
|
97
|
-
max-width: 960px;
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
.features {
|
|
102
|
-
display: flex;
|
|
103
|
-
flex-wrap: wrap;
|
|
104
|
-
margin: -20px -24px;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
.feature {
|
|
108
|
-
flex-shrink: 0;
|
|
109
|
-
padding: 20px 24px;
|
|
110
|
-
width: 100%;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
@media (min-width: 720px) {
|
|
114
|
-
.feature {
|
|
115
|
-
width: calc(100% / 3);
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
.title {
|
|
120
|
-
margin: 0;
|
|
121
|
-
border-bottom: 0;
|
|
122
|
-
line-height: 1.4;
|
|
123
|
-
font-size: 1.25rem;
|
|
124
|
-
font-weight: 500;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
@media (min-width: 420px) {
|
|
128
|
-
.title {
|
|
129
|
-
font-size: 1.4rem;
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
.details {
|
|
134
|
-
margin: 0;
|
|
135
|
-
line-height: 1.6;
|
|
136
|
-
font-size: 1rem;
|
|
137
|
-
color: var(--c-text-light);
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
.title + .details {
|
|
141
|
-
padding-top: 0.25rem;
|
|
142
|
-
}
|
|
143
|
-
</style>
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import { useData } from 'vitepress'
|
|
3
|
-
|
|
4
|
-
const { frontmatter } = useData()
|
|
5
|
-
</script>
|
|
6
|
-
|
|
7
|
-
<template>
|
|
8
|
-
<footer v-if="frontmatter.footer" class="footer">
|
|
9
|
-
<div class="container">
|
|
10
|
-
<p class="text">{{ frontmatter.footer }}</p>
|
|
11
|
-
</div>
|
|
12
|
-
</footer>
|
|
13
|
-
</template>
|
|
14
|
-
|
|
15
|
-
<style scoped>
|
|
16
|
-
.footer {
|
|
17
|
-
margin: 0 auto;
|
|
18
|
-
max-width: 960px;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
@media (min-width: 720px) {
|
|
22
|
-
.footer {
|
|
23
|
-
padding: 0 1.5rem;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.container {
|
|
28
|
-
padding: 2rem 1.5rem 2.25rem;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.home-hero + .footer .container,
|
|
32
|
-
.home-features + .footer .container,
|
|
33
|
-
.home-content + .footer .container {
|
|
34
|
-
border-top: 1px solid var(--c-divider);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
@media (min-width: 420px) {
|
|
38
|
-
.container {
|
|
39
|
-
padding: 3rem 1.5rem 3.25rem;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.text {
|
|
44
|
-
margin: 0;
|
|
45
|
-
text-align: center;
|
|
46
|
-
line-height: 1.4;
|
|
47
|
-
font-size: 0.9rem;
|
|
48
|
-
color: var(--c-text-light);
|
|
49
|
-
}
|
|
50
|
-
</style>
|
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import { computed } from 'vue'
|
|
3
|
-
import { useData, withBase } from 'vitepress'
|
|
4
|
-
import NavLink from './NavLink.vue'
|
|
5
|
-
|
|
6
|
-
const { site, frontmatter } = useData()
|
|
7
|
-
|
|
8
|
-
const showHero = computed(() => {
|
|
9
|
-
const { heroImage, heroText, tagline, actionLink, actionText } =
|
|
10
|
-
frontmatter.value
|
|
11
|
-
return heroImage || heroText || tagline || (actionLink && actionText)
|
|
12
|
-
})
|
|
13
|
-
|
|
14
|
-
const heroText = computed(() => frontmatter.value.heroText || site.value.title)
|
|
15
|
-
const tagline = computed(
|
|
16
|
-
() => frontmatter.value.tagline || site.value.description
|
|
17
|
-
)
|
|
18
|
-
</script>
|
|
19
|
-
|
|
20
|
-
<template>
|
|
21
|
-
<header v-if="showHero" class="home-hero">
|
|
22
|
-
<figure v-if="frontmatter.heroImage" class="figure">
|
|
23
|
-
<img
|
|
24
|
-
class="image"
|
|
25
|
-
:src="withBase(frontmatter.heroImage)"
|
|
26
|
-
:alt="frontmatter.heroAlt"
|
|
27
|
-
/>
|
|
28
|
-
</figure>
|
|
29
|
-
|
|
30
|
-
<h1 v-if="heroText" id="main-title" class="title">{{ heroText }}</h1>
|
|
31
|
-
<p v-if="tagline" class="tagline">{{ tagline }}</p>
|
|
32
|
-
|
|
33
|
-
<NavLink
|
|
34
|
-
v-if="frontmatter.actionLink && frontmatter.actionText"
|
|
35
|
-
:item="{ link: frontmatter.actionLink, text: frontmatter.actionText }"
|
|
36
|
-
class="action"
|
|
37
|
-
/>
|
|
38
|
-
|
|
39
|
-
<NavLink
|
|
40
|
-
v-if="frontmatter.altActionLink && frontmatter.altActionText"
|
|
41
|
-
:item="{
|
|
42
|
-
link: frontmatter.altActionLink,
|
|
43
|
-
text: frontmatter.altActionText
|
|
44
|
-
}"
|
|
45
|
-
class="action alt"
|
|
46
|
-
/>
|
|
47
|
-
</header>
|
|
48
|
-
</template>
|
|
49
|
-
|
|
50
|
-
<style scoped>
|
|
51
|
-
.home-hero {
|
|
52
|
-
margin: 2.5rem 0 2.75rem;
|
|
53
|
-
padding: 0 1.5rem;
|
|
54
|
-
text-align: center;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
@media (min-width: 420px) {
|
|
58
|
-
.home-hero {
|
|
59
|
-
margin: 3.5rem 0;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
@media (min-width: 720px) {
|
|
64
|
-
.home-hero {
|
|
65
|
-
margin: 4rem 0 4.25rem;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.figure {
|
|
70
|
-
padding: 0 1.5rem;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.image {
|
|
74
|
-
display: block;
|
|
75
|
-
margin: 0 auto;
|
|
76
|
-
width: auto;
|
|
77
|
-
max-width: 100%;
|
|
78
|
-
max-height: 280px;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.title {
|
|
82
|
-
margin-top: 1.5rem;
|
|
83
|
-
font-size: 2rem;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
@media (min-width: 420px) {
|
|
87
|
-
.title {
|
|
88
|
-
font-size: 3rem;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
@media (min-width: 720px) {
|
|
93
|
-
.title {
|
|
94
|
-
margin-top: 2rem;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.tagline {
|
|
99
|
-
margin: 0;
|
|
100
|
-
margin-top: 0.25rem;
|
|
101
|
-
line-height: 1.3;
|
|
102
|
-
font-size: 1.2rem;
|
|
103
|
-
color: var(--c-text-light);
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
@media (min-width: 420px) {
|
|
107
|
-
.tagline {
|
|
108
|
-
line-height: 1.2;
|
|
109
|
-
font-size: 1.6rem;
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.action {
|
|
114
|
-
margin-top: 1.5rem;
|
|
115
|
-
display: inline-block;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
.action.alt {
|
|
119
|
-
margin-left: 1.5rem;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
@media (min-width: 420px) {
|
|
123
|
-
.action {
|
|
124
|
-
margin-top: 2rem;
|
|
125
|
-
display: inline-block;
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
.action :deep(.item) {
|
|
130
|
-
display: inline-block;
|
|
131
|
-
border-radius: 6px;
|
|
132
|
-
padding: 0 20px;
|
|
133
|
-
line-height: 44px;
|
|
134
|
-
font-size: 1rem;
|
|
135
|
-
font-weight: 500;
|
|
136
|
-
color: var(--c-bg);
|
|
137
|
-
background-color: var(--c-brand);
|
|
138
|
-
border: 2px solid var(--c-brand);
|
|
139
|
-
transition: background-color 0.1s ease;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
.action.alt :deep(.item) {
|
|
143
|
-
background-color: var(--c-bg);
|
|
144
|
-
color: var(--c-brand);
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
.action :deep(.item:hover) {
|
|
148
|
-
text-decoration: none;
|
|
149
|
-
color: var(--c-bg);
|
|
150
|
-
background-color: var(--c-brand-light);
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
@media (min-width: 420px) {
|
|
154
|
-
.action :deep(.item) {
|
|
155
|
-
padding: 0 24px;
|
|
156
|
-
line-height: 52px;
|
|
157
|
-
font-size: 1.2rem;
|
|
158
|
-
font-weight: 500;
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
</style>
|