♻️refactor: Home Page and Footer

This commit is contained in:
Apple\Apple
2025-05-20 00:23:47 +08:00
parent 59b1e970fd
commit c04a816e59
7 changed files with 262 additions and 173 deletions

View File

@@ -1,11 +1,20 @@
import React from 'react';
import { Spin } from '@douyinfe/semi-ui';
const Loading = ({ prompt: name = 'page' }) => {
const Loading = ({ prompt: name = '', size = 'large' }) => {
return (
<Spin style={{ height: 100 }} spinning={true}>
加载{name}...
</Spin>
<div className="fixed inset-0 w-screen h-screen flex items-center justify-center bg-white/80 z-[1000]">
<div className="flex flex-col items-center">
<Spin
size={size}
spinning={true}
tip={null}
/>
<span className="whitespace-nowrap mt-2 text-center" style={{ color: 'var(--semi-color-primary)' }}>
{name ? `加载${name}中...` : '加载中...'}
</span>
</div>
</div>
);
};