|
1 | 1 | <template>
|
2 |
| - <a id="vs" href="https://vueschool.io/the-vuejs-master-class/?friend=vuerouter#plans" target="_blank" rel="noreferrer"> |
| 2 | + <a id="vs" href="https://vueschool.io/sales/flashsale21/?friend=vuerouter" target="_blank" rel="noreferrer"> |
3 | 3 | <div class="vs-iso">
|
4 |
| - <img src="/images/vueschool/vs-iso.svg" alt="Vue School Logo"> |
| 4 | + <img src="/images/vueschool/vs-iso.svg" alt="Vue School logo"> |
5 | 5 | </div>
|
6 | 6 | <div class="vs-logo">
|
7 |
| - <img src="/images/vueschool/vs-logo.svg" alt="Vue School Logo"> |
| 7 | + <img src="/images/vueschool/vs-logo.svg" alt="Vue School logo"> |
8 | 8 | </div>
|
9 | 9 | <div class="vs-core">
|
| 10 | + <div class="vs-illustration"> |
| 11 | + <img src="/images/vueschool/vs-backpack.svg" alt="backpack illustration"> |
| 12 | + </div> |
10 | 13 | <div class="vs-slogan">
|
11 |
| - <div class="vs-slogan-up"> |
12 |
| - LEARN VUE AT VUE SCHOOL |
13 |
| - </div> |
14 |
| - <div class="vs-slogan-down"> |
15 |
| - Register today and get <strong>20% OFF</strong> |
16 |
| - </div> |
| 14 | + <span class="vs-slogan-main">Flash Sale -</span> Less than <span style="color: #1fdb69">48hrs left</span> to get 20% OFF! |
17 | 15 | </div>
|
18 | 16 | <div class="vs-button">
|
19 |
| - <div class="vs-button-inside"> |
20 |
| - <img src="/images/vueschool/learn-more.svg" alt="Learn More"> |
21 |
| - </div> |
| 17 | + GET OFFER |
22 | 18 | </div>
|
23 | 19 | </div>
|
24 | 20 | <div
|
|
31 | 27 | </template>
|
32 | 28 |
|
33 | 29 | <style>
|
| 30 | +@import url("https://fonts.googleapis.com/css?family=Roboto:400,500"); |
34 | 31 | #vs {
|
| 32 | + text-decoration: none; |
35 | 33 | align-items: center;
|
36 |
| - background-color: #1e204d; |
| 34 | + background-color: #202a5a; |
37 | 35 | background-position: top right;
|
38 | 36 | background-repeat: no-repeat;
|
39 | 37 | background-size: cover;
|
40 | 38 | box-sizing: border-box;
|
41 | 39 | color: #fff;
|
| 40 | + display: none; |
42 | 41 | font-family: 'Roboto', Oxygen, Fira Sans, Helvetica Neue, sans-serif;
|
43 | 42 | justify-content: center;
|
44 | 43 | position: fixed;
|
|
47 | 46 | right: 0;
|
48 | 47 | top: 0;
|
49 | 48 | z-index: 100;
|
50 |
| - background-image: url("/images/vueschool/vs-banner-bg-mobile-2.svg"); |
51 | 49 | height: 3.125rem;
|
52 |
| - display: flex; |
53 | 50 | }
|
54 |
| -
|
55 |
| -#vs:hover { |
56 |
| - text-decoration: none; |
57 |
| -} |
58 |
| -
|
59 | 51 | @media (min-width: 680px) {
|
60 | 52 | #vs {
|
61 | 53 | height: 5rem;
|
62 |
| - background-image: url("/images/vueschool/vs-banner-bg-tablet-2.svg"); |
63 |
| - } |
64 |
| -} |
65 |
| -
|
66 |
| -@media (min-width: 900px) { |
67 |
| - #vs { |
68 |
| - background-image: url("/images/vueschool/vs-banner-bg-desktop-2.svg"); |
69 | 54 | }
|
70 | 55 | }
|
71 |
| -
|
72 |
| -#vs:hover .vs-core .vs-button .vs-button-inside { |
73 |
| - background: linear-gradient(#ed81eb, #d457d0); |
| 56 | +#vs:hover .vs-core .vs-button { |
| 57 | + background-color: #364fde; |
74 | 58 | }
|
75 |
| -
|
76 | 59 | #vs .vs-iso {
|
77 | 60 | position: absolute;
|
78 | 61 | left: 20px;
|
79 | 62 | height: 26px;
|
80 | 63 | }
|
81 |
| -
|
82 | 64 | #vs .vs-iso img {
|
83 | 65 | height: 26px;
|
84 | 66 | }
|
85 |
| -
|
86 | 67 | @media (min-width: 680px) {
|
87 |
| - #vs .vs-iso { |
88 |
| - left: 40px; |
89 |
| - height: 40px; |
90 |
| - } |
91 |
| -
|
92 |
| - #vs .vs-iso img { |
93 |
| - height: 40px; |
94 |
| - } |
95 |
| -} |
96 |
| -
|
97 |
| -@media (min-width: 900px) { |
98 | 68 | #vs .vs-iso {
|
99 | 69 | display: none;
|
100 | 70 | }
|
101 | 71 | }
|
102 |
| -
|
103 | 72 | #vs .vs-logo {
|
104 | 73 | position: absolute;
|
105 | 74 | display: none;
|
106 | 75 | left: 40px;
|
107 | 76 | }
|
108 |
| -
|
109 | 77 | @media (min-width: 900px) {
|
110 | 78 | #vs .vs-logo {
|
111 | 79 | display: block;
|
112 | 80 | }
|
113 | 81 | }
|
114 |
| -
|
115 | 82 | #vs .vs-core {
|
116 | 83 | display: flex;
|
117 | 84 | align-items: center;
|
118 | 85 | }
|
119 |
| -
|
| 86 | +#vs .vs-core .vs-illustration { |
| 87 | + display: none; |
| 88 | +} |
| 89 | +@media (min-width: 680px) { |
| 90 | + #vs .vs-core .vs-illustration { |
| 91 | + display: inline-block; |
| 92 | + margin-right: 8px; |
| 93 | + } |
| 94 | +} |
| 95 | +@media (min-width: 900px) { |
| 96 | + #vs .vs-core .vs-illustration { |
| 97 | + margin-right: 20px; |
| 98 | + } |
| 99 | +} |
120 | 100 | #vs .vs-core .vs-slogan {
|
121 | 101 | text-align: center;
|
122 |
| -} |
123 |
| -
|
124 |
| -#vs .vs-core .vs-slogan .vs-slogan-up { |
125 |
| - color: #47b785; |
126 | 102 | font-size: 14px;
|
127 |
| - font-weight: bold; |
128 | 103 | }
|
129 |
| -
|
130 | 104 | @media (min-width: 680px) {
|
131 |
| - #vs .vs-core .vs-slogan .vs-slogan-up { |
132 |
| - font-size: 18px; |
| 105 | + #vs .vs-core .vs-slogan { |
| 106 | + font-size: 20px; |
133 | 107 | }
|
134 | 108 | }
|
135 |
| -
|
136 |
| -#vs .vs-core .vs-slogan .vs-slogan-down { |
137 |
| - color: #fff; |
138 |
| - font-size: 12px; |
139 |
| - padding-top: 2px; |
| 109 | +@media (min-width: 900px) { |
| 110 | + #vs .vs-core .vs-slogan { |
| 111 | + font-size: 22px; |
| 112 | + } |
| 113 | +} |
| 114 | +#vs .vs-core .vs-slogan .vs-slogan-main { |
| 115 | + font-weight: 500; |
| 116 | + display: none; |
140 | 117 | }
|
141 |
| -
|
142 | 118 | @media (min-width: 680px) {
|
143 |
| - #vs .vs-core .vs-slogan .vs-slogan-down { |
144 |
| - font-size: 16px; |
| 119 | + #vs .vs-core .vs-slogan .vs-slogan-main { |
| 120 | + display: inline; |
145 | 121 | }
|
146 | 122 | }
|
147 |
| -
|
148 |
| -#vs .vs-core .vs-slogan .vs-slogan-down strong { |
149 |
| - color: #fff; |
150 |
| - font-weight: bold; |
151 |
| -} |
152 |
| -
|
153 | 123 | #vs .vs-core .vs-button {
|
154 |
| - margin-left: 43px; |
| 124 | + margin-left: 8px; |
155 | 125 | color: #fff;
|
156 |
| - background: linear-gradient(to bottom, #b349b0, #dc61da); |
| 126 | + background: #667dff; |
157 | 127 | padding: 2px;
|
158 | 128 | border-radius: 40px;
|
159 | 129 | display: none;
|
| 130 | + padding: 17px 24px; |
| 131 | + font-weight: 500; |
160 | 132 | }
|
161 |
| -
|
162 | 133 | @media (min-width: 680px) {
|
163 | 134 | #vs .vs-core .vs-button {
|
164 | 135 | display: inline-block;
|
165 | 136 | }
|
166 | 137 | }
|
167 |
| -
|
168 |
| -#vs .vs-core .vs-button .vs-button-inside { |
169 |
| - border-radius: 40px; |
170 |
| - background: linear-gradient(#dc61da, #b349b0); |
171 |
| - transition: all 0.25s ease-in; |
172 |
| - padding: 12px 24px 8px; |
173 |
| - line-height: 0; |
174 |
| -} |
175 |
| -
|
176 |
| -@media (min-width: 680px) { |
177 |
| - #vs .vs-core .vs-button .vs-button-inside { |
178 |
| - padding: 12px 24px 8px; |
| 138 | +@media (min-width: 900px) { |
| 139 | + #vs .vs-core .vs-button { |
| 140 | + margin-left: 20px; |
179 | 141 | }
|
180 | 142 | }
|
181 |
| -
|
182 |
| -#vs .vs-core .vs-button.vs-button-alt { |
183 |
| - background: linear-gradient(to bottom, #ffcc38, #ffd13d); |
184 |
| -} |
185 |
| -
|
186 |
| -#vs .vs-core .vs-button.vs-button-alt .vs-button-inside { |
187 |
| - background: linear-gradient(to bottom, #ffe24f, #ffa40e); |
188 |
| -} |
189 |
| -
|
190 | 143 | #vs .vs-close {
|
191 | 144 | right: 10px;
|
192 | 145 | position: absolute;
|
193 | 146 | padding: 10px;
|
194 | 147 | }
|
195 |
| -
|
196 | 148 | @media (min-width: 680px) {
|
| 149 | + #vs .vs-close { |
| 150 | + right: 0px; |
| 151 | + } |
| 152 | +} |
| 153 | +@media (min-width: 900px) { |
197 | 154 | #vs .vs-close {
|
198 | 155 | right: 20px;
|
199 | 156 | }
|
200 | 157 | }
|
201 |
| -
|
202 | 158 | #vs .vs-close:hover {
|
203 | 159 | color: #56d8ff;
|
204 | 160 | }
|
|
0 commit comments