2023-03-09 09:08:42 -05:00
|
|
|
import { OpenSplatnet } from 'components/OpenSplatnet';
|
2023-03-08 16:36:14 -05:00
|
|
|
import { LogPanel, RunPanel } from 'components/RunPanel';
|
2023-03-06 15:32:09 -05:00
|
|
|
import { STAT_INK } from 'constant';
|
2023-03-04 08:10:30 -05:00
|
|
|
import React from 'react'
|
2023-03-06 07:21:29 -05:00
|
|
|
import { useTranslation } from 'react-i18next';
|
2023-03-06 09:01:18 -05:00
|
|
|
import { Link } from "react-router-dom";
|
2023-03-04 08:10:30 -05:00
|
|
|
|
2023-03-06 07:21:29 -05:00
|
|
|
export const Home: React.FC = () => {
|
|
|
|
|
const { t } = useTranslation();
|
2023-03-03 09:06:14 -05:00
|
|
|
|
2023-03-08 16:36:14 -05:00
|
|
|
return <div className='flex p-2 w-full h-full gap-2'>
|
2023-03-09 06:33:32 -05:00
|
|
|
<div className='max-w-full h-full md:max-w-sm flex-auto'>
|
|
|
|
|
<div className='flex flex-col gap-2 h-full'>
|
|
|
|
|
<LogPanel className='sm:hidden flex-auto' />
|
2023-03-08 12:03:57 -05:00
|
|
|
<RunPanel />
|
2023-03-08 17:38:39 -05:00
|
|
|
<Link to='/settings' className='btn'>{t('设置')}</Link>
|
2023-03-09 06:33:32 -05:00
|
|
|
<div className='flex gap-2 flex-auto-all'>
|
2023-03-09 09:08:42 -05:00
|
|
|
<OpenSplatnet>{t('打开鱿鱼圈3')}</OpenSplatnet>
|
2023-07-04 07:40:22 -04:00
|
|
|
<a className='btn w-full' href={STAT_INK} target='_blank' rel='noreferrer'>{t('前往 stat.ink')}</a>
|
2023-03-09 06:33:32 -05:00
|
|
|
</div>
|
2023-03-06 15:32:09 -05:00
|
|
|
</div>
|
2023-03-06 07:21:29 -05:00
|
|
|
</div>
|
2023-03-08 16:36:14 -05:00
|
|
|
<LogPanel className='hidden sm:block flex-1' />
|
|
|
|
|
</div>
|
2023-03-04 06:19:24 -05:00
|
|
|
}
|