File tree 4 files changed +113
-7
lines changed
4 files changed +113
-7
lines changed Original file line number Diff line number Diff line change
1
+ <script setup>
2
+ const banners = [
3
+ {
4
+ id: 1 ,
5
+ name: ' Vue.js Certification' ,
6
+ link: ' https://certificates.dev/vuejs?friend=VUEROUTER' ,
7
+ image: ' /banners/vuejs-certification.svg' ,
8
+ },
9
+ {
10
+ id: 2 ,
11
+ name: ' Mastering Pinia' ,
12
+ link: ' https://masteringpinia.com' ,
13
+ image: ' /banners/mastering-pinia.png' ,
14
+ },
15
+ ]
16
+ </script >
17
+
18
+ <template >
19
+ <a
20
+ v-for =" banner in banners"
21
+ :key =" banner.id"
22
+ :href =" banner.link"
23
+ target =" _blank"
24
+ :class =" `banner_image_${banner.id}`"
25
+ >
26
+ <img :src =" banner.image" :alt =" banner.name" />
27
+ </a >
28
+ </template >
29
+
30
+ <style scoped>
31
+ .banner_image_1 {
32
+ padding : 25px 10px 0px 0px ;
33
+ }
34
+
35
+ .banner_image_2 {
36
+ padding : 15px 10px 15px 0px ;
37
+ }
38
+ </style >
Original file line number Diff line number Diff line change
1
+ import { h } from 'vue'
1
2
import { Theme , useData } from 'vitepress'
2
3
import DefaultTheme from 'vitepress/theme'
3
- // import AsideSponsors from './components/AsideSponsors.vue'
4
+ import AsideSponsors from './components/AsideSponsors.vue'
4
5
// import HomeSponsors from './components/HomeSponsors.vue'
5
6
import './styles/vars.css'
6
7
import './styles/sponsors.css'
@@ -9,12 +10,12 @@ import VueMasteryLogoLink from './components/VueMasteryLogoLink.vue'
9
10
10
11
const theme : Theme = {
11
12
...DefaultTheme ,
12
- // Layout() {
13
- // return h(DefaultTheme.Layout, null, {
14
- // 'home-features-after': () => h(HomeSponsors),
15
- // 'aside-ads-before': () => h(AsideSponsors),
16
- // })
17
- // },
13
+ Layout ( ) {
14
+ return h ( DefaultTheme . Layout , null , {
15
+ // 'home-features-after': () => h(HomeSponsors),
16
+ 'aside-ads-before' : ( ) => h ( AsideSponsors ) ,
17
+ } )
18
+ } ,
18
19
19
20
enhanceApp ( { app } ) {
20
21
app . component ( 'VueSchoolLink' , VueSchoolLink )
You can’t perform that action at this time.
0 commit comments