|
1 |
| -import { BottomToUpSoftScaleTransitionView } from '~/components/ui/transition/BottomToUpSoftScaleTransitionView' |
2 |
| -import { BottomToUpTransitionView } from '~/components/ui/transition/BottomToUpTransitionView' |
3 | 1 | import { TocAside } from '~/components/widgets/toc'
|
4 | 2 | import { LayoutRightSidePortal } from '~/providers/shared/LayoutRightSideProvider'
|
5 | 3 | import { WrappedElementProvider } from '~/providers/shared/WrappedElementProvider'
|
6 | 4 |
|
7 |
| -import { |
8 |
| - HeaderMetaInfoSetting, |
9 |
| - MarkdownImageRecordProviderInternal, |
10 |
| - PageLoading, |
11 |
| - PagePaginator, |
12 |
| - PageSubTitle, |
13 |
| - PageTitle, |
14 |
| - PostMarkdown, |
15 |
| -} from './pageExtra' |
| 5 | +import { MarkdownImageRecordProviderInternal, PostMarkdown } from './pageExtra' |
16 | 6 |
|
17 | 7 | const PageDetail = () => {
|
18 | 8 | return (
|
19 |
| - <PageLoading> |
20 |
| - <div className="relative w-full min-w-0"> |
21 |
| - <HeaderMetaInfoSetting /> |
22 |
| - <article className="prose"> |
23 |
| - <header className="mb-8"> |
24 |
| - <BottomToUpSoftScaleTransitionView delay={0}> |
25 |
| - <PageTitle /> |
26 |
| - </BottomToUpSoftScaleTransitionView> |
| 9 | + <WrappedElementProvider> |
| 10 | + <MarkdownImageRecordProviderInternal> |
| 11 | + <PostMarkdown /> |
| 12 | + </MarkdownImageRecordProviderInternal> |
27 | 13 |
|
28 |
| - <BottomToUpSoftScaleTransitionView delay={200}> |
29 |
| - <PageSubTitle /> |
30 |
| - </BottomToUpSoftScaleTransitionView> |
31 |
| - </header> |
32 |
| - <WrappedElementProvider> |
33 |
| - <MarkdownImageRecordProviderInternal> |
34 |
| - <BottomToUpTransitionView delay={600}> |
35 |
| - <PostMarkdown /> |
36 |
| - </BottomToUpTransitionView> |
37 |
| - </MarkdownImageRecordProviderInternal> |
38 |
| - |
39 |
| - <LayoutRightSidePortal> |
40 |
| - <TocAside |
41 |
| - className="sticky top-[120px] ml-4 mt-[120px]" |
42 |
| - treeClassName="max-h-[calc(100vh-6rem-4.5rem-300px)] h-[calc(100vh-6rem-4.5rem-300px)] min-h-[120px] relative" |
43 |
| - /> |
44 |
| - </LayoutRightSidePortal> |
45 |
| - </WrappedElementProvider> |
46 |
| - </article> |
47 |
| - <PagePaginator /> |
48 |
| - </div> |
49 |
| - </PageLoading> |
| 14 | + <LayoutRightSidePortal> |
| 15 | + <TocAside |
| 16 | + className="sticky top-[120px] ml-4 mt-[120px]" |
| 17 | + treeClassName="max-h-[calc(100vh-6rem-4.5rem-300px)] h-[calc(100vh-6rem-4.5rem-300px)] min-h-[120px] relative" |
| 18 | + /> |
| 19 | + </LayoutRightSidePortal> |
| 20 | + </WrappedElementProvider> |
50 | 21 | )
|
51 | 22 | }
|
52 | 23 | export default PageDetail
|
0 commit comments