Glava - menjaj barvo, naslov pri strani manifest

pull/26/head
Jurij Podgoršek 2024-01-15 14:36:39 +01:00
parent 32e37ba5f1
commit 8ebf402c59
3 changed files with 23 additions and 4 deletions

View File

@ -9,6 +9,9 @@
<style> <style>
.body {
position: relative;
z-index: 50;
}
</style> </style>

View File

@ -1,12 +1,21 @@
<script setup="setup">
const route = useRoute()
const pot = computed(() => route.path)
const naManifestu = computed(() => route.path.indexOf('/pojmi') === 0)
</script>
<template> <template>
<section class="glava"> <section class="glava" :class="{ manifest: naManifestu }">
<ul class="meni"> <ul class="meni">
<li><NuxtLink to="/">Domov</NuxtLink></li> <li><NuxtLink to="/">Domov</NuxtLink></li>
<li><NuxtLink to="/pojmi">Manifest</NuxtLink></li> <li><NuxtLink to="/pojmi">Manifest</NuxtLink></li>
<li><NuxtLink to="https://yugofuturism.kompot.si/user" target="_blank">admin</NuxtLink></li> <li><NuxtLink to="https://yugofuturism.kompot.si/user" target="_blank">admin</NuxtLink></li>
</ul> </ul>
<img src="/images/zvezda.png"> <img src="/images/zvezda.png">
<h1>JUGOFUTURIZEM</h1>
<h1 v-if="naManifestu">MANIFEST</h1>
<h1 v-else>JUGOFUTURIZEM</h1>
</section> </section>
</template> </template>
@ -19,10 +28,14 @@
justify-content: center; justify-content: center;
align-items: center; align-items: center;
} }
.glava.manifest {
background: var(--rdeca)
}
h1 { h1 {
font-family: Trailers; font-family: Trailers;
font-size: 5rem; font-size: 5rem;
z-index: 50;
} }
img { img {
@ -30,7 +43,7 @@ img {
top: 0; top: 0;
left: 0; left: 0;
width: 100%; width: 100%;
z-index: -1; z-index: 10;
} }
.meni { .meni {
@ -41,6 +54,7 @@ img {
display: flex; display: flex;
margin: 0; margin: 0;
justify-content: space-between; justify-content: space-between;
z-index: 100;
} }
.meni a { .meni a {

View File

@ -1,5 +1,6 @@
<script setup="setup"> <script setup="setup">
const store = useStraniStore() const store = useStraniStore()
const stran = computed(() => store.strani['YuFu']) const stran = computed(() => store.strani['YuFu'])
useHead({meta: [{title: "jugofuturizem"}]}) useHead({meta: [{title: "jugofuturizem"}]})
@ -14,6 +15,7 @@ await store.naloziStrani()
:root { :root {
--siva: #D9D9D9; --siva: #D9D9D9;
--bela: #fff; --bela: #fff;
--rdeca: #f00;
} }
body { body {