feat: update LogoText

This commit is contained in:
kunish 2023-09-07 12:31:22 +08:00
parent f56e82a9e1
commit 8d62c9f510
No known key found for this signature in database
GPG Key ID: 647A12B4F782C430
3 changed files with 16 additions and 11 deletions

View File

@ -12,6 +12,7 @@ import {
} from '@tabler/icons-solidjs' } from '@tabler/icons-solidjs'
import { For, ParentComponent, Show, createSignal } from 'solid-js' import { For, ParentComponent, Show, createSignal } from 'solid-js'
import { twMerge } from 'tailwind-merge' import { twMerge } from 'tailwind-merge'
import { LogoText } from '~/components'
import { ROUTES, themes } from '~/constants' import { ROUTES, themes } from '~/constants'
import { setCurTheme } from '~/signals' import { setCurTheme } from '~/signals'
@ -60,17 +61,6 @@ const ThemeSwitcher = () => (
</div> </div>
) )
const LogoText = () => (
<a
class="text-md flex gap-2 whitespace-nowrap font-bold uppercase sm:text-xl"
href="https://github.com/metacubex/metacubexd"
target="_blank"
>
<span>metacube, </span>
<div class="transition-transform hover:rotate-90 hover:scale-125">xd</div>
</a>
)
export const Header = () => { export const Header = () => {
const [t] = useI18n() const [t] = useI18n()
const navs = () => [ const navs = () => [

View File

@ -0,0 +1,14 @@
export const LogoText = () => (
<a
class="text-md flex items-center gap-1 whitespace-nowrap font-bold uppercase sm:text-xl"
href="https://github.com/metacubex/metacubexd"
target="_blank"
>
<span class="text-primary">metacube</span>
<span>(</span>
<div class="text-accent transition-transform hover:rotate-90 hover:scale-125">
xd
</div>
<span>)</span>
</a>
)

View File

@ -4,6 +4,7 @@ export * from './ConnectionsTableOrderingModal'
export * from './ForTwoColumns' export * from './ForTwoColumns'
export * from './Header' export * from './Header'
export * from './Latency' export * from './Latency'
export * from './LogoText'
export * from './ProxyCardGroups' export * from './ProxyCardGroups'
export * from './ProxyNodeCard' export * from './ProxyNodeCard'
export * from './ProxyNodePreview' export * from './ProxyNodePreview'