57 lines
1.3 KiB
TypeScript
57 lines
1.3 KiB
TypeScript
import I18nKey from "@i18n/i18nKey";
|
|
import { i18n } from "@i18n/translation";
|
|
import { LinkPreset, type NavBarLink } from "@/types/config";
|
|
|
|
export const LinkPresets: { [key in LinkPreset]: NavBarLink } = {
|
|
[LinkPreset.Home]: {
|
|
name: i18n(I18nKey.home),
|
|
url: "/",
|
|
icon: "material-symbols:home",
|
|
},
|
|
[LinkPreset.About]: {
|
|
name: i18n(I18nKey.about),
|
|
url: "/about/",
|
|
icon: "material-symbols:person",
|
|
},
|
|
[LinkPreset.Archive]: {
|
|
name: i18n(I18nKey.archive),
|
|
url: "/archive/",
|
|
icon: "material-symbols:archive",
|
|
},
|
|
[LinkPreset.Friends]: {
|
|
name: i18n(I18nKey.friends),
|
|
url: "/friends/",
|
|
icon: "material-symbols:group",
|
|
},
|
|
[LinkPreset.Anime]: {
|
|
name: i18n(I18nKey.anime),
|
|
url: "/anime/",
|
|
icon: "material-symbols:movie",
|
|
},
|
|
[LinkPreset.Diary]: {
|
|
name: i18n(I18nKey.diary),
|
|
url: "/diary/",
|
|
icon: "material-symbols:book",
|
|
},
|
|
[LinkPreset.Gallery]: {
|
|
name: i18n(I18nKey.gallery),
|
|
url: "/gallery/",
|
|
icon: "material-symbols:photo-library",
|
|
},
|
|
[LinkPreset.Projects]: {
|
|
name: i18n(I18nKey.projects),
|
|
url: "/projects/",
|
|
icon: "material-symbols:work",
|
|
},
|
|
[LinkPreset.Skills]: {
|
|
name: i18n(I18nKey.skills),
|
|
url: "/skills/",
|
|
icon: "material-symbols:psychology",
|
|
},
|
|
[LinkPreset.Timeline]: {
|
|
name: i18n(I18nKey.timeline),
|
|
url: "/timeline/",
|
|
icon: "material-symbols:timeline",
|
|
},
|
|
};
|