Ignore:
Timestamp:
02/10/26 21:58:39 (5 months ago)
Author:
Filip Gavrilovski <filipgavrilovski28@…>
Branches:
main
Children:
92db381
Parents:
0808ef2
Message:

refactor artist, collection, listener components to have similar style as other components; refactor some dto-s

File:
1 edited

Legend:

Unmodified
Added
Removed
  • frontend/src/components/userProfile/UserListModal.tsx

    r0808ef2 r1579b4f  
    11import { useNavigate } from "react-router-dom";
     2import { baseURL } from "../../api/axiosInstance";
    23import type { BaseNonAdminUser } from "../../utils/types";
    34
     
    1617}: ModalProps) => {
    1718        const navigate = useNavigate();
    18         const baseURL = import.meta.env.VITE_API_BASE_URL;
    1919
    2020        return (
    21                 <div className="fixed inset-0 z-50 flex items-center justify-center bg-black/50 backdrop-blur-sm">
    22                         <div className="bg-white rounded-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>
    2525                                        <button
    2626                                                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"
    2828                                        >
    2929                                                &times;
     
    3838                                                        <div
    3939                                                                key={u.username}
    40                                                                 className="flex items-center justify-between p-3 hover:bg-gray-50 rounded-lg transition-colors"
     40                                                                className="flex items-center justify-between p-3 hover:bg-white/5 rounded-lg transition-colors"
    4141                                                        >
    4242                                                                <div
     
    4747                                                                        }}
    4848                                                                >
    49                                                                         <div className="w-10 h-10 rounded-full bg-blue-100 overflow-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">
    5050                                                                                {u.profilePhoto ? (
    5151                                                                                        <img
     
    5555                                                                                        />
    5656                                                                                ) : (
    57                                                                                         <span className="text-blue-600 font-bold">
     57                                                                                        <span className="text-[#1db954] font-bold">
    5858                                                                                                {u.fullName.charAt(0)}
    5959                                                                                        </span>
    6060                                                                                )}
    6161                                                                        </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>
    6366                                                                </div>
    6467
    6568                                                                <button
    6669                                                                        onClick={() => onFollowToggle(u.username)}
    67                                                                         className={`px-4 py-1 text-sm font-medium rounded-md transition-colors cursor-pointer ${
     70                                                                        className={`px-4 py-1.5 text-sm font-medium rounded-full transition-colors cursor-pointer ${
    6871                                                                                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]"
    7174                                                                        }`}
    7275                                                                >
    73                                                                         {u.isFollowedByCurrentUser ? "Unfollow" : "Follow"}
     76                                                                        {u.isFollowedByCurrentUser ? "Following" : "Follow"}
    7477                                                                </button>
    7578                                                        </div>
Note: See TracChangeset for help on using the changeset viewer.