@@ -21,17 +21,31 @@ function dismiss() {
21
21
</script >
22
22
23
23
<template >
24
- <div class =" banner" v-if =" open" >
25
- <a target =" _blank" ></a >
26
- <button @click =" dismiss" >
24
+ <div class =" banner banner-vuejsconf" v-if =" open" >
25
+ <a href =" https://conf.vuejs.de/tickets/?voucher=VUEJS_SPECIAL_OFFER&utm_source=vuejs&utm_medium=referral&utm_campaign=banner-placement&utm_content=banner"
26
+ target =" _blank" >
27
+ <picture >
28
+ <source media =" (min-width:1260px)"
29
+ srcset =" /vuejsde-conf/vuejsdeconf_banner_large.png, /vuejsde-conf/vuejsdeconf_banner_large_2x.png 2x" />
30
+ <source media =" (min-width:970px)"
31
+ srcset =" /vuejsde-conf/vuejsdeconf_banner_medium.png, /vuejsde-conf/vuejsdeconf_banner_medium_2x.png 2x" />
32
+ <source media =" (min-width:576px)"
33
+ srcset =" /vuejsde-conf/vuejsdeconf_banner_small.png, /vuejsde-conf/vuejsdeconf_banner_small_2x.png 2x" />
34
+ <source media =" (min-width:320px)"
35
+ srcset =" /vuejsde-conf/vuejsdeconf_banner_smallest.png, /vuejsde-conf/vuejsdeconf_banner_smallest_2x.png 2x"
36
+ alt =" " />
37
+ <img src =" /vuejsde-conf/vuejsdeconf_banner_smallest_2x.png" alt =" " />
38
+ </picture >
39
+ </a >
40
+ <div class =" close-btn" @click.stop.prevent =" dismiss" >
27
41
<VTIconPlus class =" close" />
28
- </button >
42
+ </div >
29
43
</div >
30
44
</template >
31
45
32
46
<style >
33
47
html :not (.banner-dismissed ) {
34
- --vt-banner-height : 30 px ;
48
+ --vt-banner-height : 72 px ;
35
49
}
36
50
</style >
37
51
@@ -50,12 +64,10 @@ html:not(.banner-dismissed) {
50
64
font-weight : 600 ;
51
65
color : #fff ;
52
66
background-color : var (--vt-c-green );
53
- background : linear-gradient (
54
- 90deg ,
55
- rgba (66 , 184 , 131 , 1 ) 0% ,
56
- rgba (39 , 179 , 137 , 1 ) 19% ,
57
- rgba (100 , 126 , 255 , 1 ) 100%
58
- );
67
+ background : linear-gradient (90deg ,
68
+ rgba (66 , 184 , 131 , 1 ) 0% ,
69
+ rgba (39 , 179 , 137 , 1 ) 19% ,
70
+ rgba (100 , 126 , 255 , 1 ) 100% );
59
71
}
60
72
61
73
.banner-dismissed .banner {
@@ -76,9 +88,28 @@ button {
76
88
.close {
77
89
width : 20px ;
78
90
height : 20px ;
79
- fill : #fff ;
91
+ fill : #000 ;
80
92
transform : rotate (45deg );
81
93
}
94
+
95
+ .banner-vuejsconf {
96
+ background : linear-gradient (90deg , #fff 50% , #6f97c4 50% );
97
+ }
98
+
99
+ .banner-vuejsconf a {
100
+ display : inline-block ;
101
+ margin : 0 auto ;
102
+ }
103
+
104
+ .banner-vuejsconf .close-btn {
105
+ top : 0px ;
106
+ left : 0px ;
107
+ z-index : 99 ;
108
+ position : absolute ;
109
+ border-radius : 50% ;
110
+ cursor : pointer ;
111
+ }
112
+
82
113
/*
83
114
@media (max-width: 720px) {
84
115
a > span {
0 commit comments