add contact page

This commit is contained in:
syuilo 2024-03-26 19:47:04 +09:00
parent 2f110d879b
commit 7514b2a26a
6 changed files with 52 additions and 3 deletions

View File

@ -45,7 +45,7 @@
<GNuxtLink :to="localePath('/learn-more/')" class="hover:underline">{{ $t('_links.title') }}</GNuxtLink> <GNuxtLink :to="localePath('/learn-more/')" class="hover:underline">{{ $t('_links.title') }}</GNuxtLink>
</li> </li>
<li> <li>
<GNuxtLink to="https://legacy.misskey-hub.net/" target="_blank" class="hover:underline">{{ $t('goToLegacyHub') }}<ExtIco class="ml-1" /></GNuxtLink> <GNuxtLink :to="localePath('/contact/')" class="hover:underline">{{ $t('contactUs') }}</GNuxtLink>
</li> </li>
</ul> </ul>
</div> </div>
@ -69,4 +69,4 @@ const localePath = useGLocalePath();
<style scoped> <style scoped>
</style> </style>

View File

@ -12,6 +12,7 @@ download: "ダウンロード"
browse: "参照" browse: "参照"
settings: "設定" settings: "設定"
goToLegacyHub: "従来のMisskey Hub" goToLegacyHub: "従来のMisskey Hub"
contactUs: "お問い合わせ"
_error: _error:
notFound: "ページが見つかりませんでした" notFound: "ページが見つかりませんでした"
@ -194,6 +195,10 @@ _brandAssets:
banner: "バナー" banner: "バナー"
avatarDecorationTemplate: "アバターデコレーション テンプレート" avatarDecorationTemplate: "アバターデコレーション テンプレート"
_contact:
title: "お問い合わせ"
description: "Misskey Projectへのお問い合わせはこちらから"
_links: _links:
title: "リンク" title: "リンク"
_github: _github:

View File

@ -39,7 +39,7 @@
"ufo": "^1.5.1", "ufo": "^1.5.1",
"vite-svg-loader": "^5.1.0" "vite-svg-loader": "^5.1.0"
}, },
"packageManager": "pnpm@8.10.2", "packageManager": "pnpm@8.15.5",
"dependencies": { "dependencies": {
"nanoid": "^5.0.6" "nanoid": "^5.0.6"
} }

38
pages/contact.vue Normal file
View File

@ -0,0 +1,38 @@
<template>
<div>
<GHero>
<template #title>{{ $t('_contact.title') }}</template>
<template #description>
{{ $t('_contact.description') }}
</template>
<template #icon>
<div class="hidden lg:block relative px-6 py-8">
<GDots class="absolute top-0 left-0 w-32 h-32 text-accent-600" />
<GDots class="absolute bottom-0 right-0 w-32 h-32 text-accent-600" />
<div class="relative lg:w-64">
<img class="drop-shadow-xl" src="/img/emojis/envelope_3d.png" />
</div>
</div>
</template>
</GHero>
<div class="pb-12 lg:mt-12 pt-6 bg-white dark:bg-slate-950">
<div class="container mx-auto max-w-screen-lg px-6 space-y-6 lg:space-y-8">
<div>
<iframe src="https://docs.google.com/forms/d/e/1FAIpQLSf9hV92NTcfzZnJg_mrB11MINpBFdTf8dzGKAmzX8dvwXwZfw/viewform?embedded=true" width="640" height="1058" frameborder="0" marginheight="0" marginwidth="0">読み込んでいます</iframe>
</div>
</div>
</div>
</div>
</template>
<script setup lang="ts">
const { t } = useI18n();
const route = useRoute();
route.meta.title = t('_contact.title');
route.meta.description = t('_contact.description');
</script>
<style scoped>
</style>

View File

@ -61,6 +61,12 @@
title: $t('_aboutUs.title'), title: $t('_aboutUs.title'),
description: $t('_aboutUs.description'), description: $t('_aboutUs.description'),
img: '/img/misc/midev.png', img: '/img/misc/midev.png',
},
{
to: localePath('/contact/'),
title: $t('_contact.title'),
description: $t('_contact.description'),
img: '/img/emojis/envelope_3d.png',
}, },
]" /> ]" />
</div> </div>

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB