23 changed files with 235 additions and 132 deletions
@ -1,13 +1,16 @@ |
|||||||
import SecondaryPageLayout from '@/layouts/SecondaryPageLayout' |
import SecondaryPageLayout from '@/layouts/SecondaryPageLayout' |
||||||
|
import { forwardRef } from 'react' |
||||||
import { useTranslation } from 'react-i18next' |
import { useTranslation } from 'react-i18next' |
||||||
|
|
||||||
export default function HomePage({ index }: { index?: number }) { |
const HomePage = forwardRef(({ index }: { index?: number }, ref) => { |
||||||
const { t } = useTranslation() |
const { t } = useTranslation() |
||||||
return ( |
return ( |
||||||
<SecondaryPageLayout index={index} hideBackButton> |
<SecondaryPageLayout ref={ref} index={index} hideBackButton> |
||||||
<div className="text-muted-foreground w-full h-screen flex items-center justify-center"> |
<div className="text-muted-foreground w-full h-screen flex items-center justify-center"> |
||||||
{t('Welcome! 🥳')} |
{t('Welcome! 🥳')} |
||||||
</div> |
</div> |
||||||
</SecondaryPageLayout> |
</SecondaryPageLayout> |
||||||
) |
) |
||||||
} |
}) |
||||||
|
HomePage.displayName = 'HomePage' |
||||||
|
export default HomePage |
||||||
|
|||||||
@ -1,11 +1,14 @@ |
|||||||
import SecondaryPageLayout from '@/layouts/SecondaryPageLayout' |
import SecondaryPageLayout from '@/layouts/SecondaryPageLayout' |
||||||
|
import { forwardRef } from 'react' |
||||||
|
|
||||||
export default function LoadingPage({ title, index }: { title?: string; index?: number }) { |
const LoadingPage = forwardRef(({ title, index }: { title?: string; index?: number }, ref) => { |
||||||
return ( |
return ( |
||||||
<SecondaryPageLayout index={index} title={title}> |
<SecondaryPageLayout ref={ref} index={index} title={title}> |
||||||
<div className="text-muted-foreground text-center"> |
<div className="text-muted-foreground text-center"> |
||||||
<div>Loading...</div> |
<div>Loading...</div> |
||||||
</div> |
</div> |
||||||
</SecondaryPageLayout> |
</SecondaryPageLayout> |
||||||
) |
) |
||||||
} |
}) |
||||||
|
LoadingPage.displayName = 'LoadingPage' |
||||||
|
export default LoadingPage |
||||||
|
|||||||
@ -1,15 +1,18 @@ |
|||||||
import SecondaryPageLayout from '@/layouts/SecondaryPageLayout' |
import SecondaryPageLayout from '@/layouts/SecondaryPageLayout' |
||||||
|
import { forwardRef } from 'react' |
||||||
import { useTranslation } from 'react-i18next' |
import { useTranslation } from 'react-i18next' |
||||||
|
|
||||||
export default function NotFoundPage({ index }: { index?: number }) { |
const NotFoundPage = forwardRef(({ index }: { index?: number }, ref) => { |
||||||
const { t } = useTranslation() |
const { t } = useTranslation() |
||||||
|
|
||||||
return ( |
return ( |
||||||
<SecondaryPageLayout index={index} hideBackButton> |
<SecondaryPageLayout ref={ref} index={index} hideBackButton> |
||||||
<div className="text-muted-foreground w-full h-full flex flex-col items-center justify-center gap-2"> |
<div className="text-muted-foreground w-full h-full flex flex-col items-center justify-center gap-2"> |
||||||
<div>{t('Lost in the void')} 🌌</div> |
<div>{t('Lost in the void')} 🌌</div> |
||||||
<div>(404)</div> |
<div>(404)</div> |
||||||
</div> |
</div> |
||||||
</SecondaryPageLayout> |
</SecondaryPageLayout> |
||||||
) |
) |
||||||
} |
}) |
||||||
|
NotFoundPage.displayName = 'NotFoundPage' |
||||||
|
export default NotFoundPage |
||||||
|
|||||||
Loading…
Reference in new issue