Skip to content

Commit

Permalink
add about me and support me
Browse files Browse the repository at this point in the history
  • Loading branch information
rwv committed Aug 16, 2022
1 parent 0357193 commit ff038f1
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 4 deletions.
17 changes: 13 additions & 4 deletions src/components/Misc/TheIndexViewHead.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,26 @@
{{ t("base.description") }}
</n-p>

<n-space size="large">
<NavigateToScan />
<NavigateToGitHub />
<n-space vertical :size="0">
<n-space size="large">
<NavigateToScan />
<NavigateToGitHub />
</n-space>

<n-space size="large">
<NavigateToHomePage />
<NavigateToSupportMe />
</n-space>
</n-space>
</n-space>
</template>

<script setup lang="ts">
import { NH1, NP, NSpace, NButton, NIcon } from "naive-ui";
import { NH1, NP, NSpace } from "naive-ui";
import NavigateToScan from "@/components/buttons/NavigateToScan.vue";
import NavigateToGitHub from "@/components/buttons/NavigateToGitHub.vue";
import NavigateToHomePage from "@/components/buttons/NavigateToHomePage.vue";
import NavigateToSupportMe from "@/components/buttons/NavigateToSupportMe.vue";
import { useI18n } from "vue-i18n";
Expand Down
23 changes: 23 additions & 0 deletions src/components/buttons/NavigateToHomePage.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<template>
<n-button
text
tag="a"
href="https://zczc.cz"
target="_blank"
>
<template #icon>
<n-icon>
<Home12Regular />
</n-icon>
</template>
{{ t("actions.navigateToHomePage") }}
</n-button>
</template>

<script setup lang="ts">
import { NButton, NIcon } from "naive-ui";
import { Home12Regular } from "@vicons/fluent";
import { useI18n } from "vue-i18n";
const { t } = useI18n();
</script>
18 changes: 18 additions & 0 deletions src/components/buttons/NavigateToSupportMe.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<template>
<n-button text tag="a" href="https://zczc.cz" target="_blank">
<template #icon>
<n-icon>
<Heart />
</n-icon>
</template>
{{ t("actions.navigateToSupportMe") }}
</n-button>
</template>

<script setup lang="ts">
import { NButton, NIcon } from "naive-ui";
import { Heart } from "@vicons/ionicons5";
import { useI18n } from "vue-i18n";
const { t } = useI18n();
</script>
2 changes: 2 additions & 0 deletions src/locale/en/actions.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
export const actions = {
navigateToScan: "Scan",
navigateToHomePage: "About Me",
navigateToSupportMe: "Support Me",
backToIndex: "Back",
preview: "Preview",
save: "Save",
Expand Down
2 changes: 2 additions & 0 deletions src/locale/zh-CN/actions.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
export const actions = {
navigateToScan: "开始扫描",
navigateToHomePage: "我的主页",
navigateToSupportMe: "支持我",
backToIndex: "返回",
preview: "预览",
save: "保存",
Expand Down

0 comments on commit ff038f1

Please sign in to comment.