forked from sagi/seepur
Consistent default bg of profiles
This commit is contained in:
parent
68ceb3d1c7
commit
abf1a6e8ac
6 changed files with 25 additions and 16 deletions
BIN
public/images/cloudgroup.png
Normal file
BIN
public/images/cloudgroup.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 30 KiB |
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<section class="hero is-small p-t-xl p-b-xl" :style="style">
|
||||
<section class="hero is-small p-t-xl p-b-xl is-light" :style="style">
|
||||
<div class="hero-body">
|
||||
<div class="container">
|
||||
<!-- <h1 class="title has-text-light">{{title}}</h1> -->
|
||||
|
@ -13,10 +13,19 @@ export default {
|
|||
props: ["title", "background"],
|
||||
computed: {
|
||||
style() {
|
||||
return `background-image: url('${this.background ||
|
||||
"/images/clouds-bg.svg"}');
|
||||
background-size: cover;
|
||||
background-position: ${this.background ? "center" : "top center"}`;
|
||||
const defaultCss = `
|
||||
background-image: url("/images/cloudgroup.png"), url('/images/sun+clouds.svg');
|
||||
background-size: contain, cover;
|
||||
background-position: center top, center right;
|
||||
background-repeat: repeat, no-repeat;
|
||||
`;
|
||||
const customCss = `
|
||||
background-image: url('${this.background}');
|
||||
background-size: cover;
|
||||
background-position: center
|
||||
`;
|
||||
const css = this.background ? customCss : defaultCss;
|
||||
return css;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue