panel-web/apps/user/components/main/HomeContent.tsx

42 lines
1.4 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

'use client';
import { Button } from '@workspace/ui/components/button';
import { useRef } from 'react';
import OfferDialog, { OfferDialogRef } from './OfferDialog/index';
export default function HomeContent() {
const dialogRef = useRef<OfferDialogRef>(null);
return (
<div className='flex min-h-[calc(100vh-73px)] flex-col items-center justify-center pt-8'>
{/* 大标题 */}
<h1 className='mb-10 text-5xl font-bold !leading-tight text-white md:text-6xl'>
<br />
<br />
</h1>
{/* 副标题 */}
<div className='mb-16 text-left text-[17px] leading-normal text-white md:text-center md:font-bold'>
<p className={'w-[255px] md:w-full'}>
<span className='mr-2 text-white'>
Airo<sup className='text-[8px]'></sup>Port
</span>
<span></span>
</p>
<p className={'mt-1 w-[255px] md:mt-0 md:w-full'}></p>
</div>
{/* 按钮 */}
<Button
onClick={() => dialogRef.current?.show()}
className='mb-8 h-[64px] w-[219px] rounded-full border-2 border-white bg-white/10 text-2xl font-bold text-white transition hover:bg-white/20'
>
</Button>
<OfferDialog ref={dialogRef} />
</div>
);
}