refactor(Copyright, IconCloud): 更新组件样式和链接逻辑

- 修改 Copyright 组件的背景样式以提升视觉效果。
- 更新 IconCloud 组件的链接属性,确保图标链接到正确的外部资源并增强安全性。
This commit is contained in:
刘宇阳
2026-07-09 09:47:03 +08:00
parent ca3f426561
commit 0104bcded1
2 changed files with 5 additions and 5 deletions

View File

@@ -7,7 +7,7 @@ const Copyright = () => {
return (
<div className="my-10 w-full select-none">
<div className="relative flex flex-col gap-4 pt-8 border-t border-gray-200 dark:border-white/10">
<div className="absolute -top-3 left-1/2 -translate-x-1/2 bg-white dark:bg-black-b px-3 text-primary dark:text-blue-400">
<div className="absolute -top-2 left-1/2 -translate-x-1/2 bg-white dark:bg-black-a px-3 text-primary dark:text-blue-400">
<FiPenTool className="text-sm -rotate-45" />
</div>

View File

@@ -43,10 +43,10 @@ export const renderCustomIcon = (icon: SimpleIcon, theme: string) => {
minContrastRatio,
size: 42,
aProps: {
href: undefined,
target: undefined,
rel: undefined,
onClick: (e: any) => e.preventDefault(),
href: `https://simpleicons.org/icons/${icon.slug}`,
target: '_blank',
rel: 'noopener noreferrer',
onClick: (e: React.MouseEvent<HTMLAnchorElement>) => e.preventDefault(),
},
});
};