feat: author & lang credits for greetings, flag icons, hero banner styling updates
This commit is contained in:
parent
169ef685ce
commit
3c0e46c9ab
8 changed files with 42 additions and 4 deletions
BIN
apps/vdn-static/src/assets/flag_vp.webp
Normal file
BIN
apps/vdn-static/src/assets/flag_vp.webp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.4 KiB |
BIN
apps/vdn-static/src/assets/flag_wp.webp
Normal file
BIN
apps/vdn-static/src/assets/flag_wp.webp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.2 KiB |
|
|
@ -2,6 +2,7 @@
|
||||||
import HomeSectionWrapper from "@/components/molecules/HomeSectionWrapper.vue";
|
import HomeSectionWrapper from "@/components/molecules/HomeSectionWrapper.vue";
|
||||||
import { useLocale } from "@/i18n";
|
import { useLocale } from "@/i18n";
|
||||||
import { GREETINGS, type Greeting } from "@/i18n/greeting";
|
import { GREETINGS, type Greeting } from "@/i18n/greeting";
|
||||||
|
import { VILANTIC_ID_TO_FLAG } from "@/i18n/vilantic";
|
||||||
import { localizeLayout } from "@/utils/localizeLayout";
|
import { localizeLayout } from "@/utils/localizeLayout";
|
||||||
import { randomElement } from "@/utils/random";
|
import { randomElement } from "@/utils/random";
|
||||||
|
|
||||||
|
|
@ -11,10 +12,23 @@ const greeting: Greeting = randomElement(GREETINGS);
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<section class="hero is-primary">
|
<section class="hero has-background-primary-soft is-primary">
|
||||||
<div class="hero-body">
|
<div
|
||||||
<div class="title">{{ greeting.title }}</div>
|
class="hero-body"
|
||||||
<div class="subtitle">{{ greeting.subtitle }}</div>
|
style="padding-top: 3.75rem; padding-bottom: 3rem">
|
||||||
|
<div class="title has-text-text-bold">{{ greeting.title }}</div>
|
||||||
|
<div class="subtitle has-text-text-bold mb-4">
|
||||||
|
{{ greeting.subtitle }}
|
||||||
|
</div>
|
||||||
|
<div
|
||||||
|
class="subtitle is-size-6 is-flex is-flex-direction-row is-align-items-center is-gap-1 has-text-text-bold">
|
||||||
|
— {{ greeting.author }} ({{
|
||||||
|
locale.vilanticLangs[greeting.lang]
|
||||||
|
}})
|
||||||
|
<figure class="image is-32x32">
|
||||||
|
<img :src="VILANTIC_ID_TO_FLAG[greeting.lang]" />
|
||||||
|
</figure>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,23 @@
|
||||||
|
import type { VilanticId } from "./vilantic";
|
||||||
|
|
||||||
export interface Greeting {
|
export interface Greeting {
|
||||||
title: string;
|
title: string;
|
||||||
subtitle: string;
|
subtitle: string;
|
||||||
|
author: string;
|
||||||
|
lang: VilanticId;
|
||||||
}
|
}
|
||||||
|
|
||||||
export const GREETINGS = [
|
export const GREETINGS = [
|
||||||
{
|
{
|
||||||
title: "BRÅTULA VIOSSA.NET MÅDE",
|
title: "BRÅTULA VIOSSA.NET MÅDE",
|
||||||
subtitle: "Hadjiplas per lera para Viossa – glossa fu vi",
|
subtitle: "Hadjiplas per lera para Viossa – glossa fu vi",
|
||||||
|
author: "Jez",
|
||||||
|
lang: "viossa",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "akka po viossa.net!",
|
title: "akka po viossa.net!",
|
||||||
subtitle: "kenomasufobo o gen wi tropos o viosox",
|
subtitle: "kenomasufobo o gen wi tropos o viosox",
|
||||||
|
author: "Tetro",
|
||||||
|
lang: "wodox",
|
||||||
},
|
},
|
||||||
] as const satisfies Greeting[];
|
] as const satisfies Greeting[];
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,8 @@
|
||||||
|
import type { VilanticId } from "./vilantic";
|
||||||
|
|
||||||
export interface Locale {
|
export interface Locale {
|
||||||
localeName: string;
|
localeName: string;
|
||||||
|
vilanticLangs: VilanticLangs;
|
||||||
navbar: Navbar;
|
navbar: Navbar;
|
||||||
home: HomePage;
|
home: HomePage;
|
||||||
resources: ResourcesPage;
|
resources: ResourcesPage;
|
||||||
|
|
@ -11,6 +14,8 @@ export interface Layout<T> {
|
||||||
data: { [K in keyof T]: T[K] };
|
data: { [K in keyof T]: T[K] };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type VilanticLangs = Record<VilanticId, string>;
|
||||||
|
|
||||||
export interface Navbar {
|
export interface Navbar {
|
||||||
whatIsViossa: string;
|
whatIsViossa: string;
|
||||||
resources: string;
|
resources: string;
|
||||||
|
|
|
||||||
9
apps/vdn-static/src/i18n/vilantic.ts
Normal file
9
apps/vdn-static/src/i18n/vilantic.ts
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
import viossaFlag from "@/assets/flag_vp.webp";
|
||||||
|
import wodoxFlag from "@/assets/flag_wp.webp";
|
||||||
|
|
||||||
|
export type VilanticId = "viossa" | "wodox";
|
||||||
|
|
||||||
|
export const VILANTIC_ID_TO_FLAG = {
|
||||||
|
viossa: viossaFlag,
|
||||||
|
wodox: wodoxFlag,
|
||||||
|
} as const satisfies Record<VilanticId, string>;
|
||||||
|
|
@ -4,6 +4,7 @@ import discordImg from "@/assets/discord.png";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
localeName: "English",
|
localeName: "English",
|
||||||
|
vilanticLangs: { viossa: "Viossa", wodox: "Wodoch" },
|
||||||
navbar: {
|
navbar: {
|
||||||
whatIsViossa: "What is Viossa?",
|
whatIsViossa: "What is Viossa?",
|
||||||
resources: "Resources",
|
resources: "Resources",
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@ import type { DeepPartial } from "@/utils/deep-partial";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
localeName: "wodox",
|
localeName: "wodox",
|
||||||
|
vilanticLangs: { viossa: "viosox", wodox: "wodox" },
|
||||||
navbar: {
|
navbar: {
|
||||||
whatIsViossa: "viosox e ano?",
|
whatIsViossa: "viosox e ano?",
|
||||||
resources: "tropos",
|
resources: "tropos",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue