This commit is contained in:
2025-10-20 13:30:47 +08:00
parent 15af405d02
commit e2e1e9e9e9
9 changed files with 1779 additions and 145 deletions

View File

@@ -13,6 +13,10 @@ const tabs = [
{
key: 'world',
title: '世界'
},
{
key: 'docs',
title: '文档'
}
];
@@ -35,6 +39,12 @@ export const BaseApp = () => {
</div>
);
case 'docs':
return (
<div className="flex items-center justify-center h-96 text-gray-500">
</div>
);
default:
return null;
}
@@ -49,11 +59,10 @@ export const BaseApp = () => {
<button
key={tab.key}
onClick={() => setActiveTab(tab.key)}
className={`py-2 px-1 border-b-2 font-medium text-sm ${
activeTab === tab.key
? 'border-blue-500 text-blue-600'
: 'border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300'
}`}
className={`py-2 px-1 border-b-2 font-medium text-sm ${activeTab === tab.key
? 'border-blue-500 text-blue-600'
: 'border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300'
}`}
>
{tab.title}
</button>