2017-08-01 18:52:49 +00:00
< template lang = "pug" >
2017-08-30 22:59:31 +00:00
b - modal # new - stuff (
v - if = 'user.flags.newStuff' ,
size = 'lg' ,
: hide - header = 'true' ,
: hide - footer = 'true' ,
)
. modal - body
. media
2017-09-01 20:31:34 +00:00
. align - self - center . right - margin ( : class = 'baileyClass' )
2017-08-30 22:59:31 +00:00
. media - body
2017-09-01 20:31:34 +00:00
h1 . align - self - center ( v - markdown = '$t("newStuff")' )
h2 9 / 1 / 2017 - NEW TAKE THIS CHALLENGE
hr
. media
. media - body
h3 September Take This Challenge : Hero ' s Triumph !
p The next Take This Challenge has launched , "<a href='/challenges/422cdd93-e822-441e-a203-a36843a24d93'>Hero's Triumph!</a>" , with a focus on volunteerism . Be sure to check it out to earn additional pieces of the Take This armor set !
. promo _takeThis _gear . align - self - center . left - margin
p < a href = 'http://www.takethis.org/' target = '_blank' > Take This < / a > is a nonprofit that seeks to inform the gamer community about mental health issues , to provide education about mental disorders and mental illness prevention , and to reduce the stigma of mental illness .
p Congratulations to the winners of the last Take This Challenge , "Keep Calm and Carry On!" : grand prize winner wakupedia , and runners - up Sarah Blake , Drago Nar , secretlondon , Birgitte , and LifeChanging ! Plus , all participants in that Challenge have received a piece of the < a href = 'http://habitica.wikia.com/wiki/Event_Item_Sequences#Take_This_Armor_Set' target = '_blank' > Take This item set < / a > , if they hadn ' t completed the set already . It is located in your Rewards column . Enjoy !
. small by Doctor B , the Take This team , Lemoness , and SabreCat
br
2017-08-01 18:52:49 +00:00
. modal - footer
a . btn . btn - info ( href = 'http://habitica.wikia.com/wiki/Whats_New' , target = '_blank' ) { { this . $t ( 'newsArchive' ) } }
button . btn . btn - default ( @ click = 'close()' ) { { this . $t ( 'cool' ) } }
2017-08-26 02:56:21 +00:00
button . btn . btn - warning ( @ click = 'dismissAlert();' ) { { this . $t ( 'dismissAlert' ) } }
2017-08-01 18:52:49 +00:00
< / template >
2017-08-30 22:59:31 +00:00
< style lang = 'scss' scoped >
@ import '~client/assets/scss/static.scss' ;
. modal - body {
padding - top : 2 em ;
}
. left - margin {
margin - left : 1 em ;
}
. right - margin {
margin - right : 1 em ;
}
< / style >
2017-08-01 18:52:49 +00:00
< script >
import bModal from 'bootstrap-vue/lib/components/modal' ;
2017-08-26 02:56:21 +00:00
import { mapState } from 'client/libs/store' ;
2017-08-30 22:59:31 +00:00
import markdown from 'client/directives/markdown' ;
2017-08-01 18:52:49 +00:00
export default {
components : {
bModal ,
} ,
2017-08-30 22:59:31 +00:00
computed : {
... mapState ( { user : 'user.data' } ) ,
} ,
2017-08-01 18:52:49 +00:00
data ( ) {
let worldDmg = {
2017-08-30 22:59:31 +00:00
bailey : false ,
2017-08-01 18:52:49 +00:00
} ;
return {
baileyClass : {
'npc_bailey_broken' : worldDmg . bailey , // eslint-disable-line
'npc_bailey' : ! worldDmg . bailey , // eslint-disable-line
} ,
} ;
} ,
2017-08-30 22:59:31 +00:00
directives : {
markdown ,
2017-08-01 18:52:49 +00:00
} ,
methods : {
close ( ) {
this . $root . $emit ( 'hide::modal' , 'new-stuff' ) ;
} ,
2017-08-26 02:56:21 +00:00
dismissAlert ( ) {
this . $store . dispatch ( 'user:set' , { 'flags.newStuff' : false } ) ;
this . close ( ) ;
} ,
2017-08-01 18:52:49 +00:00
} ,
} ;
< / script >