mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 07:07:35 +01:00
feat(static): Apps page
This commit is contained in:
@@ -179,5 +179,7 @@
|
||||
"businessInquiries": "Business Inquiries",
|
||||
"merchandiseInquiries": "Merchandise Inquiries",
|
||||
"marketingInquiries": "Marketing/Social Media Inquiries",
|
||||
"tweet": "Tweet"
|
||||
"tweet": "Tweet",
|
||||
"apps": "Apps",
|
||||
"notifyAndroidApp": "Want us to notify you when the Android app is ready? Sign up for this mailing list!"
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ router.get('/', i18n.getUserLanguage, locals, function(req, res) {
|
||||
|
||||
// -------- Marketing --------
|
||||
|
||||
var pages = ['front', 'privacy', 'terms', 'api', 'features', 'videos', 'contact', 'plans', 'new-stuff', 'community-guidelines', 'old-news', 'press-kit', 'faq'];
|
||||
var pages = ['front', 'privacy', 'terms', 'api', 'features', 'videos', 'contact', 'plans', 'new-stuff', 'community-guidelines', 'old-news', 'press-kit', 'faq', 'apps'];
|
||||
|
||||
_.each(pages, function(name){
|
||||
router.get('/static/' + name, i18n.getUserLanguage, locals, function(req, res) {
|
||||
|
||||
@@ -8,7 +8,7 @@ footer.footer(ng-controller='FooterCtrl')
|
||||
li
|
||||
a(href='https://itunes.apple.com/us/app/habitica/id994882113?ls=1&mt=8', target='_blank')=env.t('mobileIOS')
|
||||
li
|
||||
a(href='https://play.google.com/store/apps/details?id=com.ocdevel.habitrpg', target='_blank')=env.t('mobileAndroid')
|
||||
a(href='/static/apps')=env.t('mobileAndroid')
|
||||
if env.isStaticPage
|
||||
h4=env.t('language')
|
||||
select(ng-change='changeLang()', ng-model='selectedLanguage', ng-options='language.name for language in languages')
|
||||
|
||||
19
website/views/static/apps.jade
Normal file
19
website/views/static/apps.jade
Normal file
@@ -0,0 +1,19 @@
|
||||
extends ./layout
|
||||
|
||||
block vars
|
||||
- var layoutEnv = env
|
||||
|
||||
block title
|
||||
title Habitica |
|
||||
=env.t('apps')
|
||||
|
||||
block content
|
||||
#ibb-widget-root-994882113
|
||||
script.
|
||||
(function(t,e,i,d){var o=t.getElementById(i),n=t.createElement(e);o.style.height=90;o.style.width=728;o.style.display='inline-block';n.id='ibb-widget',n.setAttribute('src',('https:'===t.location.protocol?'https://':'http://')+d),n.setAttribute('width','728'),n.setAttribute('height','90'),n.setAttribute('frameborder','0'),n.setAttribute('scrolling','no'),o.appendChild(n)})(document,'iframe','ibb-widget-root-994882113',"banners.itunes.apple.com/banner.html?partnerId=&aId=&bt=catalog&t=catalog_white&id=994882113&c=us&l=en-US&w=728&h=90&store=apps");
|
||||
.lead
|
||||
=env.t('notifyAndroidApp')
|
||||
.sendgrid-subscription-widget(data-token='WEc2mXZw9YqemYAJp3a%2FO%2FxyvSWuFCFS2x88bbdMa%2FJjEH%2FlDdpc%2Flbz4PPZZRZMnTmr8kNOzI6ypw%2Br3r55wQ%3D%3D')
|
||||
script.
|
||||
!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?"http":"https";if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://s3.amazonaws.com/subscription-cdn/0.2/widget.min.js";fjs.parentNode.insertBefore(js,fjs);}}(document, "script", "sendgrid-subscription-widget-js");
|
||||
|
||||
Reference in New Issue
Block a user