24 lines
724 B
TypeScript
24 lines
724 B
TypeScript
|
|
const beianList = [
|
|
{
|
|
hostname: 'https://kevisual.xiongxiao.me',
|
|
beian: '蜀ICP备16031039号-2'
|
|
},
|
|
{
|
|
hostname: 'https://kevisual.cn',
|
|
beian: '浙ICP备2025158778号'
|
|
}
|
|
]
|
|
|
|
export const Beian = () => {
|
|
const hostname = window.location.hostname;
|
|
const beianInfo = beianList.find(item => hostname.includes(item.hostname.replace('https://', '').replace('http://', '')));
|
|
if (!beianInfo) return null;
|
|
return (
|
|
<div className="text-center text-sm text-gray-500 my-2 fixed bottom-0 w-full bg-white/70 backdrop-blur-sm py-1">
|
|
<a href="https://beian.miit.gov.cn/" target="_blank" rel="noopener noreferrer" className="hover:underline">
|
|
{beianInfo.beian}
|
|
</a>
|
|
</div>
|
|
);
|
|
} |