|
| 1 | + |
1 | 2 | <template> |
2 | 3 | <md-content class="ad-manager" id="ad-manager" md-theme="default"> |
3 | 4 | <div id="code-sponsor" class="code-sponsor"> |
4 | 5 | <span class="code-sponsor-header">Vue Material is proudly sponsored by:</span> |
5 | 6 |
|
6 | 7 | <a :href="linkHref" class="code-sponsor-content" target="_blank" rel="noopener"> |
7 | 8 | <strong class="code-sponsor-name">Rollbar</strong> |
8 | | - <span class="code-sponsor-description">Real-time error monitoring, alerting, and analytics for developers 🚀</span> |
| 9 | + <span class="code-sponsor-description">Real-time JavaScript error monitoring, alerting, and analytics for developers 🚀</span> |
9 | 10 | </a> |
10 | 11 |
|
11 | 12 | <img class="code-sponsor-pixel" :src="pixelHref" /> |
|
16 | 17 | <script> |
17 | 18 | const isProd = process.env.NODE_ENV === 'production' |
18 | 19 | const token = 'bb9dade0-0207-4ab0-8c86-d00502d952f5' |
19 | | -
|
20 | 20 | export default { |
21 | 21 | name: 'AdManager', |
22 | 22 | computed: { |
|
36 | 36 |
|
37 | 37 | <style lang="scss" scoped> |
38 | 38 | @import "~vue-material/theme/engine"; |
39 | | -
|
40 | 39 | $ad-responsive-big: 1690px; |
41 | 40 | $ad-responsive-small: 768px; |
42 | | -
|
43 | 41 | @mixin ad-theme ($hue, $color) { |
44 | 42 | .code-sponsor { |
45 | 43 | background: md-get-palette-color(grey, $hue); |
46 | | -
|
47 | 44 | .code-sponsor-header { |
48 | 45 | color: rgba($color, .54); |
49 | 46 | } |
50 | 47 | } |
51 | | -
|
52 | 48 | .code-sponsor-content { |
53 | 49 | color: rgba($color, .7); |
54 | | -
|
55 | 50 | &:hover { |
56 | 51 | color: $color; |
57 | 52 | } |
58 | 53 | } |
59 | 54 | } |
60 | | -
|
61 | 55 | .ad-manager { |
62 | 56 | width: calc(100% + 32px); |
63 | 57 | margin: 0 -16px -16px; |
64 | | -
|
65 | 58 | @media (max-width: $ad-responsive-small) { |
66 | 59 | display: flex; |
67 | 60 | } |
68 | 61 | } |
69 | | -
|
70 | 62 | .code-sponsor { |
71 | 63 | max-width: 175px; |
72 | 64 | margin: 7px 16px 24px 16px; |
|
78 | 70 | z-index: 10; |
79 | 71 | font-size: 12px; |
80 | 72 | line-height: 1.5em; |
81 | | -
|
82 | 73 | @media (min-width: $ad-responsive-big) { |
83 | 74 | margin: 0; |
84 | 75 | position: fixed; |
85 | 76 | right: 16px; |
86 | 77 | bottom: 16px; |
87 | 78 | } |
88 | | -
|
89 | 79 | @media (max-width: $ad-responsive-small) { |
90 | 80 | max-width: none; |
91 | 81 | margin-bottom: 16px; |
92 | 82 | float: none; |
93 | 83 | } |
94 | | -
|
95 | 84 | .splash-container & { |
96 | 85 | @media (max-width: $ad-responsive-big) { |
97 | 86 | max-width: 530px; |
|
102 | 91 | } |
103 | 92 | } |
104 | 93 | } |
105 | | -
|
106 | 94 | .code-sponsor-header { |
107 | 95 | font-size: 11px; |
108 | 96 | line-height: 1.3em; |
109 | 97 | } |
110 | | -
|
111 | 98 | .code-sponsor-content { |
112 | 99 | margin-top: 1em; |
113 | | -
|
114 | 100 | &:hover { |
115 | 101 | text-decoration: none; |
116 | 102 | } |
117 | 103 | } |
118 | | -
|
119 | 104 | .code-sponsor-name, |
120 | 105 | .code-sponsor-description { |
121 | 106 | &:hover { |
122 | 107 | text-decoration: underline; |
123 | 108 | } |
124 | 109 | } |
125 | | -
|
126 | 110 | .code-sponsor-name { |
127 | 111 | margin-bottom: .5em; |
128 | 112 | display: block; |
129 | 113 | font-weight: 600; |
130 | 114 | } |
131 | | -
|
132 | 115 | .code-sponsor-pixel { |
133 | 116 | width: 1px; |
134 | 117 | height: 1px; |
|
139 | 122 | clip: rect(0 0 0 0); |
140 | 123 | border: 0; |
141 | 124 | } |
142 | | -
|
143 | 125 | .main-container { |
144 | 126 | @include ad-theme(200, #000); |
145 | 127 | } |
146 | | -
|
147 | 128 | .splash-container { |
148 | 129 | @media (min-width: $ad-responsive-big) { |
149 | 130 | @include ad-theme(800, #fff); |
|
0 commit comments