42 lines
1.4 KiB
TypeScript
42 lines
1.4 KiB
TypeScript
import { PartBoundary } from '@lumina/market/app/error-boundaries';
|
|
import {
|
|
HomeFeed,
|
|
HomeFeedSkeleton,
|
|
HomeGuard,
|
|
} from '@lumina/market/app/screens/(main)/organisms/home-feed';
|
|
import type { Metadata } from 'next';
|
|
import { Suspense } from 'react';
|
|
|
|
import { i18n } from '../../../i18n';
|
|
import { HomeTemplate } from './templates/home-template';
|
|
|
|
export const metadata: Metadata = {
|
|
title: i18n.t('home:meta.title'),
|
|
robots: { index: false },
|
|
};
|
|
|
|
/**
|
|
* خانه, `/feed`: the investor's feed of the creators they follow, under the featured analysts' row,
|
|
* or the featured analysts to follow while they follow nobody (J04-1, J04-2). The server sends
|
|
* only the frame and the feed's skeleton, the same for every visitor; the feed loads in the
|
|
* browser with the session. A guest goes to login, which returns here, and a creator to their own
|
|
* channel. A failed feed shows in a card in the column, as the desktop boards draw a state there
|
|
* (S3, S2-Desktop).
|
|
*/
|
|
export default function HomePage() {
|
|
const skeleton = (
|
|
<HomeFeedSkeleton layout="desktop" label={i18n.t('home:feed.loading')} />
|
|
);
|
|
return (
|
|
<HomeTemplate>
|
|
<PartBoundary name="home-feed" framed>
|
|
<HomeGuard fallback={skeleton}>
|
|
<Suspense fallback={skeleton}>
|
|
<HomeFeed layout="desktop" />
|
|
</Suspense>
|
|
</HomeGuard>
|
|
</PartBoundary>
|
|
</HomeTemplate>
|
|
);
|
|
}
|