diff --git a/frontend/src/components/DarkModeSwitcher.vue b/frontend/src/components/DarkModeSwitcher.vue index 3a0a6ab..1d163c3 100644 --- a/frontend/src/components/DarkModeSwitcher.vue +++ b/frontend/src/components/DarkModeSwitcher.vue @@ -60,7 +60,7 @@ onMounted(() => { . --> @@ -140,10 +131,10 @@ function handleDarkModeToggled(isDarkVar: boolean) { - - + + + + diff --git a/frontend/src/i18n/translations/de.json b/frontend/src/i18n/translations/de.json index 6e62d2a..70af13d 100644 --- a/frontend/src/i18n/translations/de.json +++ b/frontend/src/i18n/translations/de.json @@ -249,5 +249,11 @@ "subTitle": "Hier findest du die Kalenderansicht von deinem persönlichen Feed.", "searchPlaceholder": "Token", "searchButton": "Kalender laden" + }, + "settings": { + "headline": "Einstellungen", + "subTitle": "Hier kannst du deine Einstellungen bearbeiten.", + "language": "Sprache einstellen", + "darkMode": "Design auswählen" } } diff --git a/frontend/src/i18n/translations/en.json b/frontend/src/i18n/translations/en.json index e64e9ff..5db0af9 100644 --- a/frontend/src/i18n/translations/en.json +++ b/frontend/src/i18n/translations/en.json @@ -249,5 +249,11 @@ "subTitle": "Here you can find the calendar view of your personal feed.", "searchPlaceholder": "calendar token", "searchButton": "load calendar" + }, + "settings": { + "headline": "Settings", + "subTitle": "Here you can change your settings.", + "language": "Choose your language", + "darkMode": "Switch page theme" } } diff --git a/frontend/src/i18n/translations/ja.json b/frontend/src/i18n/translations/ja.json index 455bb34..b223c11 100644 --- a/frontend/src/i18n/translations/ja.json +++ b/frontend/src/i18n/translations/ja.json @@ -249,5 +249,11 @@ "subTitle": "ここでは、個人のフィードのカレンダー表示を見つけることができます。", "searchPlaceholder": "カレンダートークン", "searchButton": "ロードカレンダー" + }, + "settings": { + "headline": "設定", + "subTitle": "ここで設定を編集できます。", + "language": "言語", + "darkMode": "ダークモード" } } diff --git a/frontend/src/router/index.ts b/frontend/src/router/index.ts index 7aff183..3c6c214 100644 --- a/frontend/src/router/index.ts +++ b/frontend/src/router/index.ts @@ -29,6 +29,7 @@ const EditModules = () => import("../view/editCalendar/EditModules.vue"); const CourseSelection = () => import("../view/CourseSelection.vue"); const FreeRooms = () => import("../view/FreeRooms.vue"); const CalenderViewer = () => import("../view/UserCalendar.vue"); +const SettingsView = () => import("../view/SettingsView.vue"); import i18n from "../i18n"; @@ -118,6 +119,11 @@ const router = createRouter({ name: "rename-modules", component: RenameModules, }, + { + path: "/settings", + name: "settings", + component: SettingsView, + } ], }); diff --git a/frontend/src/view/SettingsView.vue b/frontend/src/view/SettingsView.vue new file mode 100644 index 0000000..d6ec895 --- /dev/null +++ b/frontend/src/view/SettingsView.vue @@ -0,0 +1,69 @@ + + + + + + + {{ $t("settings.headline") }} + + + + + {{ $t("settings.subTitle") }} + + + + + + + + + {{ $t("settings.language") }} + + + + + + + + {{ $t("settings.darkMode") }} + + + + + + + + + + \ No newline at end of file