2018-01-21 11:38:54 +01:00
|
|
|
export const CSSHelpers = {
|
|
|
|
getBackgroundCSS: (imageUrl) => {
|
|
|
|
return 'background-image: url(' + imageUrl + ');' +
|
|
|
|
'background-size: cover;' +
|
|
|
|
'background-attachment: fixed;' +
|
|
|
|
'background-position: center;' +
|
|
|
|
'background-repeat: no-repeat;';
|
|
|
|
}
|
|
|
|
};
|
2018-07-02 20:23:47 +02:00
|
|
|
|
|
|
|
export const UIHelpers = {
|
|
|
|
toggleReleaseButton: (currentVal, group) => {
|
2018-07-02 21:57:56 +02:00
|
|
|
if (currentVal === group.value) {
|
2018-07-02 20:23:47 +02:00
|
|
|
group.value = '';
|
|
|
|
return '';
|
|
|
|
} else {
|
|
|
|
return group.value;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|