Skip to content

Commit 69706b2

Browse files
committed
docs: fixes
1 parent 9f3f467 commit 69706b2

File tree

15 files changed

+727
-1126
lines changed

15 files changed

+727
-1126
lines changed

docs/.vitepress/theme/Layout.vue

Lines changed: 0 additions & 72 deletions
This file was deleted.

docs/.vitepress/theme/components/AlgoliaSearchBox.vue

Lines changed: 0 additions & 158 deletions
This file was deleted.
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
<template>
2+
<a
3+
class="mp-banner"
4+
href="https://masteringpinia.com/?utm_source=affiliate&utm_medium=vuerouter&utm_campaign=VueRouter_MP&utm_content=sidebar"
5+
target="_blank"
6+
>
7+
<img width="22" height="22" src="/mp-pinia-logo.svg" />
8+
<span>
9+
<p class="extra-info">Complete guide to</p>
10+
<p class="heading">Mastering Pinia</p>
11+
<p class="extra-info">written by its creator</p>
12+
</span>
13+
</a>
14+
</template>
15+
16+
<style scoped>
17+
.banner {
18+
margin-bottom: 0.5rem;
19+
}
20+
21+
.mp-banner {
22+
margin: 1rem 0;
23+
padding: 0.4rem 0;
24+
border-radius: 14px;
25+
position: relative;
26+
font-size: 0.9rem;
27+
font-weight: 700;
28+
line-height: 1.1rem;
29+
display: flex;
30+
align-items: center;
31+
justify-content: center;
32+
width: 100%;
33+
gap: 1rem;
34+
background-color: var(--vp-c-bg-alt);
35+
border: 2px solid var(--vp-c-bg-alt);
36+
transition: border-color 0.5s;
37+
}
38+
39+
.mp-banner:hover {
40+
border: 2px solid var(--vp-c-brand-1);
41+
}
42+
43+
.mp-banner img {
44+
transition: transform 0.5s;
45+
transform: scale(1.25);
46+
}
47+
.mp-banner:hover img {
48+
transform: scale(1.75);
49+
}
50+
51+
.mp-banner .extra-info {
52+
color: var(--vp-c-text-1);
53+
opacity: 0;
54+
font-size: 0.7rem;
55+
padding-left: 0.1rem;
56+
transition: opacity 0.5s;
57+
}
58+
59+
.mp-banner .heading {
60+
background-image: linear-gradient(
61+
120deg,
62+
var(--vp-c-brand-3) 16%,
63+
var(--vp-c-brand-2),
64+
var(--vp-c-brand-1)
65+
);
66+
background-clip: text;
67+
-webkit-background-clip: text;
68+
-webkit-text-fill-color: transparent;
69+
}
70+
71+
.mp-banner:hover .extra-info {
72+
opacity: 0.9;
73+
}
74+
</style>

0 commit comments

Comments
 (0)