diff --git a/src/app/(home)/page.tsx b/src/app/(home)/page.tsx index 534ae07b43..32533c80db 100644 --- a/src/app/(home)/page.tsx +++ b/src/app/(home)/page.tsx @@ -8,9 +8,11 @@ import Link from 'next/link' import type { PropsWithChildren } from 'react' import { MotionButtonBase } from '~/components/ui/button' +import { RelativeTime } from '~/components/ui/relative-time' import { BottomToUpTransitionView } from '~/components/ui/transition/BottomToUpTransitionView' import { TextUpTransitionView } from '~/components/ui/transition/TextUpTransitionView' import { isSupportIcon, SocialIcon } from '~/components/widgets/home/SocialIcon' +import { PeekLink } from '~/components/widgets/peek/PeekLink' import { PostMetaBar } from '~/components/widgets/post' import { softBouncePrest, softSpringPreset } from '~/constants/spring' import { useConfig } from '~/hooks/data/use-config' @@ -70,10 +72,15 @@ export default function Home() { } const TwoColumnLayout = ({ children, + leftContainerClassName, + rightContainerClassName, }: { children: | [React.ReactNode, React.ReactNode] | [React.ReactNode, React.ReactNode, React.ReactNode] + + leftContainerClassName?: string + rightContainerClassName?: string }) => { return (
@@ -81,7 +88,11 @@ const TwoColumnLayout = ({ return (
{child}
@@ -197,8 +208,8 @@ const Welcome = () => { const PostScreen = () => { const { posts } = useHomeQueryData() return ( - - + + { const NoteScreen = () => { const { notes } = useHomeQueryData() + const theLast = notes[0] + + const hasHistory = notes.length > 1 + + const history = hasHistory ? notes.slice(1) : [] + + if (!theLast) return null return ( - +
-
    - {notes.map((note) => { - return
  • {note.title}
  • - })} -
+
+

+ 看看我的近况,这是我最近的所思所想 +

+
+ +
+

+ {theLast.title} +

+ + + + +
+ + + {!!theLast.images?.[0]?.src && ( +
+ )} +
+
+ + {hasHistory && ( +
+
这里还有一些历史回顾
+
    + {history.map((note) => { + return ( +
  • + + {note.title} + + + + + +
  • + ) + })} +
+
+ )}

而在这里,你会看到一个不同的我,