From 812eddb0f2519ba6ec9fd6568acd73b30f533210 Mon Sep 17 00:00:00 2001 From: "Fabian @ Blax Software" Date: Tue, 3 Nov 2026 09:39:08 +0100 Subject: [PATCH] feat: landing page title and meta description (with Open Graph) naming what the game is Co-Authored-By: Claude Opus 5.5 --- app/pages/index.vue | 8 ++++++++ i18n/pages/landing.ts | 5 +++++ 2 files changed, 13 insertions(+) diff --git a/app/pages/index.vue b/app/pages/index.vue index 6d4dbf1..f5263e7 100644 --- a/app/pages/index.vue +++ b/app/pages/index.vue @@ -8,6 +8,14 @@ import type { SceneInset } from '~/diorama/scene' const { t } = useI18n() const demo = demoVillage() +useSeoMeta({ + title: () => t('landing.meta.title'), + description: () => t('landing.meta.description'), + ogTitle: () => t('landing.meta.title'), + ogDescription: () => t('landing.meta.description'), + ogType: 'website', +}) + /** What sets the game apart, each shown by the building it is about. */ const POINTS: { key: string; type: BuildingType; level: number }[] = [ { key: 'space', type: 'headquarters', level: 15 }, diff --git a/i18n/pages/landing.ts b/i18n/pages/landing.ts index b3ad16f..9bae1d1 100644 --- a/i18n/pages/landing.ts +++ b/i18n/pages/landing.ts @@ -3,6 +3,11 @@ import type { TranslationFile } from '@blax-software/i18n' export default { en: { landing: { + meta: { + title: 'Kronland: a free browser strategy game of villages, armies and tribes', + description: + 'Kronland is a free browser strategy game in the tradition of Die Stämme (Tribal Wars). Fill your village\'s building space, raise an army, trade with merchants, join a tribe and fight for the crown forts that end each season.', + }, hero: { line: 'A browser strategy game in the tradition of Die\u00a0Stämme (Tribal\u00a0Wars): build villages, raise armies, take land.', free: 'Free to play in the browser. Nothing to download.',