Skip to content
Snippets Groups Projects
Commit 2e28747d authored by Ingrid Martinsheimen Egge's avatar Ingrid Martinsheimen Egge :cow2:
Browse files

logojusteringer

parent a5f0a0f2
No related branches found
No related tags found
3 merge requests!21Merge profilinnstillinger into main,!13Fridge view,!4Navbar
<template>
<div>
<img src="../components/icons/logo.png" alt="logo" :style="{ width: logoSize }">
</div>
</template>
<script>
export default {
name: "Logo"
}
</script>
<style scoped>
</style>
\ No newline at end of file
...@@ -14,7 +14,10 @@ ...@@ -14,7 +14,10 @@
</li> </li>
<li> <li>
<RouterLink :to="'/'" :aria-label="'link to week menu page'"> <RouterLink :to="'/'" :aria-label="'link to week menu page'">
<Icon icon="mdi:leaf-circle" :color="iconColor" :style="{ fontSize: logoSize }" /> <div id = "logoContainer" :style="{ width: logoSize, height: logoSize }" >
<img src="../components/icons/logo.png" alt="logo">
</div>
<!--<Icon icon="mdi:leaf-circle" :color="iconColor" :style="{ fontSize: logoSize }" />-->
</RouterLink> </RouterLink>
</li> </li>
<li> <li>
...@@ -33,10 +36,11 @@ ...@@ -33,10 +36,11 @@
</template> </template>
<script> <script>
import { Icon } from '@iconify/vue'; import { Icon } from '@iconify/vue';
import Logo from "@/components/Logo.vue";
export default { export default {
name: "Navbar", name: "Navbar",
components: {Icon}, components: {Logo, Icon},
computed: { computed: {
iconColor() { iconColor() {
return '#ffffff'; return '#ffffff';
...@@ -45,7 +49,7 @@ export default { ...@@ -45,7 +49,7 @@ export default {
return `32px`; return `32px`;
}, },
logoSize() { logoSize() {
return '32px'; return '62px';
} }
} }
} }
...@@ -53,6 +57,15 @@ export default { ...@@ -53,6 +57,15 @@ export default {
<style scoped lang="scss"> <style scoped lang="scss">
#logoContainer {
background-color: white;
border-radius: 50%;
}
#logoContainer img{
width:70%;
}
nav { nav {
position: fixed; position: fixed;
top: auto; top: auto;
...@@ -67,11 +80,10 @@ ul { ...@@ -67,11 +80,10 @@ ul {
display: flex; display: flex;
list-style-type: none; list-style-type: none;
justify-content: space-between; justify-content: space-between;
align-items: center;
padding: 0; padding: 0;
margin-right: 1em; margin-right: 1em;
margin-left: 1em; margin-left: 1em;
margin-top: .6em;
} }
...@@ -84,7 +96,6 @@ ul { ...@@ -84,7 +96,6 @@ ul {
} }
} }
li{ li{
text-align: center; text-align: center;
} }
......
src/components/icons/logo.png

16.6 KiB

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment