File tree 2 files changed +68
-0
lines changed
.vitepress/theme/components
2 files changed +68
-0
lines changed Original file line number Diff line number Diff line change @@ -18,5 +18,70 @@ const sponsors = computed(() => {
18
18
</script >
19
19
20
20
<template >
21
+ <a
22
+ class =" viteconf"
23
+ href =" https://viteconf.org/23/replay?utm=vite-sidebar"
24
+ target =" _blank"
25
+ >
26
+ <img width =" 22" height =" 22" src =" /viteconf.svg" />
27
+ <span >
28
+ <p class =" extra-info" >Beyond Fast</p >
29
+ <p class =" heading" >ViteConf 2023</p >
30
+ <p class =" extra-info" >Watch the replay!</p >
31
+ </span >
32
+ </a >
21
33
<VPDocAsideSponsors v-if =" data" :data =" sponsors" />
22
34
</template >
35
+
36
+ <style >
37
+ .viteconf {
38
+ margin-top : 1rem ;
39
+ margin-bottom : 1rem ;
40
+ border-radius : 14px ;
41
+ padding-top : 0.4rem ;
42
+ padding-bottom : 0.4rem ;
43
+ position : relative ;
44
+ font-size : 0.9rem ;
45
+ font-weight : 700 ;
46
+ line-height : 1.1rem ;
47
+ display : flex ;
48
+ align-items : center ;
49
+ justify-content : center ;
50
+ width : 100% ;
51
+ gap : 1rem ;
52
+ background-color : var (--vp-c-bg-alt );
53
+ border : 2px solid var (--vp-c-bg-alt );
54
+ transition : border-color 0.5s ;
55
+ }
56
+ .viteconf :hover {
57
+ border : 2px solid var (--vp-c-brand-light );
58
+ }
59
+ .viteconf img {
60
+ transition : transform 0.5s ;
61
+ transform : scale (1.25 );
62
+ }
63
+ .viteconf :hover img {
64
+ transform : scale (1.75 );
65
+ }
66
+ .viteconf .heading {
67
+ background-image : linear-gradient (
68
+ 120deg ,
69
+ #b047ff 16% ,
70
+ var (--vp-c-brand-lighter ),
71
+ var (--vp-c-brand-lighter )
72
+ );
73
+ background-clip : text ;
74
+ -webkit-background-clip : text ;
75
+ -webkit-text-fill-color : transparent ;
76
+ }
77
+ .viteconf .extra-info {
78
+ color : var (--vp-c-text-1 );
79
+ opacity : 0 ;
80
+ font-size : 0.7rem ;
81
+ padding-left : 0.1rem ;
82
+ transition : opacity 0.5s ;
83
+ }
84
+ .viteconf :hover .extra-info {
85
+ opacity : 0.9 ;
86
+ }
87
+ </style >
Original file line number Diff line number Diff line change 21
21
- theme : alt
22
22
text : View on GitHub
23
23
link : https://github.com/vitejs/vite
24
+ - theme : brand
25
+ text : 🎉 ViteConf 23!
26
+ link : https://viteconf.org/23/replay?utm=vite-homepage
24
27
25
28
features :
26
29
- icon : 💡
You can’t perform that action at this time.
0 commit comments