diff --git a/apps/X/app/message/page.tsx b/apps/X/app/message/page.tsx new file mode 100644 index 0000000..e55db55 --- /dev/null +++ b/apps/X/app/message/page.tsx @@ -0,0 +1,3 @@ +export default function Page() { + return
Message
; +} diff --git a/apps/X/app/page.tsx b/apps/X/app/page.tsx index 35d8c22..c8b67c8 100644 --- a/apps/X/app/page.tsx +++ b/apps/X/app/page.tsx @@ -6,7 +6,6 @@ const Page = async () => { try { const session = await getServerSession(authOptions); console.log("Full session object:", JSON.stringify(session, null, 2)); - console.log("UseriD test>>>>>>>>>>>>>>", session?.user?.id); if (!session?.user?.id) { console.log("No valid session, redirecting to signin"); diff --git a/apps/X/src/components/ui/Post/Post.tsx b/apps/X/src/components/ui/Post/Post.tsx new file mode 100644 index 0000000..2096881 --- /dev/null +++ b/apps/X/src/components/ui/Post/Post.tsx @@ -0,0 +1,5 @@ +export const Post = (IsOpen: boolean) => { + return
+ +
; +}; diff --git a/apps/X/src/components/ui/Post/TopPost.tsx b/apps/X/src/components/ui/Post/TopPost.tsx index 3a086a6..eb7fa5b 100644 --- a/apps/X/src/components/ui/Post/TopPost.tsx +++ b/apps/X/src/components/ui/Post/TopPost.tsx @@ -49,7 +49,7 @@ export const TopPost = () => {
{
-
- +
+
+ +
+ + Media +
-
- +
+
+ +
+ + GIF +
-
- +
+
+ +
+ + GROK +
-
- +
+
+ +
+ + Poll +
-
- +
+
+ +
+ + Emoji +
-
- +
+
+ +
+ + Schedule +
-
- +
+
+ +
+ + Location +
-
- +
+
+ +
+ + Bold +
-
- +
+
+ +
+ + Italic +
- +
+ +
diff --git a/apps/X/src/components/ui/home/CenterComp.tsx b/apps/X/src/components/ui/home/CenterComp.tsx index 889c0c2..8b70ccf 100644 --- a/apps/X/src/components/ui/home/CenterComp.tsx +++ b/apps/X/src/components/ui/home/CenterComp.tsx @@ -2,7 +2,7 @@ import { TopHead, TopPost, TweetComp } from ".."; export const CenterComp = () => { return ( -
+
@@ -11,8 +11,13 @@ export const CenterComp = () => {
+ + + +
); }; //border border-slate-800 border-x-0 +//custom:w-11/12 w-max-96 diff --git a/apps/X/src/components/ui/home/HomeComp.tsx b/apps/X/src/components/ui/home/HomeComp.tsx index 1937964..1182bab 100644 --- a/apps/X/src/components/ui/home/HomeComp.tsx +++ b/apps/X/src/components/ui/home/HomeComp.tsx @@ -2,31 +2,21 @@ import { CenterComp, HomeLeft, HomeRight } from "@/components/ui"; export const HomeComp = () => { return ( -
-
-
-
-
- -
-
-
+
+
+
+
+
+ +
+
-
+
- {/*
-
-
- -
-
-
-
-
*/} {/* border-slate-800 border border-y-0 h-screen */}
); diff --git a/apps/X/src/components/ui/home/HomeLeft.tsx b/apps/X/src/components/ui/home/HomeLeft.tsx index b8000a7..6d96e9b 100644 --- a/apps/X/src/components/ui/home/HomeLeft.tsx +++ b/apps/X/src/components/ui/home/HomeLeft.tsx @@ -6,112 +6,134 @@ import { FaRegBookmark } from "react-icons/fa"; import { FaRegUser } from "react-icons/fa6"; import { GoHome } from "react-icons/go"; import { IoMdSearch } from "react-icons/io"; +import { TbOctagonPlus } from "react-icons/tb"; import { MdOutlineMail } from "react-icons/md"; import { RiGroupLine, RiNotification2Line } from "react-icons/ri"; import { Button, UserAvatar, X_logo } from ".."; import GrokIcon from "../Grok"; import X_Icon from "../X_Icon"; +import Link from "next/link"; +import { useState } from "react"; export const HomeLeft = () => { + const [isOpen, setIsOpen] = useState(false); + + const onPostClick = () => { + console.log("Click"); + setIsOpen(!isOpen); + }; return (
-
-
-
- -
+
+
+ +
+ +
+
-
-
- + +
+
+ +
+
Home
- Home -
+
-
-
+
+
- Explore +
Explore
-
-
+
+
- Notifications +
Notifications
-
-
+
+
- Messages +
Messages
-
-
+
+
- Grok +
Grok
-
-
+
+
- Premium +
Premium
-
-
+
+
- Bookmarks +
Bookmarks
-
-
+
+
- Communities +
Communities
-
-
+
+
- Verified Orgs +
Communities
-
-
+
+
- Profile +
Profile
-
-
-
+
+
+
- More +
More
- +
+ + +
diff --git a/apps/X/tailwind.config.js b/apps/X/tailwind.config.js index 5076d01..c8339c5 100644 --- a/apps/X/tailwind.config.js +++ b/apps/X/tailwind.config.js @@ -12,7 +12,7 @@ export default { theme: { extend: { screens: { - custom: "927px", + custom: "961px", }, borderRadius: { lg: "var(--radius)",