manifest/nuxt/components/Glava.vue

84 lines
1.4 KiB
Vue
Raw Normal View History

<script setup="setup">
const route = useRoute()
const pot = computed(() => route.path)
const naManifestu = computed(() => route.path.indexOf('/pojmi') === 0)
</script>
2023-02-22 21:19:55 +01:00
<template>
<section class="glava" :class="{ manifest: naManifestu }">
2024-01-06 17:53:50 +01:00
<ul class="meni">
<li><NuxtLink to="/">Domov</NuxtLink></li>
<li><NuxtLink to="/pojmi">Manifest</NuxtLink></li>
<li><NuxtLink to="https://yugofuturism.kompot.si/user" target="_blank">admin</NuxtLink></li>
</ul>
2024-01-06 18:05:53 +01:00
<img src="/images/zvezda.png">
<h1 v-if="naManifestu">MANIFEST</h1>
<h1 v-else>JUGOFUTURIZEM</h1>
2023-02-22 21:19:55 +01:00
</section>
</template>
2024-01-06 17:53:50 +01:00
<style scoped>
2024-01-06 19:58:08 +01:00
.glava {
2024-01-06 17:53:50 +01:00
height: 100vh;
width: 100%;
2024-01-06 19:58:08 +01:00
display: flex;
justify-content: center;
align-items: center;
}
.glava.manifest {
background: var(--rdeca)
}
2024-01-06 19:58:08 +01:00
h1 {
2024-01-06 20:02:05 +01:00
font-family: Trailers;
font-size: 5rem;
z-index: 50;
2024-01-06 19:58:08 +01:00
}
2024-01-06 17:53:50 +01:00
2024-01-06 19:58:08 +01:00
img {
position: absolute;
top: 0;
left: 0;
2024-01-06 17:53:50 +01:00
width: 100%;
z-index: 10;
2024-01-06 19:58:08 +01:00
}
2024-01-06 17:53:50 +01:00
2024-01-06 19:58:08 +01:00
.meni {
position: absolute;
top: 0;
left: 0;
width: 100%;
2024-01-06 18:48:35 +01:00
display: flex;
2024-01-06 17:53:50 +01:00
margin: 0;
2024-01-06 18:48:35 +01:00
justify-content: space-between;
z-index: 100;
2024-01-06 17:53:50 +01:00
}
2024-01-06 19:58:08 +01:00
2024-01-06 17:53:50 +01:00
.meni a {
2024-01-06 18:50:32 +01:00
display: block;
2024-01-06 17:53:50 +01:00
text-decoration: none;
text-transform: uppercase;
font-weight: bold;
2024-01-06 18:48:35 +01:00
color: black;
2024-01-06 18:50:32 +01:00
padding: 10px 30px;
2024-01-06 17:53:50 +01:00
}
2024-01-06 18:48:35 +01:00
ul {
2024-01-06 17:53:50 +01:00
list-style: none;
padding: 0%;
width: 100%;
}
2024-01-06 18:48:35 +01:00
@media screen and (max-width: 768px) {
.meni {
display: flex;
flex-direction: column;
align-items: center;
2024-01-06 17:54:42 +01:00
}
2024-01-06 17:53:50 +01:00
}
2024-01-06 19:58:08 +01:00
</style>