forked from vuejs/pinia
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* docs: better mp banner * chore: up deps * docs: wording * docs: update links to vue docs (vuejs#2522) * docs: add links to playground examples in introduction.md (vuejs#2512)
- Loading branch information
1 parent
ee13ccd
commit 77e71ff
Showing
10 changed files
with
2,033 additions
and
809 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,82 @@ | ||
<script setup> | ||
const banners = [ | ||
{ | ||
id: 1, | ||
name: 'Vue.js Certification', | ||
link: 'https://certificates.dev/vuejs?friend=VUEROUTER', | ||
image: '/banners/vuejs-certification.svg', | ||
}, | ||
{ | ||
id: 2, | ||
name: 'Mastering Pinia', | ||
link: 'https://masteringpinia.com', | ||
image: '/banners/mastering-pinia.png', | ||
}, | ||
] | ||
</script> | ||
|
||
<template> | ||
<a | ||
v-for="banner in banners" | ||
:key="banner.id" | ||
:href="banner.link" | ||
class="mp-banner" | ||
href="https://masteringpinia.com?utm=pinia-sidebar" | ||
target="_blank" | ||
:class="`banner_image_${banner.id}`" | ||
> | ||
<img :src="banner.image" :alt="banner.name" /> | ||
<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> | ||
|
||
<a | ||
class="banner" | ||
href="https://certificates.dev/vuejs?friend=VUEROUTER" | ||
target="_blank" | ||
> | ||
<img src="/banners/vuejs-certification.svg" alt="Vue.js Certification" /> | ||
</a> | ||
</template> | ||
|
||
<style scoped> | ||
.banner_image_1 { | ||
padding: 25px 10px 0px 0px; | ||
.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; | ||
} | ||
.banner_image_2 { | ||
padding: 15px 10px 15px 0px; | ||
.mp-banner:hover .extra-info { | ||
opacity: 0.9; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
.vp-doc a[href^="https://play.pinia.vuejs.org"]:before { | ||
content: 'βΆ'; | ||
width: 20px; | ||
height: 20px; | ||
display: inline-block; | ||
border-radius: 10px; | ||
vertical-align: middle; | ||
position: relative; | ||
top: -2px; | ||
border: 2px solid; | ||
margin-right: 8px; | ||
margin-left: 4px; | ||
line-height: 15px; | ||
padding-left: 4.5px; | ||
font-size: 11px; | ||
font-family: system-ui, BlinkMacSystemFont, sans-serif; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.