mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
added static merch page
added lang en .json modified pages.js with the extra merch page
This commit is contained in:
1
common/dist/sprites/habitrpg-shared.css
vendored
1
common/dist/sprites/habitrpg-shared.css
vendored
File diff suppressed because one or more lines are too long
14
common/locales/en/merch.json
Normal file
14
common/locales/en/merch.json
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"merch" : "Merchandise",
|
||||
|
||||
"merch-1-name" : "Teespring",
|
||||
"merch-1-summary" : "Teespring is a platform that makes it easy for anyone to create and sell high-quality products people love, with no cost or risk.",
|
||||
"merch-1-link" : "https://teespring.com/habitica-gryphon-t-shirt",
|
||||
"merch-1-goto" : "Get myself a Habitica T-Shirts",
|
||||
|
||||
"merch-2-name" : "Stickermule",
|
||||
"merch-2-summary" : "Stick proud Melior wherever you (or someone else) need a reminder of both present and future accomplishments!",
|
||||
"merch-2-link" : "https://www.stickermule.com/uk/marketplace/9317-habitica-gryphon-sticker",
|
||||
"merch-2-goto" : "Get myself a Habitica Sticker"
|
||||
|
||||
}
|
||||
@@ -1,71 +0,0 @@
|
||||
@import "nib"
|
||||
|
||||
// Vendor Includes - include first so we can override
|
||||
// Import only styles that do not have urls to images! Include them directly in the page!
|
||||
@import "../bower_components/angular-loading-bar/build/loading-bar.css"
|
||||
@import "./shared.styl"
|
||||
@import "./footer"
|
||||
|
||||
body
|
||||
margin-top: 60px
|
||||
|
||||
#aboutPage
|
||||
iframe
|
||||
margin-bottom: 20px
|
||||
|
||||
.muted i, i.muted
|
||||
opacity:0.5
|
||||
|
||||
#header-play-button
|
||||
margin-right: 15px
|
||||
|
||||
#tagline
|
||||
margin:10px 0 20px 0
|
||||
font-size:40px
|
||||
|
||||
.marketing
|
||||
text-align: center
|
||||
|
||||
.static-old-news
|
||||
h2
|
||||
font-weight: 700
|
||||
font-size: 16px
|
||||
margin-top: 30px
|
||||
text-transform: uppercase
|
||||
h3
|
||||
font-weight: 700
|
||||
font-size: 14px
|
||||
margin-top: 20px
|
||||
.pull-right
|
||||
margin-left: 5px
|
||||
|
||||
#frontpage-play-button
|
||||
//box-shadow: 0 0 40px #494141;
|
||||
display: inline
|
||||
font-size: 20px
|
||||
min-width: 100px
|
||||
height: 50px
|
||||
|
||||
#about-page
|
||||
img
|
||||
box-shadow 0px 0px 10px 5px #888
|
||||
margin 10px
|
||||
max-width 500px
|
||||
|
||||
// Accordion tweaks for FAQ
|
||||
|
||||
a.h2.accordion
|
||||
display: block
|
||||
text-decoration: none
|
||||
|
||||
a.h2.accordion:before
|
||||
font-family: 'Glyphicons Halflings'
|
||||
color: grey
|
||||
content: "\e114"
|
||||
margin-right: 0.5em
|
||||
|
||||
a.h2.accordion.collapsed:before
|
||||
font-family: 'Glyphicons Halflings'
|
||||
color: grey
|
||||
content: "\e080"
|
||||
margin-right: 0.5em
|
||||
BIN
website/public/merch/stickermule-logo.png
Normal file
BIN
website/public/merch/stickermule-logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.6 KiB |
1
website/public/merch/stickermule-logo.svg
Normal file
1
website/public/merch/stickermule-logo.svg
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 5.5 KiB |
BIN
website/public/merch/stickermule.png
Normal file
BIN
website/public/merch/stickermule.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 10 KiB |
BIN
website/public/merch/teespring-logo.png
Normal file
BIN
website/public/merch/teespring-logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 7.5 KiB |
63
website/public/merch/teespring-logo.svg
Normal file
63
website/public/merch/teespring-logo.svg
Normal file
@@ -0,0 +1,63 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Generator: Adobe Illustrator 19.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
viewBox="206.8 158.6 1132.2 280" style="enable-background:new 206.8 158.6 1132.2 280;" xml:space="preserve">
|
||||
<style type="text/css">
|
||||
.st0{fill:#30ABE9;}
|
||||
</style>
|
||||
<path class="st0" d="M500.9,182.9c-0.3-0.1-0.6-0.2-0.8-0.2H500c-1.3-0.3-2.5-0.6-3.7-0.9l0,0h-0.1l0,0l-0.3-0.1l-0.6-0.1l0,0l0,0
|
||||
l0,0h-0.1l0,0l0,0l0,0h-0.1l0,0l0,0l-0.5-0.1l0,0c-10.4-2.4-21.1-4.4-31.8-5.7c-11.1-1.4-22.5-2.3-33.8-2.5c-2.2,0-4.5-0.1-6.7-0.1
|
||||
c-7.1,0-14.2,0.2-21.2,0.7h-0.5l0.1,0.5c1.1,9.2-1.8,18.4-8,25.3c-5.4,6-13.1,9.8-21.1,10.4c-0.8,0.1-1.6,0.1-2.5,0.1
|
||||
c-8,0-15.7-3-21.6-8.4c-4.8-4.4-8.3-10.4-9.7-16.7l-0.1-0.5l-0.4,0.1c-10.6,3-21.2,6.5-31.5,10.6c-10,4-19.9,8.5-29.4,13.5
|
||||
c-4.8,2.5-9.5,5.1-14.1,7.8c-2.4,1.4-4.9,2.9-7.3,4.4c-0.1,0-0.2,0.1-0.4,0.2c-0.5,0.3-1.2,0.8-1.9,1.2c-1.3,0.8-1.5,0.9-1.3,1.3
|
||||
l27.3,60l0.2,0.4l0.4-0.2c9.8-5.7,20-10.9,30.3-15.5c0.7-0.3,1.3-0.6,2-0.9l21.4,89.2l0.1,0.6l0.5-0.3c5.7-3.1,10.4-5.4,15-7.3
|
||||
c5.7-2.3,11-4.2,16.1-5.6c9.5-2.7,19.2-4,29.1-4c1.5,0,3.1,0,4.6,0.1c4.7,0.2,10.7,0.7,16.3,2.9c2.6,1,4.6,2.2,6.1,3.7
|
||||
c1.7,1.7,2.6,4,2.5,6.5c0,5.2-4.1,9.4-7.4,12.1c-2.2,1.7-4.6,3.1-6.4,4.1c-2.3,1.3-4.8,2.4-7.3,3.4c-4.9,2-10.1,3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0.9-0.1-3.2-0.4-4.9-0.7c-1.2-0.2-2.1-0.3-2.4-0.3c-2.8-0.4-5.7-0.7-8.6-0.9c-5.7-0.6-11.5-1-17.3-1.2c-2.9-0.1-5.8-0.2-8.7-0.2
|
||||
c-0.1,0-0.7,0-0.7,0h-0.4v0.4l-3.6,85.5c0,0.2,0.1,0.5,0.5,0.6c0,0,0,0,0.1,0c1.2,0.6,2.4,1.2,3.6,1.8c2.5,1.4,4.7,3,6.5,4.7
|
||||
c0.5,0.4,0.9,0.9,1.3,1.3c0.2,0.2,0.4,0.5,0.6,0.7c0.1,0.1,0.2,0.3,0.3,0.4l0.7,1.4l0.1-1.6l3.8-80.9c11.2,0.6,22.2,1.9,33.6,3.8
|
||||
c1.4,0.2,2.8,0.5,4.3,0.8l0.5,0.1c1.4,0.3,1.4,0.3,1.4,0.3h0.4l0.1-0.4l13.1-64.5C501.9,183.1,501.5,183,500.9,182.9z"/>
|
||||
<g>
|
||||
<path class="st0" d="M522.4,339.3v-53h-15.2V269h15.2v-25.1h20V269H561v17.3h-18.6v48.1c0,6.3,3,11,8.7,11c3.8,0,7.2-1.7,8.7-3.4
|
||||
l4.8,15.2c-3.6,3.2-9.5,5.9-18.6,5.9C530.4,363.1,522.4,354.7,522.4,339.3z"/>
|
||||
<path class="st0" d="M573.3,314.8c0-26.6,19.4-48.1,46.6-48.1c27.5,0,45,20.9,45,49.8v4.9h-70.7c1.5,13.7,11.8,25.3,29.1,25.3
|
||||
c9.1,0,19.6-3.6,26.2-10.3l9.1,13.1c-9.3,8.7-22.8,13.5-37.2,13.5C593.6,363.1,573.3,343.9,573.3,314.8z M619.7,283.1
|
||||
c-16.9,0-24.9,13.1-25.7,24.1h51.7C645.1,296.4,637.7,283.1,619.7,283.1z"/>
|
||||
<path class="st0" d="M679.1,314.8c0-26.6,19.4-48.1,46.6-48.1c27.5,0,45,20.9,45,49.8v4.9H700c1.5,13.7,11.8,25.3,29.1,25.3
|
||||
c9.1,0,19.6-3.6,26.2-10.3l9.1,13.1c-9.3,8.7-22.8,13.5-37.2,13.5C699.5,363.1,679.1,343.9,679.1,314.8z M725.5,283.1
|
||||
c-16.9,0-24.9,13.1-25.7,24.1h51.7C751,296.4,743.5,283.1,725.5,283.1z"/>
|
||||
<path class="st0" d="M782.7,348.6l9.1-14.2c6.5,6.6,19.2,12.7,31,12.7c12,0,18.2-4.9,18.2-12.2c0-18.1-55.5-5.1-55.5-40.5
|
||||
c0-15,12.9-27.7,36.1-27.7c15.6,0,27.4,5.5,35.5,12.7l-8.4,14.1c-5.5-6.1-15.6-11-27.2-11c-10.4,0-16.9,4.9-16.9,11.4
|
||||
c0,16.2,55.5,4,55.5,40.5c0,16.3-13.5,28.7-38.2,28.7C806.2,363.1,792.2,357.9,782.7,348.6z"/>
|
||||
<path class="st0" d="M900.1,348.1v47.7h-20V269h20v12.5c6.8-9.1,17.5-14.8,29.5-14.8c23.8,0,40.7,17.9,40.7,48.1
|
||||
s-16.9,48.3-40.7,48.3C918,363.1,907.7,357.8,900.1,348.1z M949.7,314.8c0-17.9-10.3-30.4-26-30.4c-9.3,0-19,5.3-23.6,12.2v36.3
|
||||
c4.4,6.8,14.3,12.5,23.6,12.5C939.4,345.4,949.7,332.7,949.7,314.8z"/>
|
||||
<path class="st0" d="M990.2,360.8V269h20v13.3c7-8.7,18.1-15.6,29.8-15.6v19.8c-1.7-0.4-3.6-0.6-6.1-0.6c-8.6,0-19.8,5.7-23.8,12.4
|
||||
v62.5H990.2z"/>
|
||||
<path class="st0" d="M1053.8,245.5c0-6.8,5.5-12.4,12.3-12.4c6.8,0,12.4,5.5,12.4,12.4c0,6.8-5.5,12.4-12.4,12.4
|
||||
S1053.8,252.3,1053.8,245.5z M1056.1,360.8V269h20v91.8H1056.1z"/>
|
||||
<path class="st0" d="M1164,360.8v-57.4c0-14.4-7.4-19-18.6-19c-10.1,0-18.8,6.1-23.6,12.2v64.2h-20V269h20v12.4
|
||||
c6.1-7.2,18.1-14.6,32.5-14.6c19.8,0,29.6,10.6,29.6,29.5v64.6L1164,360.8L1164,360.8z"/>
|
||||
<path class="st0" d="M1208.7,384.4l9.3-14.4c7.6,8.6,17.1,11.8,29.3,11.8c13.1,0,27.2-6.1,27.2-25.7v-10.5
|
||||
c-7,9.3-17.5,15.4-29.5,15.4c-23.4,0-40.7-16.9-40.7-47.1c0-29.8,16.9-47.1,40.7-47.1c11.6,0,22,5.1,29.5,15v-12.7h20v87
|
||||
c0,33.1-24.7,42-47.1,42C1231.6,398,1220.1,394.6,1208.7,384.4z M1274.4,331v-34.4c-4.6-6.7-14.2-12.2-23.6-12.2
|
||||
c-16,0-26,11.8-26,29.5c0,17.7,10.1,29.3,26,29.3C1260.1,343.1,1269.8,337.6,1274.4,331z"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 6.3 KiB |
BIN
website/public/merch/teespring.png
Normal file
BIN
website/public/merch/teespring.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 394 KiB |
@@ -18,7 +18,7 @@ router.get('/', i18n.getUserLanguage, locals, function(req, res) {
|
||||
|
||||
// -------- Static Pages --------
|
||||
|
||||
var pages = ['front', 'privacy', 'terms', 'api', 'features', 'videos', 'contact', 'plans', 'new-stuff', 'community-guidelines', 'old-news', 'press-kit', 'faq', 'overview', 'apps'];
|
||||
var pages = ['front', 'privacy', 'terms', 'api', 'features', 'videos', 'contact', 'plans', 'new-stuff', 'community-guidelines', 'old-news', 'press-kit', 'faq', 'overview', 'apps', 'merch'];
|
||||
|
||||
_.each(pages, function(name){
|
||||
router.get('/static/' + name, i18n.getUserLanguage, locals, function(req, res) {
|
||||
|
||||
68
website/views/static/merch.jade
Normal file
68
website/views/static/merch.jade
Normal file
@@ -0,0 +1,68 @@
|
||||
extends ./layout
|
||||
|
||||
block vars
|
||||
- var layoutEnv = env
|
||||
- var merchNumbers = 2 // update the amount of merchandise attributes that are available
|
||||
|
||||
block title
|
||||
title=env.t('merch')
|
||||
|
||||
|
||||
block extraHead
|
||||
style.
|
||||
.merch-block {
|
||||
border: 1px dotted #553889;
|
||||
border-radius: 6px;
|
||||
padding: 15px;
|
||||
}
|
||||
.merch-block:hover {
|
||||
background: #ececec;
|
||||
|
||||
}
|
||||
.merch-header {
|
||||
font-size: 24px;
|
||||
|
||||
}
|
||||
.merch-header img {
|
||||
display: block;
|
||||
max-width: 200px;
|
||||
}
|
||||
.img-con {
|
||||
text-align: center;
|
||||
}
|
||||
.img-con .merch-img {
|
||||
max-width: 350px;
|
||||
padding: 30px 0;
|
||||
}
|
||||
.merch-link {
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
.btn-habitica {
|
||||
background-color: #553889;
|
||||
color: #ffffff;
|
||||
}
|
||||
.btn.btn-habitica:hover {
|
||||
color: #ffffff;
|
||||
background-color: #452d6e;
|
||||
border-color: #342253;
|
||||
}
|
||||
|
||||
block content
|
||||
.row
|
||||
.col-md-12
|
||||
.page-header
|
||||
h3=env.t('merch')
|
||||
|
||||
|
||||
// Merchandise block - START
|
||||
.row
|
||||
- for (var i = 1; i <= merchNumbers; ++i) {
|
||||
.col-lg-6.col-md-6.col-sm-12
|
||||
.merch-block
|
||||
div.merch-header: img(src="/merch/"+env.t('merch-' + i + '-name')+"-logo.png")
|
||||
div.img-con: a(href=env.t('merch-' + i + '-link') target='_blank'): img.img-rendering-auto.merch-img(src="/merch/" + env.t('merch-' + i + '-name') + ".png")
|
||||
p=env.t('merch-' + i + '-summary')
|
||||
a.btn.btn-habitica.merch-link(href=env.t('merch-' + i + '-link') target='_blank')=env.t('merch-' + i + '-goto')
|
||||
-}
|
||||
// Merchandise block - END
|
||||
Reference in New Issue
Block a user