From d2b997274bc1fb6024f41729a5be9fbe78a304c5 Mon Sep 17 00:00:00 2001 From: Maikaelja Date: Fri, 27 Feb 2026 08:11:52 +0100 Subject: [PATCH 1/3] Added my own welcome message. Added dropdown navbar functionality across all locales (splits resources into resources>learning resources/cultural resources). Moved VDS to Learning Resources. Diskordserver had doubled rules button so I removed the extra. --- apps/vdn-static/src/App.vue | 119 ++++++++++-------- .../molecules/LearningResourceWrapper.vue | 9 -- .../src/components/pages/ResourcesPage.vue | 60 +++++---- apps/vdn-static/src/i18n/greeting.ts | 6 + apps/vdn-static/src/i18n/locale.ts | 15 ++- apps/vdn-static/src/locales/en_US.ts | 3 + apps/vdn-static/src/locales/vp_VL.ts | 4 + apps/vdn-static/src/locales/wp_VL.ts | 5 +- 8 files changed, 135 insertions(+), 86 deletions(-) diff --git a/apps/vdn-static/src/App.vue b/apps/vdn-static/src/App.vue index 21b089e..3dc7569 100644 --- a/apps/vdn-static/src/App.vue +++ b/apps/vdn-static/src/App.vue @@ -6,63 +6,84 @@ import { vOnClickOutside } from "@vueuse/components"; import { useLocale } from "./i18n"; const burgerOpen: Ref = ref(false); - const toggleBurger = (): void => { - burgerOpen.value = !burgerOpen.value; + burgerOpen.value = !burgerOpen.value; }; - const closeBurger = (): void => { - burgerOpen.value = false; + burgerOpen.value = false; +}; + +const resourcesOpen: Ref = ref(false); +const toggleResources = (): void => { + resourcesOpen.value = !resourcesOpen.value; +}; +const closeResources = (): void => { + resourcesOpen.value = false; }; const locale = useLocale(); +
+ +
+ + + + \ No newline at end of file diff --git a/apps/vdn-static/src/components/molecules/LearningResourceWrapper.vue b/apps/vdn-static/src/components/molecules/LearningResourceWrapper.vue index 0a36ebd..fe21905 100644 --- a/apps/vdn-static/src/components/molecules/LearningResourceWrapper.vue +++ b/apps/vdn-static/src/components/molecules/LearningResourceWrapper.vue @@ -18,13 +18,6 @@ :text="joinText"> - - - - - diff --git a/apps/vdn-static/src/components/pages/ResourcesPage.vue b/apps/vdn-static/src/components/pages/ResourcesPage.vue index df62e19..0514a7c 100644 --- a/apps/vdn-static/src/components/pages/ResourcesPage.vue +++ b/apps/vdn-static/src/components/pages/ResourcesPage.vue @@ -2,31 +2,45 @@ import LearningResourceWrapper from "@/components/molecules/LearningResourceWrapper.vue"; import { useLocale } from "@/i18n"; import { localizeLayout } from "@/utils/localizeLayout"; +import { useRoute } from "vue-router"; +import { computed } from "vue"; const locale = useLocale(); +const route = useRoute(); + +const pageTitle = computed(() => { + const category = route.query.category; + if (category === "learning") return locale.value.navbar.resourcesLearning; + if (category === "cultural") return locale.value.navbar.resourcesCultural; + return locale.value.resources.title; +}); + +const filteredResources = computed(() => { + const all = localizeLayout(locale.value.resources.layout); + const category = route.query.category; + if (!category) return all; + return all.filter(r => r.category === category); +}); +
+
+

{{ pageTitle }}

