From cc78d4e2b1adf729d38a63f6b147544b100f94a3 Mon Sep 17 00:00:00 2001 From: kunish Date: Tue, 5 Sep 2023 21:09:35 +0800 Subject: [PATCH] feat: make some changes in response to community suggestions - make the size of the menu items in header larger - move switch language button to config page --- src/components/Header.tsx | 41 ++++++++++++++------------------------- src/i18n/en.ts | 1 + src/i18n/zh.ts | 1 + src/pages/Config.tsx | 15 +++++++++++++- 4 files changed, 31 insertions(+), 27 deletions(-) diff --git a/src/components/Header.tsx b/src/components/Header.tsx index a85840d..2ed6297 100644 --- a/src/components/Header.tsx +++ b/src/components/Header.tsx @@ -5,7 +5,6 @@ import { IconGlobe, IconGlobeFilled, IconHome, - IconLanguage, IconMenu, IconNetwork, IconPalette, @@ -14,8 +13,7 @@ import { } from '@tabler/icons-solidjs' import { For, ParentComponent, Show, createMemo, createSignal } from 'solid-js' import { twMerge } from 'tailwind-merge' -import { Button } from '~/components' -import { LANG, ROUTES, themes } from '~/constants' +import { ROUTES, themes } from '~/constants' import { renderProxiesInSamePage, setCurTheme, useProxies } from '~/signals' const Nav: ParentComponent<{ href: string; tooltip: string }> = ({ @@ -63,8 +61,19 @@ const ThemeSwitcher = () => ( ) +const LogoText = () => ( + + metacube, +
xd
+
+) + export const Header = () => { - const [t, { locale }] = useI18n() + const [t] = useI18n() const { proxyProviders } = useProxies() const navs = createMemo(() => { const list = [ @@ -148,21 +157,12 @@ export const Header = () => { - - metacube, -
- xd -
-
+ +
+ +
+