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">
import { onMount } from 'svelte';
import { locale, _ } from 'svelte-i18n';
import * as Select from '$lib/components/ui/select';
let selectedLocale: string;
@ -29,7 +28,7 @@
}
</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}
<option value={language.value}>{language.label}</option>
{/each}

View File

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

View File

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

View File

@ -12,6 +12,7 @@
import LucideIcon from '$lib/components/LucideIcon.svelte';
import LanguageSwitcher from '$lib/LanguageSwitcher.svelte';
import { _ } from 'svelte-i18n';
import { Github } from 'lucide-svelte';
let searchString = '';
/**
@ -410,11 +411,12 @@
<footer class="mx-auto mt-32 w-full container text-center">
<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>
<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>
<div class="h-4 w-px bg-slate-500/20" />
<a href="/changelog">{$_('changelog')}</a>
<a href="https://github.com/arkohut/memos" target="_blank" rel="noopener noreferrer">
<Github size={16} />
</a>
<div class="h-4 w-px bg-slate-500/20" />
<LanguageSwitcher />
</div>