Skip to content

Commit 2364a66

Browse files
committed
调整签名和人工生成 copyright
1 parent 83d60c3 commit 2364a66

File tree

4 files changed

+37
-25
lines changed

4 files changed

+37
-25
lines changed

packages/pure/components/basic/Header.astro

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,24 @@
11
---
2+
import { Image } from 'astro:assets'
23
import config from 'virtual:config'
34
5+
import signature from '@/assets/signature.svg'
6+
47
import { Icon } from '../user'
58
---
69

710
<header-component
811
class='group sticky top-4 z-30 md:z-50 mb-12 flex items-center justify-between rounded-xl border border-transparent max-sm:py-1 sm:rounded-2xl'
912
>
10-
<a
11-
class='z-30 text-xl font-semibold group-[.not-top]:ms-2 sm:group-[.not-top]:ms-3'
12-
style='transition:margin-inline 0.3s; font-family: "ZSFT-e";'
13-
href='/'
14-
aria-label='Brand'>{config.title}</a
15-
>
13+
<a href='/' aria-label='Brand' class='z-30 flex items-center gap-x-2'>
14+
<span class='text-xl font-semibold' style='font-family: "ZSFT-e";'>{config.title}</span>
15+
<Image
16+
src={signature}
17+
alt='`catcodeme`: generate by signature.cnrad.dev, animation by Claude AI'
18+
class='w-12 h-auto opacity-50 md:w-24'
19+
loading='lazy'
20+
/>
21+
</a>
1622

1723
<div class='flex items-center gap-x-2'>
1824
{/* Menu links */}

packages/pure/components/pages/Copyright.astro

Lines changed: 23 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import type { CollectionKey, InferEntrySchema } from 'astro:content'
44
import config from 'virtual:config'
55
66
import avatar from '@/assets/avatar.jpeg' // 根据实际路径调整
7+
8+
import human from '@/assets/human.webp'
79
import signature from '@/assets/signature.svg'
810
911
import { cn, getFormattedDate, showToast } from '../../utils'
@@ -50,12 +52,11 @@ const showToastStr = showToast.toString()
5052
className
5153
)}
5254
>
53-
<Icon class='absolute end-4 top-4 size-20 opacity-10' name='copyright' />
5455
<Image
55-
src={signature}
56-
alt="`catcodeme`: generate by signature.cnrad.dev, animation by Claude AI"
57-
class="absolute bottom-0 right-0 w-24 h-auto opacity-50 md:w-48"
58-
loading="lazy"
56+
src={human}
57+
alt='this svg find at here: https://www.introvertdrawingclub.com/p/human-intelligence-badge'
58+
class='absolute end-4 top-4 size-20 bottom-0 right-3 w-15 h-auto md:w-24'
59+
loading='lazy'
5960
/>
6061

6162
{/* title & link */}
@@ -65,7 +66,9 @@ const showToastStr = showToast.toString()
6566
</div>
6667

6768
{/* common info */}
68-
<div class='flex flex-col gap-y-2 sm:flex-row sm:flex-wrap sm:justify-start sm:gap-x-8 sm:gap-y-1'>
69+
<div
70+
class='flex flex-col gap-y-2 sm:flex-row sm:flex-wrap sm:justify-start sm:gap-x-8 sm:gap-y-1'
71+
>
6972
{/* 小屏幕布局:垂直排列 */}
7073
<div class='flex flex-col gap-y-2 sm:hidden'>
7174
{/* 图片 + Author 名称在一行 */}
@@ -81,20 +84,22 @@ const showToastStr = showToast.toString()
8184
<span>Author</span>
8285
<span class='text-sm text-foreground'>{config.author}</span>
8386
</div>
84-
87+
8588
{/* Published at 另起一行 */}
86-
{publishDate && (
87-
<div class='flex items-center gap-x-2'>
88-
<span>Published at</span>
89-
<span class='text-sm text-foreground'>
90-
{getFormattedDate(publishDate, {
91-
month: 'long'
92-
})}
93-
</span>
94-
</div>
95-
)}
89+
{
90+
publishDate && (
91+
<div class='flex items-center gap-x-2'>
92+
<span>Published at</span>
93+
<span class='text-sm text-foreground'>
94+
{getFormattedDate(publishDate, {
95+
month: 'long'
96+
})}
97+
</span>
98+
</div>
99+
)
100+
}
96101
</div>
97-
102+
98103
{/* 大屏幕布局:保持原有的图片切换效果 */}
99104
<div class='hidden sm:flex sm:items-center sm:gap-x-2 sm:flex-col'>
100105
<div class='relative group h-12 sm:min-w-16'>

src/assets/human.webp

261 KB
Binary file not shown.

src/assets/signature.svg

Lines changed: 2 additions & 1 deletion
Loading

0 commit comments

Comments
 (0)