mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Merge pull request #1073 from sharelatex/spd-bonus-page-ui
Add links and update UI for Bonus page GitOrigin-RevId: e993d4b7dc59f5ea145892e9cddb87f2193ae013
This commit is contained in:
parent
b1bda995a6
commit
c18ca779ba
3 changed files with 50 additions and 48 deletions
|
@ -129,10 +129,9 @@
|
||||||
p.small #{translate("on_free_sl")}
|
p.small #{translate("on_free_sl")}
|
||||||
p
|
p
|
||||||
a(href="/user/subscription/plans").btn.btn-primary #{translate("upgrade")}
|
a(href="/user/subscription/plans").btn.btn-primary #{translate("upgrade")}
|
||||||
if (!settings.overleaf)
|
p.small.text-centered
|
||||||
p.small.text-centered
|
| #{translate("or_unlock_features_bonus")}
|
||||||
| #{translate("or_unlock_features_bonus")}
|
a(href="/user/bonus") #{translate("sharing_sl")} .
|
||||||
a(href="/user/bonus") #{translate("sharing_sl")} .
|
|
||||||
|
|
||||||
|
|
||||||
script.
|
script.
|
||||||
|
|
|
@ -24,27 +24,34 @@ block content
|
||||||
.row
|
.row
|
||||||
.col-md-8.col-md-offset-2.bonus-banner
|
.col-md-8.col-md-offset-2.bonus-banner
|
||||||
.title
|
.title
|
||||||
a(href='https://twitter.com/share?text=is%20trying%20out%20the%20online%20LaTeX%20Editor%20ShareLaTeX&url='+encodeURIComponent(buildReferalUrl("t"))+'&counturl=https://www.sharelatex.com', target="_blank").twitter Tweet
|
a(href='https://twitter.com/share?text='+encodeURIComponent(translate("bonus_twitter_share_text"))+'&url='+encodeURIComponent(buildReferalUrl("t"))+'&counturl='+settings.social.twitter.counturl, target="_blank").twitter
|
||||||
|
i.fa.fa-fw.fa-2x.fa-twitter(aria-hidden)
|
||||||
|
|
|
||||||
|
| Tweet
|
||||||
|
|
||||||
.row
|
.row
|
||||||
.col-md-8.col-md-offset-2.bonus-banner
|
.col-md-8.col-md-offset-2.bonus-banner
|
||||||
.title
|
.title
|
||||||
a(href='#', onclick='postToFeed(); return false;').facebook #{translate("post_on_facebook")}
|
a(href='#', onclick='postToFeed(); return false;').facebook
|
||||||
|
i.fa.fa-fw.fa-2x.fa-facebook-square(aria-hidden)
|
||||||
|
|
|
||||||
|
| #{translate("post_on_facebook")}
|
||||||
|
|
||||||
.row
|
.row
|
||||||
.col-md-8.col-md-offset-2.bonus-banner
|
.col-md-8.col-md-offset-2.bonus-banner
|
||||||
.title
|
.title
|
||||||
a(href="https://plus.google.com/share?url="+encodeURIComponent(buildReferalUrl('gp')), onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;").google-plus #{translate("share_us_on_googleplus")}
|
a(href='mailto:?subject='+encodeURIComponent(translate("bonus_email_share_header"))+'&body='+encodeURIComponent(translate("bonus_email_share_body")+' ')+encodeURIComponent(buildReferalUrl("e")), title='Share by Email').email
|
||||||
|
i.fa.fa-fw.fa-2x.fa-envelope-open-o(aria-hidden)
|
||||||
.row
|
|
|
||||||
.col-md-8.col-md-offset-2.bonus-banner
|
| #{translate("email_us_to_your_friends")}
|
||||||
.title
|
|
||||||
a(href='mailto:?subject=Online LaTeX editor you may like &body=Hey, I have been using the online LaTeX editor ShareLaTeX recently and thought you might like to check it out. '+encodeURIComponent(buildReferalUrl("e")), title='Share by Email').email #{translate("email_us_to_your_friends")}
|
|
||||||
|
|
||||||
.row
|
.row
|
||||||
.col-md-8.col-md-offset-2.bonus-banner
|
.col-md-8.col-md-offset-2.bonus-banner
|
||||||
.title
|
.title
|
||||||
a(href='#link-modal', data-toggle="modal", ng-click="openLinkToUsModal()").link #{translate("link_to_us")}
|
a(href='#link-modal', data-toggle="modal", ng-click="openLinkToUsModal()").link
|
||||||
|
i.fa.fa-fw.fa-2x.fa-globe(aria-hidden)
|
||||||
|
|
|
||||||
|
| #{translate("link_to_us")}
|
||||||
|
|
||||||
.row
|
.row
|
||||||
.col-md-10.col-md-offset-1.bonus-banner
|
.col-md-10.col-md-offset-1.bonus-banner
|
||||||
|
@ -100,7 +107,7 @@ block content
|
||||||
p #{translate("can_link_to_sl_with_html")}
|
p #{translate("can_link_to_sl_with_html")}
|
||||||
p
|
p
|
||||||
textarea.col-md-12(readonly=true)
|
textarea.col-md-12(readonly=true)
|
||||||
<a href="#{buildReferalUrl("d")}">Online LaTeX Editor ShareLaTeX</a>
|
<a href="#{buildReferalUrl("d")}">#{translate("bonus_share_link_text")}</a>
|
||||||
|
|
||||||
p #{translate("thanks")}!
|
p #{translate("thanks")}!
|
||||||
|
|
||||||
|
@ -125,19 +132,19 @@ block content
|
||||||
script(type='text/javascript', src='//platform.twitter.com/widgets.js')
|
script(type='text/javascript', src='//platform.twitter.com/widgets.js')
|
||||||
script(src='https://connect.facebook.net/en_US/all.js')
|
script(src='https://connect.facebook.net/en_US/all.js')
|
||||||
script(type='text/javascript').
|
script(type='text/javascript').
|
||||||
FB.init({appId: "148710621956179", status: true, cookie: true});
|
FB.init({appId: '#{settings.social.facebook.appId}', status: true, cookie: true});
|
||||||
|
|
||||||
function postToFeed() {
|
function postToFeed() {
|
||||||
|
|
||||||
// calling the API ...
|
// calling the API ...
|
||||||
var obj = {
|
var obj = {
|
||||||
method: 'feed',
|
method: 'feed',
|
||||||
redirect_uri: 'https://www.sharelatex.com',
|
redirect_uri: '#{settings.social.facebook.redirectUri}',
|
||||||
link: '!{buildReferalUrl("fb")}',
|
link: '!{buildReferalUrl("fb")}',
|
||||||
picture: 'https://www.sharelatex.com/brand/logo/logosmall.png',
|
picture: '#{settings.social.facebook.picture}',
|
||||||
name: 'ShareLaTeX - Online LaTeX Editor',
|
name: '#{translate("bonus_facebook_name").replace(/'/g, "\\x27")}',
|
||||||
caption: 'Free Unlimited Projects and Compiles',
|
caption: '#{translate("bonus_facebook_caption").replace(/'/g, "\\x27")}',
|
||||||
description: 'ShareLaTeX is a free online LaTeX Editor. Real time collaboration like Google Docs, with Dropbox, history and auto-complete'
|
description: '#{translate("bonus_facebook_description").replace(/'/g, "\\x27")}'
|
||||||
};
|
};
|
||||||
|
|
||||||
function callback(response) {
|
function callback(response) {
|
||||||
|
@ -159,9 +166,6 @@ block content
|
||||||
$(".facebook").click(function() {
|
$(".facebook").click(function() {
|
||||||
ga('send', 'event', 'referal-button', 'clicked', "facebook")
|
ga('send', 'event', 'referal-button', 'clicked', "facebook")
|
||||||
});
|
});
|
||||||
$(".google-plus").click(function() {
|
|
||||||
ga('send', 'event', 'referal-button', 'clicked', "google-plus")
|
|
||||||
});
|
|
||||||
$(".link").click(function() {
|
$(".link").click(function() {
|
||||||
ga('send', 'event', 'referal-button', 'clicked', "direct-link")
|
ga('send', 'event', 'referal-button', 'clicked', "direct-link")
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
@twitter-color : #1DA1F2;
|
||||||
|
@facebook-color : #3B5998;
|
||||||
|
@email-color : #808B9A;
|
||||||
|
@link-to-us-color : #406EB3;
|
||||||
|
|
||||||
.bonus {
|
.bonus {
|
||||||
margin-top: 15px;
|
margin-top: 15px;
|
||||||
.page-header h1 {
|
.page-header h1 {
|
||||||
|
@ -21,41 +26,35 @@
|
||||||
}
|
}
|
||||||
.title {
|
.title {
|
||||||
a {
|
a {
|
||||||
display: block;
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
padding: 20px 62px;
|
padding: 20px;
|
||||||
background-color: white;
|
background-color: white;
|
||||||
border-bottom: 1px solid lighten(@blue, 40%);
|
border-bottom: 1px solid lighten(@blue, 40%);
|
||||||
color: @blue;
|
color: @blue;
|
||||||
&:hover {
|
> i {
|
||||||
background-color: lighten(@blue, 45%);
|
margin-right: 10px;
|
||||||
}
|
}
|
||||||
|
&:hover,
|
||||||
|
&:focus {
|
||||||
|
background-color: lighten(@blue, 45%);
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
a.twitter {
|
a.twitter > i {
|
||||||
background-image: url(/img/social/twitter-32.png);
|
color: @twitter-color;
|
||||||
background-repeat: no-repeat;
|
|
||||||
background-position: 16px center;
|
|
||||||
}
|
}
|
||||||
a.facebook {
|
a.facebook > i {
|
||||||
background-image: url(/img/social/facebook-32.png);
|
color: @facebook-color;
|
||||||
background-repeat: no-repeat;
|
|
||||||
background-position: 16px center;
|
|
||||||
}
|
}
|
||||||
a.email {
|
a.email > i {
|
||||||
background-image: url(/img/social/mail-32.png);
|
color: @email-color;
|
||||||
background-repeat: no-repeat;
|
|
||||||
background-position: 16px center;
|
|
||||||
}
|
}
|
||||||
a.google-plus {
|
a.link > i {
|
||||||
background-image: url(//www.gstatic.com/images/icons/gplus-32.png);
|
color: @link-to-us-color;
|
||||||
background-repeat: no-repeat;
|
|
||||||
background-position: 16px center;
|
|
||||||
}
|
|
||||||
a.link {
|
|
||||||
background-image: url(/img/social/link-32.png);
|
|
||||||
background-repeat: no-repeat;
|
|
||||||
background-position: 16px center;
|
|
||||||
}
|
}
|
||||||
h2.direct-link {
|
h2.direct-link {
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue