mirror of
https://github.com/LiuYuYang01/ThriveX-Blog.git
synced 2026-09-03 06:24:24 +08:00
refactor(Copyright, IconCloud): 更新组件样式和链接逻辑
- 修改 Copyright 组件的背景样式以提升视觉效果。 - 更新 IconCloud 组件的链接属性,确保图标链接到正确的外部资源并增强安全性。
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
@@ -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(),
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user