fix: demo首页

This commit is contained in:
2025-07-25 06:45:54 -07:00
parent 3e18012b1b
commit 84cd214dc5
36 changed files with 234 additions and 13 deletions
@@ -200,7 +200,7 @@ export default function Page() {
{t('goToPayment')}
</Button>
<Button variant='outline'>
<Link href='/'>{t('productList')}</Link>
<Link href='/apps/user/public'>{t('productList')}</Link>
</Button>
</div>
</div>
+15 -8
View File
@@ -1,11 +1,16 @@
import { GlobalMap } from '@/components/main/global-map';
/*import { GlobalMap } from '@/components/main/global-map';
import { Hero } from '@/components/main/hero';
import { ProductShowcase } from '@/components/main/product-showcase/index';
import { Stats } from '@/components/main/stats';
import { Stats } from '@/components/main/stats';*/
import NewHeader from '@/components/Header/NewHeader';
import { queryUserInfo } from '@/services/user/user';
import { cookies } from 'next/headers';
import { redirect } from 'next/navigation';
import FooterCopyright from '@/components/main/FooterCopyright';
import FullScreenVideoBackground from '@/components/main/FullScreenVideoBackground';
import HomeContent from '@/components/main/HomeContent';
export default async function Home() {
const Authorization = (await cookies()).get('Authorization')?.value;
@@ -26,11 +31,13 @@ export default async function Home() {
}
return (
<main className='container space-y-16'>
<Hero />
<Stats />
<ProductShowcase />
<GlobalMap />
</main>
<>
<NewHeader />
<FullScreenVideoBackground />
<main className='fixed inset-0 z-10 flex items-center justify-center'>
<HomeContent />
</main>
<FooterCopyright />
</>
);
}