|
1 | 1 | <template>
|
2 |
| - <a id="vs" href="https://vueschool.io/sales/back-to-school?friend=vuerouter" target="_blank" rel="noreferrer"> |
3 |
| - <div class="vs-iso"> |
4 |
| - <img src="/images/vueschool/vs-iso.svg" alt="Vue School Logo"> |
5 |
| - </div> |
6 |
| - <div class="vs-logo"> |
7 |
| - <img src="/images/vueschool/vs-logo.svg" alt="Vue School Logo"> |
8 |
| - </div> |
| 2 | + <a id="vs" href="https://vueschool.io/sales/blackfriday?friend=vuerouter" target="_blank" rel="noreferrer"> |
9 | 3 | <div class="vs-core">
|
10 |
| - <div class="vs-backpack"> |
11 |
| - <img src="/images/vueschool/vs-backpack.png" alt="Backpack"> |
| 4 | + <div class="vs-logo"> |
| 5 | + <img src="/images/vueschool/vueschool_blackfriday_logo.svg"> |
12 | 6 | </div>
|
13 | 7 | <div class="vs-slogan">
|
14 |
| - Less than <span class="vs-slogan-light">48 hours</span> left for the Vue School offer |
| 8 | + <div class="vs-slogan-subtitle"> |
| 9 | + Access to all Vue Courses at Vue School |
| 10 | + </div> |
| 11 | + <div class="vs-slogan-title"> |
| 12 | + Black Friday <strong>40% OFF</strong> |
| 13 | + </div> |
15 | 14 | </div>
|
16 | 15 | <div class="vs-button">
|
17 |
| - GET ACCESS |
| 16 | + Get Discount |
18 | 17 | </div>
|
19 | 18 | </div>
|
20 |
| - <div |
21 |
| - id="vs-close" |
22 |
| - class="vs-close" |
23 |
| - @click.stop.prevent="$emit('close')"> |
24 |
| - <img src="/images/vueschool/close.svg" alt="Close"> |
| 19 | + <div id="vs-close" class="vs-close" @click.stop.prevent="$emit('close')"> |
| 20 | + <img src="/images/vueschool/vueschool_close.svg" alt="Close"> |
25 | 21 | </div>
|
26 | 22 | </a>
|
27 | 23 | </template>
|
28 | 24 |
|
29 | 25 | <style lang="stylus">
|
30 | 26 | $topBannerHeight ?= 5rem
|
31 |
| -$topBannerHeightMobile ?= 3.125rem |
| 27 | +$topBannerHeightMobile ?= 5rem |
32 | 28 | $navbarHeight ?= 3.6rem
|
33 | 29 | $contentClass = '.theme-default-content'
|
34 | 30 |
|
35 |
| -@import url('https://fonts.googleapis.com/css?family=Roboto') |
| 31 | +@import url('https://fonts.googleapis.com/css?family=Archivo:400,600') |
36 | 32 |
|
37 | 33 | // Banner
|
38 | 34 | #vs
|
39 | 35 | align-items: center
|
40 |
| - background-color: #202A5A |
| 36 | + background-color: #000c19 |
41 | 37 | box-sizing: border-box
|
42 | 38 | color: #fff
|
43 | 39 | display: none
|
44 |
| - font-family 'Roboto', Oxygen, Fira Sans, Helvetica Neue, sans-serif |
| 40 | + font-family 'Inter', Roboto, Oxygen, Fira Sans, Helvetica Neue, sans-serif |
45 | 41 | justify-content: center
|
46 | 42 | position: fixed
|
47 | 43 | padding: 0 10px
|
48 | 44 | left: 0
|
49 | 45 | right: 0
|
50 | 46 | top: 0
|
51 | 47 | z-index: 100
|
| 48 | + line-height: 1 |
52 | 49 | height: $topBannerHeightMobile
|
53 | 50 | @media (min-width: 680px)
|
54 | 51 | height: $topBannerHeight
|
| 52 | + justify-content: center |
| 53 | + background-image: url(/images/vueschool/vueschool_blackfriday_background_tablet.svg) |
| 54 | + @media (min-width: 900px) |
| 55 | + background-image: url(/images/vueschool/vueschool_blackfriday_background_desktop.svg) |
| 56 | +
|
55 | 57 | &:hover
|
56 | 58 | .vs-core
|
57 | 59 | .vs-button
|
58 |
| - background: #f22606 |
59 |
| -
|
60 |
| - .vs-iso |
61 |
| - position: absolute |
62 |
| - left: 20px |
63 |
| - height: 26px |
64 |
| - display: none |
65 |
| - img |
66 |
| - height: 26px |
67 |
| - @media (min-width: 680px) |
68 |
| - display: block |
69 |
| - left: 20px |
70 |
| - height: 40px |
71 |
| - img |
72 |
| - height: 40px |
73 |
| - @media (min-width: 900px) |
74 |
| - display: none |
75 |
| -
|
76 |
| - .vs-logo |
77 |
| - position: absolute |
78 |
| - display: none |
79 |
| - left: 40px |
80 |
| - @media (min-width: 900px) |
81 |
| - display: block |
| 60 | + background: linear-gradient(261deg, #e61463 100%, #db5248 3%) |
82 | 61 |
|
83 | 62 | .vs-core
|
84 | 63 | display: flex
|
85 | 64 | align-items: center
|
86 |
| - margin-right: 20px |
87 |
| - @media (min-width: 680px) |
88 |
| - margin-right: 0 |
89 |
| -
|
90 |
| - .vs-backpack |
91 |
| - margin-right: 6px |
92 |
| - @media (min-width: 680px) |
93 |
| - display: none |
94 |
| - @media (min-width: 900px) |
95 |
| - display: inline-block |
96 |
| - img |
97 |
| - height: 50px |
98 |
| - @media (min-width: 680px) |
99 |
| - height: 74px |
100 | 65 |
|
101 | 66 | .vs-slogan
|
| 67 | + font-family: Archivo |
102 | 68 | color: #FFF
|
103 |
| - font-weight: bold |
104 |
| - font-size: 14px |
105 |
| - text-align: center |
| 69 | + margin-left: 8px |
106 | 70 | @media (min-width: 680px)
|
107 |
| - padding: 0 |
108 |
| - text-align: left |
109 |
| - margin-left: 12px |
110 |
| - font-size: 18px |
111 |
| - > .vs-slogan-light |
112 |
| - color: #ff5338 |
113 |
| - text-align: left |
114 |
| - @media (min-width: 900px) |
115 |
| - text-align: center |
116 |
| - display: inline |
| 71 | + margin-left: 24px |
| 72 | + .vs-slogan-subtitle |
| 73 | + font-size: 12px |
| 74 | + @media (min-width: 680px) |
| 75 | + font-size: 14px |
| 76 | + .vs-slogan-title |
| 77 | + margin-top: 6px |
| 78 | + font-size: 16px |
| 79 | + font-weight: 600 |
| 80 | + @media (min-width: 680px) |
| 81 | + font-size: 18px |
| 82 | + strong |
| 83 | + color: #ffae29 |
| 84 | + font-weight: 600 |
117 | 85 |
|
118 | 86 | .vs-button
|
119 |
| - margin-left: 13px |
120 | 87 | color: #FFF
|
121 |
| - padding: 13px 24px |
122 |
| - border-radius: 40px |
123 |
| - display: none |
124 |
| - background: #ff5338 |
125 |
| - font-weight: bold |
| 88 | + padding: 7px 10px |
| 89 | + border-radius: 4px |
| 90 | + background: linear-gradient(to left, #e61b60, #dd4a4c) |
| 91 | + font-weight: 600 |
| 92 | + font-family: 'Archivo', sans-serif |
| 93 | + white-space: nowrap |
| 94 | + margin-right: 22px |
| 95 | + margin-left: 16px |
| 96 | + @media (min-width: 680px) |
| 97 | + margin-right: 0 |
| 98 | + padding: 8px 24px |
| 99 | + margin-left: 32px |
126 | 100 | @media (min-width: 680px)
|
127 |
| - margin-left: 18px |
128 |
| - display: inline-block |
| 101 | + margin-left: 69px |
129 | 102 |
|
130 | 103 | .vs-close
|
131 |
| - right: 10px |
132 |
| - position: absolute |
133 |
| - padding: 10px |
134 |
| - @media (min-width: 680px) |
135 |
| - right: 20px |
136 |
| - &:hover |
137 |
| - color: #56D8FF |
| 104 | + right: 6px |
| 105 | + position: absolute |
| 106 | + @media (min-width: 680px) |
| 107 | + padding: 10px |
| 108 | + right: 20px |
| 109 | + &:hover |
| 110 | + color: #56D8FF |
138 | 111 |
|
139 | 112 | /************************************/
|
140 | 113 |
|
|
0 commit comments