manifest/nuxt/app.vue

130 lines
2.0 KiB
Vue
Raw Normal View History

<script setup="setup">
const store = useNastavitveStore()
const { izbraniJezik } = storeToRefs(store)
// Nastavi locale ko se jezik spremeni
watch(izbraniJezik, jezik => {
console.log('nov jezik', jezik)
useNuxtApp().$i18n.setLocale(jezik)
})
</script>
2023-02-22 21:19:55 +01:00
<template>
<section class="yufu">
2023-02-22 21:19:55 +01:00
<Glava />
2024-01-17 19:04:12 +01:00
<div class="vsebina">
<NuxtPage />
2024-01-17 19:04:12 +01:00
</div>
2024-01-22 18:11:24 +01:00
<footer>
<Noga />
</footer>
</section>
2023-02-22 21:19:55 +01:00
</template>
<style>
2024-01-17 18:33:31 +01:00
:root {
--siva: #D9D9D9;
--bela: #fff;
2024-01-19 13:35:03 +01:00
--crna: #000;
2024-01-17 18:33:31 +01:00
--rdeca: #f00;
2024-01-17 20:35:42 +01:00
--roza: #ED008C;
2024-01-17 18:33:31 +01:00
}
body {
font-family: Inter;
margin: 0;
background: var(--siva);
}
a {
color: var(--crna);
}
2024-01-17 18:33:31 +01:00
h1 {
text-align: center;
2024-01-17 19:04:12 +01:00
font-size: 5rem;
2024-01-17 18:33:31 +01:00
margin: .2rem 0 1rem 0;
}
2024-01-19 13:35:03 +01:00
h2 {
text-transform: uppercase;
margin-top: 0;
}
2024-01-17 19:04:12 +01:00
.vsebina {
position: relative;
z-index: 50;
2024-01-17 20:35:42 +01:00
padding: 0 32px;
2024-01-17 19:04:12 +01:00
}
a.gumb {
2024-01-19 13:35:03 +01:00
text-decoration: underline;
font-size: 3rem;
position: relative;
display: flex;
width: 100%;
justify-content: center;
2024-01-19 13:35:03 +01:00
}
2024-01-17 18:33:31 +01:00
.stran {
position: relative;
background: var(--bela);
margin: 2rem;
border-radius: 3rem;
padding: 2rem;
}
form {
display: flex;
flex-direction: column;
}
input[type=submit] { margin-top: 1rem; }
details > summary {
list-style: none;
}
.gumb {
font-family: Trailers;
2024-01-17 20:35:42 +01:00
font-size: 3rem;
2024-01-17 18:33:31 +01:00
cursor: pointer;
2024-01-17 20:35:42 +01:00
border: none;
background: none;
text-decoration: underline;
width: fit-content;
z-index: 100;
2024-01-17 18:33:31 +01:00
}
2024-01-22 18:11:24 +01:00
footer {
position: relative;
z-index: 100;
2024-01-24 18:54:28 +01:00
}
2024-01-22 18:11:24 +01:00
@media screen and (max-width: 420px) {
2024-01-19 12:42:02 +01:00
.vsebina {
padding-right: 0;
padding-left: 0;
}
.stran {
margin: 0;
}
2024-01-19 12:42:02 +01:00
}
.okvir {
2024-01-19 13:35:03 +01:00
position: relative;
background: var(--bela);
margin: 2rem;
border-radius: 24px;
padding: 2rem;
display: flex;
flex-wrap: wrap;
box-sizing: border-box;
max-width: 1216px;
margin-left: auto;
margin-right: auto;
}
</style>