Skip to content

Commit

Permalink
docs: fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Feb 21, 2024
1 parent 9f3f467 commit 69706b2
Show file tree
Hide file tree
Showing 15 changed files with 727 additions and 1,126 deletions.
72 changes: 0 additions & 72 deletions docs/.vitepress/theme/Layout.vue

This file was deleted.

158 changes: 0 additions & 158 deletions docs/.vitepress/theme/components/AlgoliaSearchBox.vue

This file was deleted.

74 changes: 74 additions & 0 deletions docs/.vitepress/theme/components/AsideSponsors.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
<template>
<a
class="mp-banner"
href="https://masteringpinia.com/?utm_source=affiliate&utm_medium=vuerouter&utm_campaign=VueRouter_MP&utm_content=sidebar"
target="_blank"
>
<img width="22" height="22" src="/mp-pinia-logo.svg" />
<span>
<p class="extra-info">Complete guide to</p>
<p class="heading">Mastering Pinia</p>
<p class="extra-info">written by its creator</p>
</span>
</a>
</template>

<style scoped>
.banner {
margin-bottom: 0.5rem;
}
.mp-banner {
margin: 1rem 0;
padding: 0.4rem 0;
border-radius: 14px;
position: relative;
font-size: 0.9rem;
font-weight: 700;
line-height: 1.1rem;
display: flex;
align-items: center;
justify-content: center;
width: 100%;
gap: 1rem;
background-color: var(--vp-c-bg-alt);
border: 2px solid var(--vp-c-bg-alt);
transition: border-color 0.5s;
}
.mp-banner:hover {
border: 2px solid var(--vp-c-brand-1);
}
.mp-banner img {
transition: transform 0.5s;
transform: scale(1.25);
}
.mp-banner:hover img {
transform: scale(1.75);
}
.mp-banner .extra-info {
color: var(--vp-c-text-1);
opacity: 0;
font-size: 0.7rem;
padding-left: 0.1rem;
transition: opacity 0.5s;
}
.mp-banner .heading {
background-image: linear-gradient(
120deg,
var(--vp-c-brand-3) 16%,
var(--vp-c-brand-2),
var(--vp-c-brand-1)
);
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.mp-banner:hover .extra-info {
opacity: 0.9;
}
</style>
Loading

0 comments on commit 69706b2

Please sign in to comment.