@@ -6,112 +6,134 @@ import { FaRegBookmark } from "react-icons/fa";
66import { FaRegUser } from "react-icons/fa6" ;
77import { GoHome } from "react-icons/go" ;
88import { IoMdSearch } from "react-icons/io" ;
9+ import { TbOctagonPlus } from "react-icons/tb" ;
910import { MdOutlineMail } from "react-icons/md" ;
1011import { RiGroupLine , RiNotification2Line } from "react-icons/ri" ;
1112import { Button , UserAvatar , X_logo } from ".." ;
1213import GrokIcon from "../Grok" ;
1314import X_Icon from "../X_Icon" ;
15+ import Link from "next/link" ;
16+ import { useState } from "react" ;
1417export const HomeLeft = ( ) => {
18+ const [ isOpen , setIsOpen ] = useState ( false ) ;
19+
20+ const onPostClick = ( ) => {
21+ console . log ( "Click" ) ;
22+ setIsOpen ( ! isOpen ) ;
23+ } ;
1524 return (
1625 < div >
1726 < div className = "h-screen flex flex-col justify-between pt-6" >
1827 < div className = "flex flex-col items-end" >
19- < div className = "flex flex-col align-baseline" >
20- < div >
21- < div className = "mb-4 ml-4" >
22- < X_logo />
23- </ div >
28+ < div className = "flex flex-col " >
29+ < div className = "w-8 custom:w-full" >
30+ < Link href = { "/home" } >
31+ < div className = "mb-4 ml-4" >
32+ < X_logo />
33+ </ div >
34+ </ Link >
2435 < div className = "flex items-center text-xl mb-3 " >
25- < div className = "hover:bg-neutral-900 flex gap-4 hover:bg-opacity-40 transition duration-200 hover:rounded-2xl px-4 py-2" >
26- < div className = "text-2xl " >
27- < GoHome />
36+ < Link href = { "/home" } >
37+ < div className = "custom:hover:bg-neutral-900 flex gap-4 hover:bg-opacity-40 transition duration-200 hover:rounded-2xl px-4 py-2" >
38+ < div className = "text-2xl hover:bg-neutral-900 flex gap-4 hover:bg-opacity-40 transition duration-200 hover:rounded-2xl" >
39+ < GoHome />
40+ </ div >
41+ < div className = "custom:visible invisible" > Home</ div >
2842 </ div >
29- Home
30- </ div >
43+ </ Link >
3144 </ div >
3245 < div className = "flex items-center text-xl mb-3" >
33- < div className = "hover:bg-neutral-900 flex gap-4 hover:bg-opacity-40 transition duration-200 hover:rounded-2xl px-4 py-2 items-center" >
34- < div className = "text-2xl" >
46+ < div className = "custom: hover:bg-neutral-900 flex gap-4 custom: hover:bg-opacity-40 transition duration-200 custom: hover:rounded-2xl px-4 py-2 items-center" >
47+ < div className = "hover:bg-neutral-900 flex gap-4 hover:bg-opacity-40 transition duration-200 hover:rounded-2xl text-2xl" >
3548 < IoMdSearch />
3649 </ div >
37- Explore
50+ < div className = "custom:visible invisible" > Explore</ div >
3851 </ div >
3952 </ div >
4053 < div className = "flex items-center text-xl mb-3" >
41- < div className = "hover:bg-neutral-900 flex gap-4 hover:bg-opacity-40 transition duration-200 hover:rounded-2xl px-4 py-2" >
42- < div className = "text-2xl" >
54+ < div className = "custom: hover:bg-neutral-900 flex gap-4 custom: hover:bg-opacity-40 transition duration-200 custom: hover:rounded-2xl px-4 py-2" >
55+ < div className = "hover:bg-neutral-900 flex gap-4 hover:bg-opacity-40 transition duration-200 hover:rounded-2xl text-2xl" >
4356 < RiNotification2Line />
4457 </ div >
45- Notifications
58+ < div className = "custom:visible invisible" > Notifications</ div >
4659 </ div >
4760 </ div >
4861 < div className = "flex items-center text-xl mb-3" >
49- < div className = "hover:bg-neutral-900 flex gap-4 hover:bg-opacity-40 transition duration-200 hover:rounded-2xl px-4 py-2" >
50- < div className = "text-2xl" >
62+ < div className = "custom: hover:bg-neutral-900 flex gap-4 custom: hover:bg-opacity-40 transition duration-200 custom: hover:rounded-2xl px-4 py-2" >
63+ < div className = "hover:bg-neutral-900 flex gap-4 hover:bg-opacity-40 transition duration-200 hover:rounded-2xl text-2xl" >
5164 < MdOutlineMail />
5265 </ div >
53- Messages
66+ < div className = "custom:visible invisible" > Messages</ div >
5467 </ div >
5568 </ div >
5669 < div className = "flex items-center text-xl mb-3" >
57- < div className = "hover:bg-neutral-900 flex gap-4 hover:bg-opacity-40 transition duration-200 hover:rounded-2xl px-4 py-2" >
58- < div className = "text-2xl" >
70+ < div className = "custom: hover:bg-neutral-900 flex gap-4 custom: hover:bg-opacity-40 transition duration-200 custom: hover:rounded-2xl px-4 py-2" >
71+ < div className = "hover:bg-neutral-900 flex gap-4 hover:bg-opacity-40 transition duration-200 hover:rounded-2xl text-2xl" >
5972 < GrokIcon />
6073 </ div >
61- Grok
74+ < div className = "custom:visible invisible" > Grok</ div >
6275 </ div >
6376 </ div >
6477 < div className = "flex items-center text-xl mb-3" >
65- < div className = "hover:bg-neutral-900 flex gap-4 hover:bg-opacity-40 transition duration-200 hover:rounded-2xl px-4 py-2 items-center" >
66- < div className = "text-3xl " >
78+ < div className = "custom: hover:bg-neutral-900 flex gap-4 custom: hover:bg-opacity-40 transition duration-200 custom: hover:rounded-2xl px-4 py-2 items-center" >
79+ < div className = "hover:bg-neutral-900 flex gap-4 hover:bg-opacity-40 transition duration-200 hover:rounded-2xl text-2xl " >
6780 < X_Icon />
6881 </ div >
69- Premium
82+ < div className = "custom:visible invisible" > Premium</ div >
7083 </ div >
7184 </ div >
7285 < div className = "flex items-center text-xl mb-3" >
73- < div className = "hover:bg-neutral-900 flex gap-4 hover:bg-opacity-40 transition duration-200 hover:rounded-2xl px-4 py-2" >
74- < div className = "text-2xl" >
86+ < div className = "custom: hover:bg-neutral-900 flex gap-4 custom: hover:bg-opacity-40 transition duration-200 custom: hover:rounded-2xl px-4 py-2" >
87+ < div className = "hover:bg-neutral-800 flex gap-4 hover:bg-opacity-40 transition duration-200 hover:rounded-2xl text-2xl" >
7588 < FaRegBookmark />
7689 </ div >
77- Bookmarks
90+ < div className = "custom:visible invisible" > Bookmarks</ div >
7891 </ div >
7992 </ div >
8093 < div className = "flex items-center text-xl mb-3" >
81- < div className = "hover:bg-neutral-900 flex gap-4 hover:bg-opacity-40 transition duration-200 hover:rounded-2xl px-4 py-2" >
82- < div className = "text-2xl" >
94+ < div className = "custom: hover:bg-neutral-900 flex gap-4 custom: hover:bg-opacity-40 transition duration-200 custom: hover:rounded-2xl px-4 py-2" >
95+ < div className = "hover:bg-neutral-900 flex gap-4 hover:bg-opacity-40 transition duration-200 hover:rounded-2xl text-2xl" >
8396 < RiGroupLine />
8497 </ div >
85- Communities
98+ < div className = "custom:visible invisible" > Communities</ div >
8699 </ div >
87100 </ div >
88101 < div className = "flex items-center text-xl mb-3" >
89- < div className = "hover:bg-neutral-900 flex gap-4 hover:bg-opacity-40 transition duration-200 hover:rounded-2xl px-4 py-2" >
90- < div className = "text-2xl" >
102+ < div className = "custom: hover:bg-neutral-900 flex gap-4 custom: hover:bg-opacity-40 transition duration-200 custom: hover:rounded-2xl px-4 py-2" >
103+ < div className = "hover:bg-neutral-900 flex gap-4 hover:bg-opacity-40 transition duration-200 hover:rounded-2xl text-2xl" >
91104 < AiOutlineThunderbolt />
92105 </ div >
93- Verified Orgs
106+ < div className = "custom:visible invisible" > Communities </ div >
94107 </ div >
95108 </ div >
96109 < div className = "flex items-center text-xl mb-3" >
97- < div className = "hover:bg-neutral-900 flex gap-4 hover:bg-opacity-40 transition duration-200 hover:rounded-2xl px-4 py-2" >
98- < div className = "text-2xl" >
110+ < div className = "custom: hover:bg-neutral-900 flex gap-4 custom: hover:bg-opacity-40 transition duration-200 custom: hover:rounded-2xl px-4 py-2" >
111+ < div className = "hover:bg-neutral-900 flex gap-4 hover:bg-opacity-40 transition duration-200 hover:rounded-2xl text-2xl" >
99112 < FaRegUser />
100113 </ div >
101- Profile
114+ < div className = "custom:visible invisible" > Profile</ div >
102115 </ div >
103116 </ div >
104- < div className = "flex items-center py-0.5 gap-4 text-xl mb-3 " >
105- < div className = "hover:bg-neutral-900 flex gap-4 hover:bg-opacity-40 transition duration-200 hover:rounded-2xl px-4 py-2" >
106- < div className = "text-2xl" >
117+ < div className = "flex items-center py-0.5 gap-4 text-xl" >
118+ < div className = "custom: hover:bg-neutral-900 flex gap-4 custom: hover:bg-opacity-40 transition duration-200 custom: hover:rounded-2xl px-4 py-2" >
119+ < div className = "hover:bg-neutral-900 flex gap-4 hover:bg-opacity-40 transition duration-200 hover:rounded-2xl text-2xl" >
107120 < CgMoreO />
108121 </ div >
109- More
122+ < div className = "custom:visible invisible" > More</ div >
110123 </ div >
111124 </ div >
112- < Button className = "rounded-3xl w-full mt-6 px-20 py-6 font-semibold " >
113- Post
114- </ Button >
125+ < div className = "" >
126+ < Button
127+ className = "invisible custom:visible rounded-3xl w-full custom:mt-3 px-20 py-6 font-semibold"
128+ onClick = { onPostClick }
129+ >
130+ Post
131+ </ Button >
132+ < TbOctagonPlus
133+ className = "custom:hidden block text-4xl ml-3 cursor-pointer hover:bg-white hover:rounded-3xl hover:text-black "
134+ onClick = { onPostClick }
135+ />
136+ </ div >
115137 </ div >
116138 < div className = "mt-28" >
117139 < div >
0 commit comments