+
+
+ +
+
+ \ No newline at end of file diff --git a/apps/vdn-static/src/i18n/greeting.ts b/apps/vdn-static/src/i18n/greeting.ts index d1e63ba..6ec2fa4 100644 --- a/apps/vdn-static/src/i18n/greeting.ts +++ b/apps/vdn-static/src/i18n/greeting.ts @@ -20,4 +20,10 @@ export const GREETINGS = [ author: "Tetro", lang: "wodox", }, + { + title: "Bratulla Viossa.net made!", + subtitle: "Hadjiplas per lera Viossa para.", + author: "Maikaelja", + lang: "viossa", + }, ] as const satisfies Greeting[]; diff --git a/apps/vdn-static/src/i18n/locale.ts b/apps/vdn-static/src/i18n/locale.ts index d928a85..59ef2f3 100644 --- a/apps/vdn-static/src/i18n/locale.ts +++ b/apps/vdn-static/src/i18n/locale.ts @@ -16,10 +16,17 @@ export interface Layout { export type VilanticLangs = Record; -export interface Navbar { - whatIsViossa: string; - resources: string; - kotoba: string; +eexport interface Resource { + category: "learning" | "cultural"; + title: string; + subtitle: string; + desc: string; + link: string; + rulesLink: string; + image: string; + alt: string; + joinText: string; + rulesText: string; } export interface HomePage { diff --git a/apps/vdn-static/src/locales/en_US.ts b/apps/vdn-static/src/locales/en_US.ts index a366ae3..7571c6f 100644 --- a/apps/vdn-static/src/locales/en_US.ts +++ b/apps/vdn-static/src/locales/en_US.ts @@ -8,6 +8,8 @@ export default { navbar: { whatIsViossa: "What is Viossa?", resources: "Resources", +resourcesLearning: "Learning Resources", +resourcesCultural: "Cultural Resources", kotoba: "Kotoba", }, home: { @@ -41,6 +43,7 @@ export default { order: ["discord"], data: { discord: { + category: "learning", title: "Discord Server", subtitle: "This is where most of the action happens! Hop on in!", diff --git a/apps/vdn-static/src/locales/vp_VL.ts b/apps/vdn-static/src/locales/vp_VL.ts index 81f5566..2256b08 100644 --- a/apps/vdn-static/src/locales/vp_VL.ts +++ b/apps/vdn-static/src/locales/vp_VL.ts @@ -1,3 +1,4 @@ +import discordImg from "@/assets/discord.png"; import type { Locale } from "@/i18n/locale"; import flakkaImg from "@/assets/flakka.png"; import type { DeepPartial } from "@/utils/deep-partial"; @@ -8,6 +9,8 @@ export default { navbar: { whatIsViossa: "Ka Viossa?", resources: "Lerakran", +resourcesLearning: "Lerakran", +resourcesCultural: "Shakaiting", kotoba: "Kotoba", }, home: { @@ -41,6 +44,7 @@ export default { order: ["discord"], data: { discord: { + category: "learning", title: "Diskordserver", subtitle: "Alting Viossa tsuite slucha na her! Da zetulla jo!", diff --git a/apps/vdn-static/src/locales/wp_VL.ts b/apps/vdn-static/src/locales/wp_VL.ts index 800978b..00f1926 100644 --- a/apps/vdn-static/src/locales/wp_VL.ts +++ b/apps/vdn-static/src/locales/wp_VL.ts @@ -8,7 +8,9 @@ export default { vilanticLangs: { viossa: "viosox", wodox: "wodox" }, navbar: { whatIsViossa: "viosox e ano?", - resources: "tropos", +resources: "tropos", +resourcesLearning: "tropos o gen", +resourcesCultural: "tropos o ro", kotoba: "mot o viosox", }, home: { @@ -42,6 +44,7 @@ export default { order: ["discord"], data: { discord: { + category: "learning", title: "server o Diskord", subtitle: "axilkun ge genilkun po ce! wekatutsa!", desc: "danzalil hez server po 2015. ibe dutukun musra po ce, de ibe wiftutsakun dof po pam, de wekatukun po server!", From 012709591b2e01620ac9fcd2627cc98dfff079f9 Mon Sep 17 00:00:00 2001 From: nikomiko Date: Sun, 1 Mar 2026 22:55:13 -0500 Subject: [PATCH 2/3] fix: mis-merge in greeting.ts --- apps/vdn-static/src/i18n/greeting.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/vdn-static/src/i18n/greeting.ts b/apps/vdn-static/src/i18n/greeting.ts index 64439a9..cbd1e76 100644 --- a/apps/vdn-static/src/i18n/greeting.ts +++ b/apps/vdn-static/src/i18n/greeting.ts @@ -25,7 +25,8 @@ export const GREETINGS = [ subtitle: "Hadjiplas per lera Viossa para.", author: "Maikaelja", lang: "viossa", - }, + }, + { title: "VIOSSA.NET VR̄ATULAŢAJO", subtitle: "Hažilɛ̄ti na viɔssalɛɾa! Viɔssa lɛstɛvr̄ā ɡlɔssa﹐tɛndɔţa!", author: "Rju", From 3d086b546781556ed176afafe347571334b498b5 Mon Sep 17 00:00:00 2001 From: nikomiko Date: Sun, 1 Mar 2026 22:59:12 -0500 Subject: [PATCH 3/3] fix: eexport -> export --- apps/vdn-static/src/i18n/locale.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/vdn-static/src/i18n/locale.ts b/apps/vdn-static/src/i18n/locale.ts index 59ef2f3..da4aabe 100644 --- a/apps/vdn-static/src/i18n/locale.ts +++ b/apps/vdn-static/src/i18n/locale.ts @@ -16,7 +16,7 @@ export interface Layout { export type VilanticLangs = Record; -eexport interface Resource { +export interface Resource { category: "learning" | "cultural"; title: string; subtitle: string;