mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender-pwa.git
synced 2025-07-16 09:38:51 +02:00
fix:#20 rearranged page layout
This commit is contained in:
@ -60,7 +60,7 @@ onMounted(() => {
|
|||||||
<Button
|
<Button
|
||||||
id="dark-mode-switcher"
|
id="dark-mode-switcher"
|
||||||
size="small"
|
size="small"
|
||||||
class="p-button-rounded w-full md:w-auto"
|
class="p-button-rounded md:w-auto"
|
||||||
style="margin-right: 1rem"
|
style="margin-right: 1rem"
|
||||||
:severity="isDark ? 'warning' : 'success'"
|
:severity="isDark ? 'warning' : 'success'"
|
||||||
@click="toggleTheme()"
|
@click="toggleTheme()"
|
||||||
|
@ -252,6 +252,8 @@
|
|||||||
},
|
},
|
||||||
"settings": {
|
"settings": {
|
||||||
"headline": "Einstellungen",
|
"headline": "Einstellungen",
|
||||||
"subTitle": "Hier kannst du deine Einstellungen bearbeiten."
|
"subTitle": "Hier kannst du deine Einstellungen bearbeiten.",
|
||||||
|
"language": "Sprache einstellen",
|
||||||
|
"darkMode": "Design auswählen"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -252,6 +252,8 @@
|
|||||||
},
|
},
|
||||||
"settings": {
|
"settings": {
|
||||||
"headline": "Settings",
|
"headline": "Settings",
|
||||||
"subTitle": "Here you can change your settings."
|
"subTitle": "Here you can change your settings.",
|
||||||
|
"language": "Choose your language",
|
||||||
|
"darkMode": "Switch page theme"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -252,6 +252,8 @@
|
|||||||
},
|
},
|
||||||
"settings": {
|
"settings": {
|
||||||
"headline": "設定",
|
"headline": "設定",
|
||||||
"subTitle": "ここで設定を編集できます。"
|
"subTitle": "ここで設定を編集できます。",
|
||||||
|
"language": "言語",
|
||||||
|
"darkMode": "ダークモード"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<script setup lang="ts">
|
<script lang="ts" setup>
|
||||||
|
|
||||||
import LocaleSwitcher from "@/components/LocaleSwitcher.vue";
|
import LocaleSwitcher from "@/components/LocaleSwitcher.vue";
|
||||||
import {ref} from "vue";
|
import { ref } from "vue";
|
||||||
import DarkModeSwitcher from "@/components/DarkModeSwitcher.vue";
|
import DarkModeSwitcher from "@/components/DarkModeSwitcher.vue";
|
||||||
|
|
||||||
const icon = "pi pi-cog";
|
const icon = "pi pi-cog";
|
||||||
@ -19,39 +19,51 @@ function handleDarkModeToggled(isDarkVar: boolean) {
|
|||||||
<template>
|
<template>
|
||||||
<div class="flex flex-column align-items-center mt-0">
|
<div class="flex flex-column align-items-center mt-0">
|
||||||
<div
|
<div
|
||||||
class="flex align-items-center justify-content-center gap-3 mx-2 mb-4 transition-rolldown md:mt-8"
|
class="flex align-items-center justify-content-center gap-3 mx-2 mb-4 transition-rolldown md:mt-8"
|
||||||
>
|
>
|
||||||
<h3 class="text-4xl">
|
<h3 class="text-4xl">
|
||||||
{{ $t('settings.headline') }}
|
{{ $t("settings.headline") }}
|
||||||
</h3>
|
</h3>
|
||||||
<i v-if="icon" :class="icon" style="font-size: 2rem"></i>
|
<i v-if="icon" :class="icon" style="font-size: 2rem"></i>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="$t('settings.subTitle')" class="flex justify-content-center">
|
<div v-if="$t('settings.subTitle')" class="flex justify-content-center">
|
||||||
<h5 class="text-2xl m-2">{{ $t('settings.subTitle') }}</h5>
|
<h5 class="text-2xl m-2">{{ $t("settings.subTitle") }}</h5>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex flex-wrap mx-0 gap-2 my-4 w-full lg:w-8">
|
<div class="flex flex-wrap mx-0 gap-2 my-4 w-full lg:w-8">
|
||||||
<slot name="selection" flex-specs="flex-1 m-0"></slot>
|
<slot flex-specs="flex-1 m-0" name="selection"></slot>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
:class="[
|
class="opacity-100 transition-all transition-duration-500 transition-ease-in-out w-full lg:w-8"
|
||||||
'opacity-100',
|
|
||||||
'transition-all',
|
|
||||||
'transition-duration-500',
|
|
||||||
'transition-ease-in-out',
|
|
||||||
'w-full',
|
|
||||||
'lg:w-8',
|
|
||||||
]"
|
|
||||||
>
|
>
|
||||||
|
<div class="flex flex-column justify-content-center">
|
||||||
<DarkModeSwitcher
|
<div class="grid my-2">
|
||||||
@dark-mode-toggled="handleDarkModeToggled"
|
<div class="col text-center">
|
||||||
></DarkModeSwitcher>
|
{{ $t("settings.language") }}
|
||||||
<LocaleSwitcher></LocaleSwitcher>
|
</div>
|
||||||
|
<div class="col text-center">
|
||||||
|
<LocaleSwitcher />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="grid my-2">
|
||||||
|
<div class="col text-center">
|
||||||
|
{{ $t("settings.darkMode") }}
|
||||||
|
</div>
|
||||||
|
<div class="col text-center">
|
||||||
|
<DarkModeSwitcher
|
||||||
|
@dark-mode-toggled="handleDarkModeToggled"
|
||||||
|
></DarkModeSwitcher>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
|
||||||
|
.col {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
Reference in New Issue
Block a user