feat(web): add slogan

This commit is contained in:
arkohut 2024-10-17 22:57:11 +08:00
parent 79fca97320
commit f99d7aa556
4 changed files with 14 additions and 13 deletions

View File

@ -1,7 +1,6 @@
<script lang="ts"> <script lang="ts">
import { onMount } from 'svelte'; import { onMount } from 'svelte';
import { locale, _ } from 'svelte-i18n'; import { locale, _ } from 'svelte-i18n';
import * as Select from '$lib/components/ui/select';
let selectedLocale: string; let selectedLocale: string;
@ -29,7 +28,7 @@
} }
</script> </script>
<select bind:value={selectedLocale} on:change={() => setLocale(selectedLocale)} class="bg-white text-black"> <select bind:value={selectedLocale} on:change={() => setLocale(selectedLocale)} class="bg-white text-slate-500">
{#each languages as language} {#each languages as language}
<option value={language.value}>{language.label}</option> <option value={language.value}>{language.label}</option>
{/each} {/each}

View File

@ -1,6 +1,6 @@
{ {
"libraryFilter": { "libraryFilter": {
"all": "All", "all": "All libs",
"repositoryFilter": "Repository Filter", "repositoryFilter": "Repository Filter",
"selectAll": "Select All" "selectAll": "Select All"
}, },
@ -21,9 +21,9 @@
"searchSummary": "✨ {found} results found - Searched {outOf} recipes in {time}ms.", "searchSummary": "✨ {found} results found - Searched {outOf} recipes in {time}ms.",
"noResults": "No results found.", "noResults": "No results found.",
"copyright": "© 2024 Arkohut Qinini. All rights reserved.", "copyright": "© 2024 Arkohut Qinini. All rights reserved.",
"privacyPolicy": "Privacy policy", "github": "GitHub",
"changelog": "Changelog",
"searchLog": { "searchLog": {
"handleSearchStringChange": "handleSearchStringChange" "handleSearchStringChange": "handleSearchStringChange"
} },
"slogan": "Record, Retrieve, Review"
} }

View File

@ -1,6 +1,6 @@
{ {
"libraryFilter": { "libraryFilter": {
"all": "全部", "all": "全部仓库",
"repositoryFilter": "仓库筛选", "repositoryFilter": "仓库筛选",
"selectAll": "全选" "selectAll": "全选"
}, },
@ -21,9 +21,9 @@
"searchSummary": "✨ 找到 {found} 个结果 - 在 {time} 毫秒内搜索了 {outOf} 个记录。", "searchSummary": "✨ 找到 {found} 个结果 - 在 {time} 毫秒内搜索了 {outOf} 个记录。",
"noResults": "未找到结果。", "noResults": "未找到结果。",
"copyright": "© 2024 Arkohut 漆妮妮 保留所有权利", "copyright": "© 2024 Arkohut 漆妮妮 保留所有权利",
"privacyPolicy": "隐私政策", "github": "GitHub",
"changelog": "更新日志",
"searchLog": { "searchLog": {
"handleSearchStringChange": "处理搜索字符串变化" "handleSearchStringChange": "处理搜索字符串变化"
} },
"slogan": "记录、检索、回顾"
} }

View File

@ -12,6 +12,7 @@
import LucideIcon from '$lib/components/LucideIcon.svelte'; import LucideIcon from '$lib/components/LucideIcon.svelte';
import LanguageSwitcher from '$lib/LanguageSwitcher.svelte'; import LanguageSwitcher from '$lib/LanguageSwitcher.svelte';
import { _ } from 'svelte-i18n'; import { _ } from 'svelte-i18n';
import { Github } from 'lucide-svelte';
let searchString = ''; let searchString = '';
/** /**
@ -410,11 +411,12 @@
<footer class="mx-auto mt-32 w-full container text-center"> <footer class="mx-auto mt-32 w-full container text-center">
<div class="border-t border-slate-900/5 py-10"> <div class="border-t border-slate-900/5 py-10">
<p class="mt-2 text-sm leading-6 text-slate-500">{$_('slogan')}</p>
<p class="mt-2 text-sm leading-6 text-slate-500">{$_('copyright')}</p> <p class="mt-2 text-sm leading-6 text-slate-500">{$_('copyright')}</p>
<div class="mt-2 flex justify-center items-center space-x-4 text-sm font-semibold leading-6 text-slate-700"> <div class="mt-2 flex justify-center items-center space-x-4 text-sm font-semibold leading-6 text-slate-700">
<a href="/privacy-policy">{$_('privacyPolicy')}</a> <a href="https://github.com/arkohut/memos" target="_blank" rel="noopener noreferrer">
<div class="h-4 w-px bg-slate-500/20" /> <Github size={16} />
<a href="/changelog">{$_('changelog')}</a> </a>
<div class="h-4 w-px bg-slate-500/20" /> <div class="h-4 w-px bg-slate-500/20" />
<LanguageSwitcher /> <LanguageSwitcher />
</div> </div>