Skip to content
Snippets Groups Projects
Commit f3be61c4 authored by Ina Martini's avatar Ina Martini
Browse files

fix: delete unused images

parent c4139ce6
No related branches found
No related tags found
2 merge requests!66Final merge,!61Fix comments
......@@ -3,6 +3,7 @@ import NavBarComponent from '@/components/NavBarComponent.vue'
import { RouterView, useRoute } from 'vue-router'
import { computed } from 'vue'
import HelpComponent from '@/components/HelpComponent.vue'
import Sti from '@/assets/sti.png'
const route = useRoute()
......@@ -18,32 +19,30 @@ const showNavBar = computed(() => {
)
})
// Check if the background image should be shown
// Background image for the sti component
const backgroundImageStyle = computed(() => {
if (dontShowSti.value) {
console.log(dontShowSti.value)
return {
backgroundImage: 'none'
}
} else {
return {
backgroundImage: "url('src/assets/sti.png')"
}
}
})
if (dontShowSti.value) {
return {
backgroundImage: 'none'
};
} else {
return {
backgroundImage: `url(${Sti})`
};
}
});
// Check if the Sti should be shown and return the paths that should have the Sti
// Check if the sti component should be shown and return the paths that should have the sti component
const dontShowSti = computed(() => {
return (
route.path == '/' ||
route.path == '/registrer' ||
route.path == '/logginn' ||
route.path == '/forgotPassword' ||
route.path.startsWith('/konfigurasjon') ||
route.path == '/hjem' ||
route.path == '/profil' ||
route.path.startsWith('/loggin')
)
return (
route.path == '/' ||
route.path == '/registrer' ||
route.path == '/logginn' ||
route.path == '/forgotPassword' ||
route.path.startsWith('/konfigurasjon') ||
route.path == '/hjem' ||
route.path.startsWith('/loggin')
)
})
// Check if the help component should be shown and return the paths that should not have the help component
......
src/assets/backgroundSavingsPath.png

32.4 KiB

src/assets/coffee.png

70.6 KiB

src/assets/finishLine.png

35.7 KiB

src/assets/flower.png

25.6 KiB

src/assets/frozenStreak.png

166 KiB

src/assets/gaming.png

7.34 KiB

src/assets/lock.png

74.6 KiB

src/assets/mat.png

280 KiB

src/assets/snacks.png

181 KiB

src/assets/start.png

219 KiB

src/assets/streak.png

124 KiB

src/assets/streakFlame.png

156 KiB

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment