From 66c32554c5c9643928b430efe740b806468f32ca Mon Sep 17 00:00:00 2001 From: kakkokari-gtyih Date: Sun, 9 Jul 2023 18:58:53 +0900 Subject: [PATCH] (wip) server page --- assets/css/bootstrap-forms.scss | 29 ++++++++++ assets/css/tailwind.css | 4 ++ assets/data/lang.ts | 82 ++++++++++++++++++++++++++++ components/g/Hero.vue | 21 ++++++++ components/g/Nav.vue | 61 +++++++++++++++++---- components/index/Nav.vue | 2 +- components/servers/Item.vue | 17 ++++++ locales/ja-JP.yml | 27 +++++++++- nuxt.config.ts | 1 + package.json | 2 + pages/servers.vue | 96 ++++++++++++++++++++++++++++++++- pnpm-lock.yaml | 81 ++++++++++++++++++++-------- types/instances-info.ts | 47 ++++++++++++++++ 13 files changed, 436 insertions(+), 34 deletions(-) create mode 100644 assets/css/bootstrap-forms.scss create mode 100644 assets/data/lang.ts create mode 100644 components/g/Hero.vue create mode 100644 components/servers/Item.vue create mode 100644 types/instances-info.ts diff --git a/assets/css/bootstrap-forms.scss b/assets/css/bootstrap-forms.scss new file mode 100644 index 00000000..533434c8 --- /dev/null +++ b/assets/css/bootstrap-forms.scss @@ -0,0 +1,29 @@ +@import "bootstrap/scss/mixins/banner"; +@include bsBanner("Forms & Buttons"); + +//$primary: #4a4c94; +$primary: #86b300; + +// scss-docs-start import-stack +// Configuration +@import "bootstrap/scss/functions"; +@import "bootstrap/scss/variables"; +@import "bootstrap/scss/variables-dark"; +@import "bootstrap/scss/maps"; +@import "bootstrap/scss/mixins"; +@import "bootstrap/scss/utilities"; + +// Layout & components +@import "bootstrap/scss/root"; + +// Breaking down form components +@import "bootstrap/scss/forms/labels"; +@import "bootstrap/scss/forms/form-control"; +@import "bootstrap/scss/forms/form-select"; +@import "bootstrap/scss/forms/form-range"; +@import "bootstrap/scss/forms/form-check"; +@import "bootstrap/scss/forms/input-group"; + +// button +@import "bootstrap/scss/buttons"; +@import "bootstrap/scss/button-group"; \ No newline at end of file diff --git a/assets/css/tailwind.css b/assets/css/tailwind.css index 8a46eecd..29ccace6 100644 --- a/assets/css/tailwind.css +++ b/assets/css/tailwind.css @@ -19,6 +19,10 @@ height: 1em; } +body { + min-height: 100vh; +} + @tailwind base; @tailwind components; @tailwind utilities; diff --git a/assets/data/lang.ts b/assets/data/lang.ts new file mode 100644 index 00000000..88b9564f --- /dev/null +++ b/assets/data/lang.ts @@ -0,0 +1,82 @@ +export default [ + { + "lang": "de", + "label": "Deutsch" + }, + { + "lang": "en", + "label": "English" + }, + { + "lang": "es", + "label": "español" + }, + { + "lang": "es-419", + "label": "español (Latinoamérica)" + }, + { + "lang": "fr", + "label": "français" + }, + { + "lang": "hr", + "label": "hrvatski" + }, + { + "lang": "it", + "label": "italiano" + }, + { + "lang": "nl", + "label": "Nederlands" + }, + { + "lang": "pl", + "label": "polski" + }, + { + "lang": "pt-BR", + "label": "português (Brasil)" + }, + { + "lang": "pt-PT", + "label": "português (Portugal)" + }, + { + "lang": "vi", + "label": "Tiếng Việt" + }, + { + "lang": "tr", + "label": "Türkçe" + }, + { + "lang": "ru", + "label": "русский" + }, + { + "lang": "ar", + "label": "العربية" + }, + { + "lang": "th", + "label": "ไทย" + }, + { + "lang": "ko", + "label": "한국어" + }, + { + "lang": "zh-CN", + "label": "中文 (简体)" + }, + { + "lang": "zh-TW", + "label": "中文 (繁體)" + }, + { + "lang": "ja", + "label": "日本語" + } +]; \ No newline at end of file diff --git a/components/g/Hero.vue b/components/g/Hero.vue new file mode 100644 index 00000000..7b9e7ecc --- /dev/null +++ b/components/g/Hero.vue @@ -0,0 +1,21 @@ + + + + + \ No newline at end of file diff --git a/components/g/Nav.vue b/components/g/Nav.vue index 04dd45f8..472e95fa 100644 --- a/components/g/Nav.vue +++ b/components/g/Nav.vue @@ -1,15 +1,56 @@ - - - \ No newline at end of file diff --git a/components/index/Nav.vue b/components/index/Nav.vue index fb8433eb..52477c3c 100644 --- a/components/index/Nav.vue +++ b/components/index/Nav.vue @@ -3,7 +3,7 @@
-
Misskey Hub
+
{{ $t('_seo.siteName') }}