File tree Expand file tree Collapse file tree 2 files changed +48
-0
lines changed
packages/docs/.vitepress/theme Expand file tree Collapse file tree 2 files changed +48
-0
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,19 @@ export const Layout = defineComponent({
16
16
Theme . Layout ,
17
17
{ } ,
18
18
{
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
32
'sidebar-top' : ( ) =>
20
33
h ( 'div' , { class : 'sponsors sponsors-top' } , [
21
34
h ( 'span' , 'Platinum Sponsors' ) ,
Original file line number Diff line number Diff line change @@ -211,3 +211,38 @@ code {
211
211
width : auto;
212
212
max-width : 150px ;
213
213
}
214
+ .vue-school-homepage-link {
215
+ text-align : center; margin-top : -40px ;
216
+ }
217
+ .vue-school-homepage-link a {
218
+ position : relative;
219
+ padding-left : 23px ;
220
+ }
221
+ .vue-school-homepage-link a ::before {
222
+ content : '' ;
223
+ position : absolute;
224
+ display : block;
225
+ width : 20px ;
226
+ height : 20px ;
227
+ top : calc (50% - 10px );
228
+ left : -4px ;
229
+ border-radius : 50% ;
230
+ border : 1px solid var (--c-brand );
231
+ }
232
+ .vue-school-homepage-link a ::after {
233
+ content : '' ;
234
+ position : absolute;
235
+ display : block;
236
+ width : 0 ;
237
+ height : 0 ;
238
+ top : calc (50% - 4px );
239
+ left : 4px ;
240
+ border-top : 4px solid transparent;
241
+ border-bottom : 4px solid transparent;
242
+ border-left : 7px solid var (--c-brand );
243
+ }
244
+ @media screen and (max-width : 720px ){
245
+ .vue-school-homepage-link {
246
+ text-align : center; margin-top : -20px ;
247
+ }
248
+ }
You can’t perform that action at this time.
0 commit comments