Changeset 1579b4f for frontend/src/components/userProfile/UserListModal.tsx
- Timestamp:
- 02/10/26 21:58:39 (5 months ago)
- Branches:
- main
- Children:
- 92db381
- Parents:
- 0808ef2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
frontend/src/components/userProfile/UserListModal.tsx
r0808ef2 r1579b4f 1 1 import { useNavigate } from "react-router-dom"; 2 import { baseURL } from "../../api/axiosInstance"; 2 3 import type { BaseNonAdminUser } from "../../utils/types"; 3 4 … … 16 17 }: ModalProps) => { 17 18 const navigate = useNavigate(); 18 const baseURL = import.meta.env.VITE_API_BASE_URL;19 19 20 20 return ( 21 <div className="fixed inset-0 z-50 flex items-center justify-center bg-black/ 50 backdrop-blur-sm">22 <div className="bg- whiterounded-xl shadow-2xl w-full max-w-md max-h-[70vh] flex flex-col">23 <div className="p-4 border-b flex justify-between items-center">24 <h2 className="text-xl font-bold ">{title}</h2>21 <div className="fixed inset-0 z-50 flex items-center justify-center bg-black/60 backdrop-blur-sm"> 22 <div className="bg-[#1a1a2e] border border-white/10 rounded-xl shadow-2xl w-full max-w-md max-h-[70vh] flex flex-col"> 23 <div className="p-4 border-b border-white/10 flex justify-between items-center"> 24 <h2 className="text-xl font-bold text-white">{title}</h2> 25 25 <button 26 26 onClick={onClose} 27 className="text-gray- 500 hover:text-black text-2xl cursor-pointer"27 className="text-gray-400 hover:text-white text-2xl cursor-pointer transition-colors" 28 28 > 29 29 × … … 38 38 <div 39 39 key={u.username} 40 className="flex items-center justify-between p-3 hover:bg- gray-50rounded-lg transition-colors"40 className="flex items-center justify-between p-3 hover:bg-white/5 rounded-lg transition-colors" 41 41 > 42 42 <div … … 47 47 }} 48 48 > 49 <div className="w-10 h-10 rounded-full bg- blue-100overflow-hidden shrink-0 flex items-center justify-center">49 <div className="w-10 h-10 rounded-full bg-[#282828] overflow-hidden shrink-0 flex items-center justify-center"> 50 50 {u.profilePhoto ? ( 51 51 <img … … 55 55 /> 56 56 ) : ( 57 <span className="text- blue-600font-bold">57 <span className="text-[#1db954] font-bold"> 58 58 {u.fullName.charAt(0)} 59 59 </span> 60 60 )} 61 61 </div> 62 <p className="font-semibold text-gray-900">{u.fullName}</p> 62 <div> 63 <p className="font-semibold text-white">{u.fullName}</p> 64 <p className="text-sm text-gray-400">@{u.username}</p> 65 </div> 63 66 </div> 64 67 65 68 <button 66 69 onClick={() => onFollowToggle(u.username)} 67 className={`px-4 py-1 text-sm font-medium rounded-mdtransition-colors cursor-pointer ${70 className={`px-4 py-1.5 text-sm font-medium rounded-full transition-colors cursor-pointer ${ 68 71 u.isFollowedByCurrentUser 69 ? "bg- gray-200 text-gray-700 hover:bg-gray-300"70 : "bg- blue-500 text-white hover:bg-blue-600"72 ? "bg-white/10 text-white hover:bg-white/20" 73 : "bg-[#1db954] text-black hover:bg-[#1ed760]" 71 74 }`} 72 75 > 73 {u.isFollowedByCurrentUser ? " Unfollow" : "Follow"}76 {u.isFollowedByCurrentUser ? "Following" : "Follow"} 74 77 </button> 75 78 </div>
Note:
See TracChangeset
for help on using the changeset viewer.
