mirror of
https://akkoma.dev/AkkomaGang/akkoma-fe.git
synced 2024-11-14 04:24:51 +00:00
Make use of template literals instead of string concat.
This commit is contained in:
parent
e9820326e3
commit
960ed9540d
1 changed files with 4 additions and 4 deletions
|
@ -63,15 +63,15 @@
|
||||||
headingStyle () {
|
headingStyle () {
|
||||||
let rgb = this.$store.state.config.colors['base00'].match(/\d+/g)
|
let rgb = this.$store.state.config.colors['base00'].match(/\d+/g)
|
||||||
return {
|
return {
|
||||||
backgroundColor: 'rgb(' + Math.floor(rgb[0] * 0.53) + ', ' +
|
backgroundColor: `rgb(${Math.floor(rgb[0] * 0.53)},
|
||||||
Math.floor(rgb[1] * 0.56) + ', ' +
|
${Math.floor(rgb[1] * 0.56)},
|
||||||
Math.floor(rgb[2] * 0.59) + ')',
|
${Math.floor(rgb[2] * 0.59)})`,
|
||||||
backgroundImage: `url(${this.user.cover_photo})`
|
backgroundImage: `url(${this.user.cover_photo})`
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
bodyStyle () {
|
bodyStyle () {
|
||||||
return {
|
return {
|
||||||
background: 'linear-gradient(to bottom, rgba(0, 0, 0, 0), ' + this.$store.state.config.colors['base00'] + ' 80%)'
|
background: `linear-gradient(to bottom, rgba(0, 0, 0, 0), ${this.$store.state.config.colors['base00']} 80%)`
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
isOtherUser () {
|
isOtherUser () {
|
||||||
|
|
Loading…
Reference in a new issue