chore(news): Bailey

This commit is contained in:
Sabe Jones
2018-08-30 13:56:36 -05:00
parent 972631e7ac
commit ac27cabf6a
4 changed files with 32 additions and 16 deletions

View File

@@ -30,19 +30,19 @@
} }
.promo_mystery_201808 { .promo_mystery_201808 {
background-image: url('~assets/images/sprites/spritesmith-largeSprites-0.png'); background-image: url('~assets/images/sprites/spritesmith-largeSprites-0.png');
background-position: -876px -251px; background-position: -876px -484px;
width: 78px; width: 78px;
height: 81px; height: 81px;
} }
.promo_take_this { .promo_take_this {
background-image: url('~assets/images/sprites/spritesmith-largeSprites-0.png'); background-image: url('~assets/images/sprites/spritesmith-largeSprites-0.png');
background-position: -876px -181px; background-position: -876px -414px;
width: 96px; width: 96px;
height: 69px; height: 69px;
} }
.promo_unconventional_armor { .promo_unconventional_armor {
background-image: url('~assets/images/sprites/spritesmith-largeSprites-0.png'); background-image: url('~assets/images/sprites/spritesmith-largeSprites-0.png');
background-position: -876px 0px; background-position: -876px -233px;
width: 180px; width: 180px;
height: 180px; height: 180px;
} }
@@ -52,3 +52,9 @@
width: 312px; width: 312px;
height: 222px; height: 222px;
} }
.scene_studying {
background-image: url('~assets/images/sprites/spritesmith-largeSprites-0.png');
background-position: -876px 0px;
width: 220px;
height: 232px;
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 115 KiB

After

Width:  |  Height:  |  Size: 118 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

View File

@@ -3,7 +3,7 @@ import { authWithHeaders } from '../../middlewares/auth';
let api = {}; let api = {};
// @TODO export this const, cannot export it from here because only routes are exported from controllers // @TODO export this const, cannot export it from here because only routes are exported from controllers
const LAST_ANNOUNCEMENT_TITLE = 'NEW AVATAR CUSTOMIZATIONS: ANIMAL TAILS'; const LAST_ANNOUNCEMENT_TITLE = 'LAST CHANCE FOR LAVA DRAGON SET AND SPOTLIGHT ON BACK TO SCHOOL';
const worldDmg = { // @TODO const worldDmg = { // @TODO
bailey: false, bailey: false,
}; };
@@ -26,20 +26,30 @@ api.getNews = {
res.status(200).send({ res.status(200).send({
html: ` html: `
<div class="bailey"> <div class="bailey">
<div class="media">
<div class="media-body">
<div class="media align-items-center"> <div class="media align-items-center">
<div class="mr-3 ${baileyClass}"></div> <div class="mr-3 ${baileyClass}"></div>
<div class="media-body"> <div class="media-body">
<h1 class="align-self-center">${res.t('newStuff')}</h1> <h1 class="align-self-center">${res.t('newStuff')}</h1>
<h2>8/29/2018 - ${LAST_ANNOUNCEMENT_TITLE}</h2> <h2>8/30/2018 - ${LAST_ANNOUNCEMENT_TITLE}</h2>
</div> </div>
</div> </div>
<hr/> <hr/>
<p>There are new customizations available for your avatar! Check out our new sets of tails to match the Animal Skins and Ears--you'll match your pets better than ever. You can find them in User > Avatar > Extra. Enjoy!</p> <div class="media align-items-center">
<div class="small">by tricksy.fox, Beffymaroo, and SabreCat</div> <div class="media-body">
<h3>Last Chance for Lava Dragon Set</h3>
<p>Reminder: this is the final day to <a href='/user/settings/subscription' target='_blank'>subscribe</a> and receive the Lava Dragon Set! Subscribing also lets you buy Gems for Gold. The longer your subscription, the more Gems you get!</p>
<p>Thanks so much for your support! You help keep Habitica running.</p>
<div class="small mb-3">by Beffymaroo</div>
</div>
<div class="promo_mystery_201808"></div>
</div>
<div class="media align-items-center">
<div class="scene_studying mb-3 mr-3"></div>
<div class="media-body">
<h3>User Spotlight Special: Back-To-School Edition</h3>
<p>Are you getting ready for school to start (or perhaps school has already begun) and using Habitica to motivate and organize yourself? Check out this special <a href='https://habitica.wordpress.com/2018/08/30/user-spotlight-special-edition-tips-for-back-to-school/' target='_blank'>User Spotlight post</a>, featuring advice from fellow Habiticans! They offer lots of useful tips for using your task lists and more to get a jump-start on your studies (or teaching) for this year.</p>
<div class="small mb-3">by shanaqui</div>
</div> </div>
<div class="promo_animal_tails ml-3 mb-3"></div>
</div> </div>
</div> </div>
`, `,