diff --git a/package-lock.json b/package-lock.json index ff2ed64..f689f55 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2625,6 +2625,20 @@ "engines": { "node": ">=18" } + }, + "node_modules/yaml": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.8.0.tgz", + "integrity": "sha512-4lLa/EcQCB0cJkyts+FpIRx5G/llPxfP6VQU5KByHEhLxY3IJCH0f0Hy1MHI8sClTvsIb8qwRJ6R/ZdlDJ/leQ==", + "license": "ISC", + "optional": true, + "peer": true, + "bin": { + "yaml": "bin.mjs" + }, + "engines": { + "node": ">= 14.6" + } } } } diff --git a/src/App.vue b/src/App.vue index b780ec3..e7fb579 100644 --- a/src/App.vue +++ b/src/App.vue @@ -2,33 +2,37 @@
-

BRÅTULA VIOSSA.NET MÅDE

+
+

BRÅTULA VIOSSA.NET MÅDE

+
- - - +
+ +
- + + diff --git a/src/components/molecules/HomeSectionWrapper.vue b/src/components/molecules/HomeSectionWrapper.vue new file mode 100644 index 0000000..b9cb54e --- /dev/null +++ b/src/components/molecules/HomeSectionWrapper.vue @@ -0,0 +1,48 @@ + + + \ No newline at end of file diff --git a/src/components/organisms/HistorySection.vue b/src/components/organisms/HistorySection.vue deleted file mode 100644 index 66fc6df..0000000 --- a/src/components/organisms/HistorySection.vue +++ /dev/null @@ -1,18 +0,0 @@ - \ No newline at end of file diff --git a/src/components/organisms/IntroSection.vue b/src/components/organisms/IntroSection.vue deleted file mode 100644 index 637c073..0000000 --- a/src/components/organisms/IntroSection.vue +++ /dev/null @@ -1,18 +0,0 @@ - \ No newline at end of file diff --git a/src/i18n/index.ts b/src/i18n/index.ts new file mode 100644 index 0000000..47577e2 --- /dev/null +++ b/src/i18n/index.ts @@ -0,0 +1,14 @@ +import { createI18n } from 'vue-i18n' +import en_US from '../locales/en_US' +import type { MessageSchema } from './types' + +const i18n = createI18n<[MessageSchema], 'en_US'>({ + legacy: false, + locale: 'en_US', + fallbackLocale: 'en_US', + messages: { + en_US: en_US + } +}) + +export default i18n \ No newline at end of file diff --git a/src/i18n/types.ts b/src/i18n/types.ts new file mode 100644 index 0000000..2a48527 --- /dev/null +++ b/src/i18n/types.ts @@ -0,0 +1,2 @@ +import en_US from '../locales/en_US' +export type MessageSchema = typeof en_US \ No newline at end of file diff --git a/src/locales/en_US.ts b/src/locales/en_US.ts new file mode 100644 index 0000000..09b2b9e --- /dev/null +++ b/src/locales/en_US.ts @@ -0,0 +1,16 @@ +export default { + "sections": [ + { + "title": "What is Viossa?", + "text": "Cat ipsum dolor sit amet, be superior eats owners hair then claws head gimme attention gimme attention gimme attention gimme attention gimme attention gimme attention just kidding i don't want it anymore meow bye. Avoid the new toy and just play with the box it came in floof tum, tickle bum, jellybean footies curly toes curl up and sleep on the freshly laundered towels hiss and stare at nothing then run suddenly away. Need to check on human, have not seen in an hour might be dead oh look, human is alive, hiss at human, feed me attack the dog then pretend like nothing happened jump on human and sleep on her all night long be long in the bed, purr in the morning and then give a bite to every human around for not waking up request food, purr loud scratch the walls, the floor, the windows, the humans eat prawns daintily with a claw then lick paws clean wash down prawns with a lap of carnation milk then retire to the warmest spot on the couch to claw at the fabric before taking a catnap steal raw zucchini off kitchen counter...", + "image": "/src/assets/flakka.png", + "alt": "Flag of the Viossa Language" + }, + { + "title": "History of Viossa", + "text": "Knock over christmas tree... If it fits i sits, jump five feet high and sideways when a shadow moves, rub face on owner and sometimes switches in french and say \"miaou\" just because well why not. Good morning sunshine, pet a cat, rub its belly, endure blood and agony, quietly weep, keep rubbing belly. Chase ball of string stares at human while pushing stuff off a table ooooh feather moving feather! jump up to edge of bath, fall in then scramble in a mad panic to get out slap kitten brother with paw for chase mice. Have a lot of grump in yourself because you can't forget to be grumpy and not be like king grumpy cat mmmmmmmmmeeeeeeeeooooooooowwwwwwww but cough furball into food bowl then scratch owner for a new one. Scream at teh bath open the door, let me out, let me out, let me-out, let me-aow, let meaow, meaow!", + "image": "/src/assets/flakka.png", + "alt": "Flag of the Viossa Language" + } + ] +} \ No newline at end of file diff --git a/src/main.ts b/src/main.ts index 2425c0f..9b25508 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,5 +1,6 @@ import { createApp } from 'vue' import './style.css' import App from './App.vue' +import i18n from './i18n' -createApp(App).mount('#app') +createApp(App).use(i18n).mount('#app')