2024-04-01 15:22:52 +02:00
|
|
|
<script setup="setup">
|
|
|
|
|
2024-04-01 19:59:09 +02:00
|
|
|
const { $i18n } = useNuxtApp()
|
|
|
|
|
|
|
|
const nastavitveStore = useNastavitveStore()
|
2024-05-31 17:44:04 +02:00
|
|
|
const pojmiStore = usePojmiStore()
|
|
|
|
const straniStore = useStraniStore()
|
2024-04-01 19:59:09 +02:00
|
|
|
|
|
|
|
const { izbraniJezik } = storeToRefs(nastavitveStore)
|
|
|
|
|
2024-04-01 15:22:52 +02:00
|
|
|
// Nastavi locale ko se jezik spremeni
|
|
|
|
watch(izbraniJezik, jezik => {
|
2024-04-01 19:59:09 +02:00
|
|
|
$i18n.setLocale(jezik)
|
2024-05-31 17:44:04 +02:00
|
|
|
pojmiStore.naloziPojme(jezik)
|
|
|
|
straniStore.naloziStrani(jezik)
|
2024-04-01 15:22:52 +02:00
|
|
|
})
|
2024-04-01 19:59:09 +02:00
|
|
|
|
|
|
|
// V store nastavi prvotno stanje
|
|
|
|
nastavitveStore.izberiJezik($i18n.locale.value)
|
|
|
|
|
2024-04-01 15:22:52 +02:00
|
|
|
</script>
|
|
|
|
|
2023-02-22 21:19:55 +01:00
|
|
|
<template>
|
2023-05-03 21:31:01 +02:00
|
|
|
<section class="yufu">
|
2023-02-22 21:19:55 +01:00
|
|
|
<Glava />
|
2024-01-17 19:04:12 +01:00
|
|
|
<div class="vsebina">
|
2023-03-08 23:13:33 +01:00
|
|
|
<NuxtPage />
|
2024-01-17 19:04:12 +01:00
|
|
|
</div>
|
2024-01-22 18:11:24 +01:00
|
|
|
<footer>
|
|
|
|
<Noga />
|
|
|
|
</footer>
|
2023-05-03 21:31:01 +02:00
|
|
|
</section>
|
2023-02-22 21:19:55 +01:00
|
|
|
</template>
|
2023-05-03 21:31:01 +02:00
|
|
|
|
|
|
|
<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);
|
|
|
|
}
|
|
|
|
|
2024-01-24 16:44:09 +01:00
|
|
|
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
|
|
|
}
|
|
|
|
|
2024-01-19 15:29:25 +01:00
|
|
|
a.gumb {
|
2024-04-01 21:20:07 +02:00
|
|
|
text-transform: uppercase;
|
2024-01-19 13:35:03 +01:00
|
|
|
text-decoration: underline;
|
|
|
|
font-size: 3rem;
|
2024-01-19 15:29:25 +01:00
|
|
|
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;
|
2024-03-05 22:48:42 +01:00
|
|
|
z-index: 100;
|
2024-01-17 18:33:31 +01:00
|
|
|
}
|
2023-05-03 21:31:01 +02: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
|
|
|
|
|
|
|
|
2024-01-24 16:44:09 +01:00
|
|
|
@media screen and (max-width: 420px) {
|
2024-01-19 12:42:02 +01:00
|
|
|
.vsebina {
|
|
|
|
padding-right: 0;
|
|
|
|
padding-left: 0;
|
|
|
|
}
|
2024-01-22 12:55:24 +01:00
|
|
|
.stran {
|
|
|
|
margin: 0;
|
|
|
|
}
|
2024-01-19 12:42:02 +01:00
|
|
|
}
|
|
|
|
|
2024-01-24 16:44:09 +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;
|
|
|
|
}
|
2023-05-03 21:31:01 +02:00
|
|
|
</style>
|