From 5a692f54e7749886da1db37f9b930792a729a041 Mon Sep 17 00:00:00 2001 From: kakkokari-gtyih Date: Mon, 10 Jul 2023 03:09:50 +0900 Subject: [PATCH] (add) server page --- app.vue | 3 +- assets/data/lang.ts | 16 +-- assets/js/misc/index.ts | 14 +++ components/g/Footer.vue | 6 +- components/g/Nav.vue | 114 +++++++++++++------- components/index/Features.vue | 2 +- components/index/GetStarted.vue | 6 +- components/index/Nav.vue | 27 ++++- components/index/Sponsors.vue | 22 ++++ components/index/hero/Particles.vue | 27 +++-- components/servers/Item.vue | 43 +++++++- layouts/default.vue | 2 +- locales/ja-JP.yml | 15 +-- pages/index.vue | 3 +- pages/servers.vue | 155 ++++++++++++++++++++++++---- public/fonts/fonts.css | 12 +++ public/img/sponsors/dcadvirth.png | Bin 0 -> 186900 bytes public/img/sponsors/rss3.svg | 1 + tailwind.config.ts | 6 +- types/instances-info.ts | 6 +- 20 files changed, 379 insertions(+), 101 deletions(-) create mode 100644 assets/js/misc/index.ts create mode 100644 components/index/Sponsors.vue create mode 100644 public/img/sponsors/dcadvirth.png create mode 100644 public/img/sponsors/rss3.svg diff --git a/app.vue b/app.vue index b6156cf6..3193f277 100644 --- a/app.vue +++ b/app.vue @@ -54,6 +54,7 @@ const getLdJson = (additionalGraphes: Thing[] = []): string => { useHead((): Record => ({ htmlAttrs: { lang: locale.value, + 'data-bs-theme': colorMode.value, }, title: getTitle(), meta: [ @@ -84,7 +85,7 @@ useHead((): Record => ({ })); \ No newline at end of file diff --git a/tailwind.config.ts b/tailwind.config.ts index 80ab6b75..6e68003f 100644 --- a/tailwind.config.ts +++ b/tailwind.config.ts @@ -31,9 +31,9 @@ export default { }, }, fontFamily: { - 'title': ['Capriola', 'GenJyuuGothicX', ...defaultTheme.fontFamily.sans], - 'sans': ['Nunito', 'GenJyuuGothicX', ...defaultTheme.fontFamily.sans], - 'content-sans': ['Nunito', 'GenJyuuGothicXP', ...defaultTheme.fontFamily.sans], + 'title': ['Capriola', 'var(--mi-localized-font, \'\')', ...defaultTheme.fontFamily.sans], + 'sans': ['Nunito', 'var(--mi-localized-font, \'\')', ...defaultTheme.fontFamily.sans], + 'content-sans': ['Nunito', 'var(--mi-localized-font-p, var(--mi-localized-font))', ...defaultTheme.fontFamily.sans], } }, plugins: [], diff --git a/types/instances-info.ts b/types/instances-info.ts index d3c98a0d..408988ff 100644 --- a/types/instances-info.ts +++ b/types/instances-info.ts @@ -19,11 +19,11 @@ export type InstanceItem = { /** Icon Image existance */ icon: boolean; /** nodeinfo */ - nodeinfo: Object | null, + nodeinfo: Record | null, /** result of api/meta */ - meta: Object | null, + meta: Record | null, - stats?: Object, // deprecated (result of api/stats) + stats?: Record, // deprecated (result of api/stats) }; /** JSON Object Returned from `joinmisskey/api`. */