From 002d86dc5491f87cdc0d3dbad3632adf4c1a04e9 Mon Sep 17 00:00:00 2001 From: celine Date: Fri, 12 Dec 2025 03:14:45 -0500 Subject: [PATCH] update to teh layout, wip comment deisgn --- app/p/[didOrHandle]/ProfilePageLayout.tsx | 89 ++++++++------- .../ProfileTabs/Activity/Activity.tsx | 14 --- .../ProfileTabs/Activity/Comment.tsx | 12 --- .../ProfileTabs/Activity/Publication.tsx | 0 .../ProfileTabs/TabContent.tsx/Comment.tsx | 101 ++++++++++++++++++ .../{Activity => TabContent.tsx}/Post.tsx | 0 .../Subscription.tsx | 0 app/p/[didOrHandle]/ProfileTabs/Tabs.tsx | 5 +- 8 files changed, 157 insertions(+), 64 deletions(-) delete mode 100644 app/p/[didOrHandle]/ProfileTabs/Activity/Activity.tsx delete mode 100644 app/p/[didOrHandle]/ProfileTabs/Activity/Comment.tsx delete mode 100644 app/p/[didOrHandle]/ProfileTabs/Activity/Publication.tsx create mode 100644 app/p/[didOrHandle]/ProfileTabs/TabContent.tsx/Comment.tsx rename app/p/[didOrHandle]/ProfileTabs/{Activity => TabContent.tsx}/Post.tsx (100%) rename app/p/[didOrHandle]/ProfileTabs/{Activity => TabContent.tsx}/Subscription.tsx (100%) diff --git a/app/p/[didOrHandle]/ProfilePageLayout.tsx b/app/p/[didOrHandle]/ProfilePageLayout.tsx index 4f940ad2..994f0aec 100644 --- a/app/p/[didOrHandle]/ProfilePageLayout.tsx +++ b/app/p/[didOrHandle]/ProfilePageLayout.tsx @@ -69,49 +69,66 @@ const ProfilePageContent = (props: { if (!props.profile) return; return ( -
+
- -

- {profileRecord.displayName - ? profileRecord.displayName - : `@${props.profile?.handle}`} -

- {profileRecord.displayName && ( -
- @{props.profile?.handle} + > + +

+ {profileRecord.displayName + ? profileRecord.displayName + : `@${props.profile?.handle}`} +

+ {profileRecord.displayName && ( +
+ @{props.profile?.handle} +
+ )} +
{profileRecord.description}
+
+
pub 1
+
pub 2
- )} -
{profileRecord.description}
-
- {props.publications.map((p) => ( - + +
+ - ))} +
+
{profileRecord.description}
+
+ {props.publications.map((p) => ( + + ))} +
+ +
- -
); }; diff --git a/app/p/[didOrHandle]/ProfileTabs/Activity/Activity.tsx b/app/p/[didOrHandle]/ProfileTabs/Activity/Activity.tsx deleted file mode 100644 index 99f5fe30..00000000 --- a/app/p/[didOrHandle]/ProfileTabs/Activity/Activity.tsx +++ /dev/null @@ -1,14 +0,0 @@ -export const Activity = (props: { - icon: React.ReactNode; - activity: React.ReactNode; - content: React.ReactNode; -}) => { - return ( -
-
- {props.icon} {props.activity} -
-
{props.content}
-
- ); -}; diff --git a/app/p/[didOrHandle]/ProfileTabs/Activity/Comment.tsx b/app/p/[didOrHandle]/ProfileTabs/Activity/Comment.tsx deleted file mode 100644 index 0c4648d4..00000000 --- a/app/p/[didOrHandle]/ProfileTabs/Activity/Comment.tsx +++ /dev/null @@ -1,12 +0,0 @@ -import { CommentTiny } from "components/Icons/CommentTiny"; -import { Activity } from "./Activity"; - -export const CommentActivty = () => { - return ( - } - activity={"celine commented"} - content={
hello
} - /> - ); -}; diff --git a/app/p/[didOrHandle]/ProfileTabs/Activity/Publication.tsx b/app/p/[didOrHandle]/ProfileTabs/Activity/Publication.tsx deleted file mode 100644 index e69de29b..00000000 diff --git a/app/p/[didOrHandle]/ProfileTabs/TabContent.tsx/Comment.tsx b/app/p/[didOrHandle]/ProfileTabs/TabContent.tsx/Comment.tsx new file mode 100644 index 00000000..c6e485c7 --- /dev/null +++ b/app/p/[didOrHandle]/ProfileTabs/TabContent.tsx/Comment.tsx @@ -0,0 +1,101 @@ +import Post from "app/lish/[did]/[publication]/[rkey]/l-quote/[quote]/page"; +import { CommentTiny } from "components/Icons/CommentTiny"; + +export const CommentTabContent = () => { + let isReply = true; + return ( + <> + + + + + + ); +}; + +const PostListingCompact = (props: { title: string; pubName: string }) => { + return ( +
+ {props.title} +
+ {props.pubName} +
+
+ ); +}; + +const Comment = (props: { + displayName: React.ReactNode; + handle: string; + comment: string; + reply?: boolean; +}) => { + return ( +
+
+
+
+ + {props.reply && ( +
+ )} +
+
+
+
+ {props.displayName} +
+ {props.reply &&
reply
} +
+
+ {props.comment} +
+
+
+
+ ); +}; + +const CommentWrapper1 = (props: { isReply?: boolean }) => { + return ( +
+ + {props.isReply && ( + + )} + +
+ ); +}; + +const CommentWrapper2 = (props: { isReply?: boolean }) => { + return ( +
+ + celine commented on{" "} + + Leaflet Lab Notes + +
+ } + handle="cozylittle.house" + comment="Here's my reply! I'm hoping i can makie ti long enought to space two lines. Do we want rich text here? Probably not since we dont support that anyway lol" + /> +
+ ); +}; diff --git a/app/p/[didOrHandle]/ProfileTabs/Activity/Post.tsx b/app/p/[didOrHandle]/ProfileTabs/TabContent.tsx/Post.tsx similarity index 100% rename from app/p/[didOrHandle]/ProfileTabs/Activity/Post.tsx rename to app/p/[didOrHandle]/ProfileTabs/TabContent.tsx/Post.tsx diff --git a/app/p/[didOrHandle]/ProfileTabs/Activity/Subscription.tsx b/app/p/[didOrHandle]/ProfileTabs/TabContent.tsx/Subscription.tsx similarity index 100% rename from app/p/[didOrHandle]/ProfileTabs/Activity/Subscription.tsx rename to app/p/[didOrHandle]/ProfileTabs/TabContent.tsx/Subscription.tsx diff --git a/app/p/[didOrHandle]/ProfileTabs/Tabs.tsx b/app/p/[didOrHandle]/ProfileTabs/Tabs.tsx index c8d4b1e4..3eb8a9c3 100644 --- a/app/p/[didOrHandle]/ProfileTabs/Tabs.tsx +++ b/app/p/[didOrHandle]/ProfileTabs/Tabs.tsx @@ -6,6 +6,7 @@ import type { Cursor } from "../getProfilePosts"; import { getProfilePosts } from "../getProfilePosts"; import useSWRInfinite from "swr/infinite"; import { useEffect, useRef } from "react"; +import { CommentTabContent } from "./TabContent.tsx/Comment"; export const ProfileTabs = (props: { tab: profileTabsType; @@ -38,7 +39,7 @@ export const ProfileTabs = (props: { }} />
-
+
); }; @@ -59,7 +60,7 @@ export const TabContent = (props: { /> ); case "comments": - return
comments here!
; + return ; case "subscriptions": return
subscriptions here!
; } -- 2.51.2