@@ -22,16 +22,31 @@ function dismiss() {
22
22
23
23
<template >
24
24
<div class =" banner" v-if =" open" >
25
- <a target =" _blank" ></a >
25
+ <p class =" vt-banner-text" >
26
+ <span class =" vt-text-primary" >
27
+ Vueconf.US
28
+ </span >
29
+ <span class =" vt-tagline" > · The official Vue.js conf</span >
30
+ <span class =" vt-place" > · Tampa, USA</span >
31
+ <span class =" vt-date" > · 19-21 May 2025</span >
32
+ <a target =" _blank" class =" vt-primary-action"
33
+ href =" https://vueconf.us/?utm_source=vuejs&utm_content=top_banner" >
34
+ Register Now
35
+ </a >
36
+ </p >
26
37
<button @click =" dismiss" >
27
38
<VTIconPlus class =" close" />
28
39
</button >
40
+ <p class =" vt-banner-text vt-coupon" >
41
+ <span class =" vt-text-primary" >Use code</span > VUEJSDOCS
42
+ <span class =" vt-text-primary" >to get $200 off!</span >
43
+ </p >
29
44
</div >
30
45
</template >
31
46
32
47
<style >
33
48
html :not (.banner-dismissed ) {
34
- --vt-banner-height : 30 px ;
49
+ --vt-banner-height : 60 px ;
35
50
}
36
51
</style >
37
52
@@ -50,12 +65,12 @@ html:not(.banner-dismissed) {
50
65
font-weight : 600 ;
51
66
color : #fff ;
52
67
background-color : var (--vt-c-green );
53
- background : linear-gradient (
54
- 90 deg ,
55
- rgba ( 66 , 184 , 131 , 1 ) 0 % ,
56
- rgba ( 39 , 179 , 137 , 1 ) 19 % ,
57
- rgba ( 100 , 126 , 255 , 1 ) 100 %
58
- );
68
+ background : #0f172a ;
69
+ display : flex ;
70
+ justify-content : center ;
71
+ align-items : center ;
72
+
73
+
59
74
}
60
75
61
76
.banner-dismissed .banner {
@@ -70,7 +85,7 @@ button {
70
85
position : absolute ;
71
86
right : 0 ;
72
87
top : 0 ;
73
- padding : 5 px ;
88
+ padding : 20 px 10 px ;
74
89
}
75
90
76
91
.close {
@@ -79,10 +94,64 @@ button {
79
94
fill : #fff ;
80
95
transform : rotate (45deg );
81
96
}
82
- /*
83
- @media (max-width: 720px) {
84
- a > span {
97
+
98
+ .vt-banner-text {
99
+ color : #fff ;
100
+ font-size : 16px ;
101
+ }
102
+
103
+ .vt-text-primary {
104
+ color : #75c05e ;
105
+ }
106
+
107
+ .vt-primary-action {
108
+ background : #75c05e ;
109
+ color : #121c1a ;
110
+ padding : 8px 15px ;
111
+ border-radius : 5px ;
112
+ font-size : 14px ;
113
+ text-decoration : none ;
114
+ margin : 0 20px ;
115
+ font-weight : bold ;
116
+ }
117
+
118
+ .vt-primary-action :hover {
119
+ text-decoration : none ;
120
+ background : #c4d141 ;
121
+ }
122
+
123
+ @media (max-width : 1280px ) {
124
+ .banner .vt-banner-text {
125
+ font-size : 14px ;
126
+ }
127
+
128
+ .vt-tagline {
85
129
display : none ;
86
130
}
87
- } */
131
+ }
132
+
133
+ @media (max-width : 780px ) {
134
+ .vt-tagline {
135
+ display : none ;
136
+ }
137
+
138
+ .vt-coupon {
139
+ display : none ;
140
+ }
141
+
142
+ .vt-primary-action {
143
+ margin : 0 10px ;
144
+ padding : 5px 8px ;
145
+ }
146
+
147
+ .vt-time-now {
148
+ display : none ;
149
+ }
150
+ }
151
+
152
+ @media (max-width : 560px ) {
153
+ .vt-place {
154
+ display : none ;
155
+ }
156
+ }
88
157
</style >
0 commit comments