Added icon only logo
This commit is contained in:
parent
5977940a39
commit
12c8ceb5e1
4 changed files with 38 additions and 8 deletions
Binary file not shown.
Before Width: | Height: | Size: 67 KiB After Width: | Height: | Size: 25 KiB |
BIN
src/assets/title.png
Normal file
BIN
src/assets/title.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 67 KiB |
|
@ -1,17 +1,15 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<b-link to="/">
|
<b-link to="/">
|
||||||
<b-img
|
<b-img :src="image" alt="Juggl" :width="widthSize" :center="center" />
|
||||||
:src="require('../../assets/logo.png')"
|
|
||||||
alt="Juggl"
|
|
||||||
:width="widthSize"
|
|
||||||
:center="center"
|
|
||||||
/>
|
|
||||||
</b-link>
|
</b-link>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import logo from "./../../assets/logo.png";
|
||||||
|
import title from "./../../assets/title.png";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "BaseLogo",
|
name: "BaseLogo",
|
||||||
props: {
|
props: {
|
||||||
|
@ -22,11 +20,15 @@ export default {
|
||||||
center: {
|
center: {
|
||||||
default: false,
|
default: false,
|
||||||
type: Boolean
|
type: Boolean
|
||||||
|
},
|
||||||
|
iconOnly: {
|
||||||
|
default: false,
|
||||||
|
type: Boolean
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
widthSize: function() {
|
widthSize: function() {
|
||||||
let sizes = {
|
let titleSizes = {
|
||||||
mini: "35px",
|
mini: "35px",
|
||||||
tiny: "80px",
|
tiny: "80px",
|
||||||
smaller: "110px",
|
smaller: "110px",
|
||||||
|
@ -38,9 +40,34 @@ export default {
|
||||||
huge: "800px",
|
huge: "800px",
|
||||||
massive: "960px"
|
massive: "960px"
|
||||||
};
|
};
|
||||||
|
let logoSizes = {
|
||||||
|
mini: "12px",
|
||||||
|
tiny: "30px",
|
||||||
|
smaller: "50px",
|
||||||
|
small: "65px",
|
||||||
|
normal: "80x",
|
||||||
|
medium: "100px",
|
||||||
|
large: "150px",
|
||||||
|
big: "200px",
|
||||||
|
huge: "300px",
|
||||||
|
massive: "400px"
|
||||||
|
};
|
||||||
|
|
||||||
|
var sizes = titleSizes;
|
||||||
|
if (this.iconOnly) {
|
||||||
|
sizes = logoSizes;
|
||||||
|
}
|
||||||
|
|
||||||
let targetSize = sizes[this.size];
|
let targetSize = sizes[this.size];
|
||||||
if (targetSize === undefined) return sizes["small"];
|
if (targetSize === undefined) return sizes["small"];
|
||||||
else return targetSize;
|
else return targetSize;
|
||||||
|
},
|
||||||
|
image: function() {
|
||||||
|
if (this.iconOnly) {
|
||||||
|
return logo;
|
||||||
|
} else {
|
||||||
|
return title;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<main>
|
<main>
|
||||||
<BaseLogo id="logo" size="medium" center class="space-top" />
|
<BaseLogo id="logo" size="medium" center class="space-top space-bottom-small" icon-only />
|
||||||
<BaseContainer
|
<BaseContainer
|
||||||
:width="width"
|
:width="width"
|
||||||
center
|
center
|
||||||
|
@ -65,4 +65,7 @@ export default {
|
||||||
|
|
||||||
.center-content
|
.center-content
|
||||||
text-align: center
|
text-align: center
|
||||||
|
|
||||||
|
.space-bottom-small
|
||||||
|
margin-bottom: 1rem
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in a new issue