Changed dashboard backdrop style

This commit is contained in:
Gamebrary 2020-09-16 17:27:03 -07:00
parent eca57748a9
commit 4a86eb2921

View file

@ -1,19 +1,16 @@
<template lang="html"> <template lang="html">
<div> <div :style="`
<b-jumbotron background-image: linear-gradient(transparent, #222 50%), url(${ coverScreenshot });
header="Welcome to Gamebrary" background-size: 100%;
text-variant="white" background-repeat: no-repeat;
header-level="4" `"
class="text-center rounded-0" >
lead="The open source video game collection management tool."
:style="` <div class="hero text-center py-5 my-5">
background-image: url('${ coverScreenshot }'); <h3>Welcome to Gamebrary</h3>
background-size: cover; <p class="lead">The open source video game collection management tool.</p>
height: 50vh; <small v-if="coverGame">Screenshot from <strong>{{ coverGame.name }}</strong></small>
`" </div>
>
<small v-if="coverGame">Screenshot from <strong>{{ coverGame.name }}</strong></small>
</b-jumbotron>
<div class="container dashboard"> <div class="container dashboard">
<b-tabs <b-tabs
@ -34,93 +31,48 @@
<b-tab title-link-class="p-2 px-5" title="Settings"> <b-tab title-link-class="p-2 px-5" title="Settings">
<h5 class="mb-2">Settings</h5> <h5 class="mb-2">Settings</h5>
<b-form-row> <b-card
<b-col v-b-modal:tags-settings
class="d-flex mt-2" class="clickable w-100 mb-3"
cols="12" >
sm="6" <template v-slot:header>
md="4" <b-icon icon="tags" />
lg="3" Manage game tags
>
<b-card
v-b-modal:tags-settings
class="clickable w-100"
>
<template v-slot:header>
<b-icon icon="tags" />
Manage game tags
</template>
<p>Tags are a great way to organize and manage your video game collection.
Add, edit or delete tags.</p>
</b-card>
</b-col>
<b-col
class="d-flex mt-2"
cols="12"
sm="6"
md="4"
lg="3"
>
<b-card
v-b-modal:wallpapers
header="Wallpapers"
class="clickable w-100"
>
<b-card-text>
Manage board wallpapers
</b-card-text>
</b-card>
</b-col>
<b-col
class="d-flex mt-2"
cols="12"
sm="6"
md="4"
lg="3"
>
<b-card
v-b-modal:language
header="Language"
class="clickable w-100"
>
<b-card-text>
Change language
</b-card-text>
</b-card>
</b-col>
<b-col
class="d-flex mt-2"
cols="12"
sm="6"
md="4"
lg="3"
>
<b-card
v-b-modal:themes
header="Theme"
class="clickable w-100"
>
<b-card-text>
Change UI theme
</b-card-text>
</b-card>
</b-col>
</b-form-row>
</b-tab>
<b-tab title-link-class="p-2 px-5" lazy>
<template v-slot:title>
Releases <b-badge variant="success" v-if="notification">New!</b-badge>
</template> </template>
<h5 class="mb-2">Releases</h5> <p>Tags are a great way to organize and manage your video game collection.
<p>An archive of every release weve done that we have a record of.</p> Add, edit or delete tags.</p>
</b-card>
<releases /> <b-card
v-b-modal:wallpapers
header="Wallpapers"
class="clickable w-100 mb-3"
>
<b-card-text>
Manage board wallpapers
</b-card-text>
</b-card>
<b-card
v-b-modal:language
header="Language"
class="clickable w-100 mb-3"
>
<b-card-text>
Change language
</b-card-text>
</b-card>
<b-card
v-b-modal:themes
header="Theme"
class="clickable w-100 mb-3"
>
<b-card-text>
Change UI theme
</b-card-text>
</b-card>
</b-tab> </b-tab>
<b-tab title-link-class="p-2 px-5" title="Account" lazy> <b-tab title-link-class="p-2 px-5" title="Account" lazy>
@ -140,7 +92,6 @@ import PageFooter from '@/components/PageFooter';
import Account from '@/components/Settings/Account'; import Account from '@/components/Settings/Account';
import Releases from '@/components/Settings/Releases'; import Releases from '@/components/Settings/Releases';
import Boards from '@/components/Boards'; import Boards from '@/components/Boards';
import { mapState } from 'vuex';
export default { export default {
components: { components: {
@ -158,8 +109,6 @@ export default {
}, },
computed: { computed: {
...mapState(['notification']),
coverScreenshot() { coverScreenshot() {
const baseUrl = 'https://images.igdb.com/igdb/image/upload/t_1080p_2x/'; const baseUrl = 'https://images.igdb.com/igdb/image/upload/t_1080p_2x/';
return this.coverGame && this.coverGame.screenshots.length return this.coverGame && this.coverGame.screenshots.length
@ -179,7 +128,7 @@ export default {
</script> </script>
<style lang="scss" rel="stylesheet/scss" scoped> <style lang="scss" rel="stylesheet/scss" scoped>
.jumbotron { .hero {
text-shadow: 2px 3px 5px rgba(0,0,0,0.5); text-shadow: 2px 3px 5px rgba(0,0,0,0.5);
} }
</style> </style>