@@ -22,16 +22,32 @@ 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
+ <span style =" color :#f97844 " >Mad</span >
28
+ <span >Vue</span >
29
+ </span >
30
+ <span class =" vt-tagline" > · The Vue.js Event in Madrid</span >
31
+ <span class =" vt-place" > · Spain</span >
32
+ <span class =" vt-date" > · 29 May 2025</span >
33
+ <a target =" _blank" class =" vt-primary-action"
34
+ href =" https://madvue.es/?utm_source=vuejs&utm_content=top_banner" >
35
+ Register
36
+ </a >
37
+ </p >
26
38
<button @click =" dismiss" >
27
39
<VTIconPlus class =" close" />
28
40
</button >
41
+ <p class =" vt-banner-text vt-coupon" >
42
+ <span class =" vt-text-primary" >Early bird</span > tickets available
43
+ <span class =" vt-text-primary" >Get 30% off</span >
44
+ </p >
29
45
</div >
30
46
</template >
31
47
32
48
<style >
33
49
html :not (.banner-dismissed ) {
34
- --vt-banner-height : 30 px ;
50
+ --vt-banner-height : 60 px ;
35
51
}
36
52
</style >
37
53
@@ -50,12 +66,10 @@ html:not(.banner-dismissed) {
50
66
font-weight : 600 ;
51
67
color : #fff ;
52
68
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
- );
69
+ background : #0f172a ;
70
+ display : flex ;
71
+ justify-content : center ;
72
+ align-items : center ;
59
73
}
60
74
61
75
.banner-dismissed .banner {
@@ -70,7 +84,7 @@ button {
70
84
position : absolute ;
71
85
right : 0 ;
72
86
top : 0 ;
73
- padding : 5 px ;
87
+ padding : 20 px 10 px ;
74
88
}
75
89
76
90
.close {
@@ -79,10 +93,64 @@ button {
79
93
fill : #fff ;
80
94
transform : rotate (45deg );
81
95
}
82
- /*
83
- @media (max-width: 720px) {
84
- a > span {
96
+
97
+ .vt-banner-text {
98
+ color : #fff ;
99
+ font-size : 16px ;
100
+ }
101
+
102
+ .vt-text-primary {
103
+ color : #c4d141 ;
104
+ }
105
+
106
+ .vt-primary-action {
107
+ background : #f97844 ;
108
+ color : #fff ;
109
+ padding : 6px 12px ;
110
+ border-radius : 5px ;
111
+ font-size : 14px ;
112
+ text-decoration : none ;
113
+ margin : 0 20px ;
114
+ font-weight : bold ;
115
+ }
116
+
117
+ .vt-primary-action :hover {
118
+ text-decoration : none ;
119
+ background : #c4d141 ;
120
+ }
121
+
122
+ @media (max-width : 1280px ) {
123
+ .banner .vt-banner-text {
124
+ font-size : 14px ;
125
+ }
126
+
127
+ .vt-tagline {
85
128
display : none ;
86
129
}
87
- } */
88
- </style >
130
+ }
131
+
132
+ @media (max-width : 780px ) {
133
+ .vt-tagline {
134
+ display : none ;
135
+ }
136
+
137
+ .vt-coupon {
138
+ display : none ;
139
+ }
140
+
141
+ .vt-primary-action {
142
+ margin : 0 10px ;
143
+ padding : 5px 8px ;
144
+ }
145
+
146
+ .vt-time-now {
147
+ display : none ;
148
+ }
149
+ }
150
+
151
+ @media (max-width : 560px ) {
152
+ .vt-place {
153
+ display : none ;
154
+ }
155
+ }
156
+ </style >
0 commit comments