Skip to content

Commit 3c11a7e

Browse files
committed
docs: format
1 parent 821024b commit 3c11a7e

File tree

2 files changed

+32
-21
lines changed

2 files changed

+32
-21
lines changed

packages/docs/.vitepress/theme/Layout.ts

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,24 @@ export const Layout = defineComponent({
1616
Theme.Layout,
1717
{},
1818
{
19-
'home-hero': ()=>(
20-
h("div", {
21-
class: "vue-school-homepage-link",
22-
}, [
23-
h("a", {
24-
href: "https://vueschool.io/lessons/introduction-to-pinia?friend=vuerouter&utm_source=pinia&utm_medium=link&utm_campaign=homepage",
25-
target:"_blank",
26-
rel:"noopener"
27-
},
28-
[h("span", "Watch Video Introduction")]
29-
)
30-
])
31-
),
19+
'home-hero': () =>
20+
h(
21+
'div',
22+
{
23+
class: 'vue-school-homepage-link',
24+
},
25+
[
26+
h(
27+
'a',
28+
{
29+
href: 'https://vueschool.io/lessons/introduction-to-pinia?friend=vuerouter&utm_source=pinia&utm_medium=link&utm_campaign=homepage',
30+
target: '_blank',
31+
rel: 'noopener',
32+
},
33+
[h('span', 'Watch Video Introduction')]
34+
),
35+
]
36+
),
3237
'sidebar-top': () =>
3338
h('div', { class: 'sponsors sponsors-top' }, [
3439
h('span', 'Platinum Sponsors'),

packages/docs/.vitepress/theme/custom.css

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -211,14 +211,17 @@ code {
211211
width: auto;
212212
max-width: 150px;
213213
}
214-
.vue-school-homepage-link{
215-
text-align: center; margin-top: -40px;
214+
215+
.vue-school-homepage-link {
216+
text-align: center;
217+
margin-top: -40px;
216218
}
217-
.vue-school-homepage-link a{
219+
.vue-school-homepage-link a {
218220
position: relative;
219221
padding-left: 23px;
220222
}
221-
.vue-school-homepage-link a::before{
223+
224+
.vue-school-homepage-link a::before {
222225
content: '';
223226
position: absolute;
224227
display: block;
@@ -229,7 +232,8 @@ code {
229232
border-radius: 50%;
230233
border: 1px solid var(--c-brand);
231234
}
232-
.vue-school-homepage-link a::after{
235+
236+
.vue-school-homepage-link a::after {
233237
content: '';
234238
position: absolute;
235239
display: block;
@@ -241,8 +245,10 @@ code {
241245
border-bottom: 4px solid transparent;
242246
border-left: 7px solid var(--c-brand);
243247
}
244-
@media screen and (max-width: 720px){
245-
.vue-school-homepage-link{
246-
text-align: center; margin-top: -20px;
248+
249+
@media screen and (max-width: 720px) {
250+
.vue-school-homepage-link {
251+
text-align: center;
252+
margin-top: -20px;
247253
}
248254
}

0 commit comments

Comments
 (0)