fix: demo首页
This commit is contained in:
+1
-1
@@ -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>
|
||||
@@ -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 />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user