Skip to content

Commit 242ab9c

Browse files
committed
remove new label on shop, add conf promo
1 parent 3b47e3c commit 242ab9c

File tree

6 files changed

+28
-9
lines changed

6 files changed

+28
-9
lines changed

themes/vue/layout/layout.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
<%- body %>
6060
<% } %>
6161

62-
<!-- main custom script for sidebars, version selects etc. -->
62+
<!-- main custom script for sidebars, version selects etc. -->
6363
<script src="<%- url_for("/js/css.escape.js") %>"></script>
6464
<script src="<%- url_for("/js/common.js") %>"></script>
6565

themes/vue/layout/partials/ad.ejs

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,22 @@
11
<div id="ad">
2-
<!-- <span>Sponsored By</span><br>
3-
<a href="http://www.thedifferenceengine.io/" target="_blank"
4-
style="background-color: rgba(0,0,0,.85); padding: 10px 0">
5-
<img src="<%- url_for("/images/tde.png") %>">
6-
</a> -->
7-
<script async type="text/javascript" src="//cdn.carbonads.com/carbon.js?zoneid=1673&serve=C6AILKT&placement=vuejs" id="_carbonads_js"></script>
2+
<script>
3+
(function () {
4+
var showConfPromo = Math.random() <= 0.33
5+
if (showConfPromo) {
6+
var c = document.createElement('div')
7+
c.id = 'conf-promo'
8+
c.innerHTML = '<a href="https://conf.vuejs.org" target="_blank">' +
9+
'<img src="/images/conf.png" alt="vueconf">' +
10+
'<span>The first VueConf EU is being held in Wrocław, Poland, June 21-23!</span>'
11+
'</a>'
12+
document.getElementById('ad').appendChild(c)
13+
} else {
14+
var s = document.createElement('script')
15+
s.setAttribute('async', '')
16+
s.src = '//cdn.carbonads.com/carbon.js?zoneid=1673&serve=C6AILKT&placement=vuejs'
17+
s.id = '_carbonads_js'
18+
document.getElementById('ad').appendChild(s)
19+
}
20+
})()
21+
</script>
822
</div>

themes/vue/layout/partials/conf.ejs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<div id="conf-promo">
2+
<a href="https://conf.vuejs.org">
3+
<img src="/images/conf.png" alt="vueconf">
4+
<p>The first VueConf EU is being held in Wrocław, Poland, June 21-23!</p>
5+
</a>
6+
</div>

themes/vue/layout/partials/main_menu.ejs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,4 @@
1010
<%- partial('partials/language_dropdown') %>
1111
<li>
1212
<a href="https://vue.threadless.com" target="_blank" class="nav-link shop">Shop</a>
13-
<span class="new-label">NEW!</span>
1413
</li>

themes/vue/source/css/_header.styl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ body.docs
2020
margin 0
2121
padding 0
2222
position absolute
23-
right 60px
23+
right 30px
2424
top $heading-padding-vertical
2525
height $header-height
2626
line-height $header-height

themes/vue/source/images/conf.png

12.5 KB
Loading

0 commit comments

Comments
 (0)