juggl/src/components/base/BaseLogo.vue

50 lines
876 B
Vue
Raw Normal View History

2020-12-20 17:27:26 +01:00
<template>
<div>
<b-link to="/">
<b-img
:src="require('../../assets/logo.png')"
alt="Juggl"
2021-01-01 16:35:35 +01:00
:width="widthSize"
2020-12-20 17:27:26 +01:00
:center="center"
/>
</b-link>
</div>
</template>
<script>
export default {
name: "BaseLogo",
props: {
size: {
default: "small",
type: String
},
center: {
default: false,
type: Boolean
}
},
computed: {
2021-01-01 16:35:35 +01:00
widthSize: function() {
2020-12-20 17:27:26 +01:00
let sizes = {
mini: "35px",
tiny: "80px",
smaller: "110px",
small: "150px",
2021-01-01 16:35:35 +01:00
normal: "175px",
2020-12-20 17:27:26 +01:00
medium: "300px",
large: "450px",
big: "600px",
huge: "800px",
massive: "960px"
};
let targetSize = sizes[this.size];
if (targetSize === undefined) return sizes["small"];
else return targetSize;
}
}
};
</script>
<style />