nice place with the whole show and the elevation really mattering with the side bar but also now more actions on the top right where people would look for em?
This commit is contained in:
@@ -4,7 +4,17 @@ import useRealTimeRooms from '../../../../providers/RealTimeRoomProvider';
|
|||||||
|
|
||||||
import { LineMemberState } from '@nirvana/core/models/line.model';
|
import { LineMemberState } from '@nirvana/core/models/line.model';
|
||||||
import LineIcon from '../../../../components/lineIcon';
|
import LineIcon from '../../../../components/lineIcon';
|
||||||
import { FiActivity, FiHeadphones, FiSearch, FiSettings, FiSun, FiUsers } from 'react-icons/fi';
|
import {
|
||||||
|
FiActivity,
|
||||||
|
FiHeadphones,
|
||||||
|
FiImage,
|
||||||
|
FiMoreVertical,
|
||||||
|
FiSearch,
|
||||||
|
FiSettings,
|
||||||
|
FiSun,
|
||||||
|
FiUsers,
|
||||||
|
FiVideo,
|
||||||
|
} from 'react-icons/fi';
|
||||||
import { Avatar, Tooltip } from 'antd';
|
import { Avatar, Tooltip } from 'antd';
|
||||||
import useStreams from '../../../../providers/StreamProvider';
|
import useStreams from '../../../../providers/StreamProvider';
|
||||||
import Peer from 'simple-peer';
|
import Peer from 'simple-peer';
|
||||||
@@ -194,7 +204,7 @@ function LineDetails() {
|
|||||||
>
|
>
|
||||||
{/* {profilePictures && <LineIcon grayscale={false} sourceImages={profilePictures} />} */}
|
{/* {profilePictures && <LineIcon grayscale={false} sourceImages={profilePictures} />} */}
|
||||||
|
|
||||||
<div className="flex flex-col items-start mr-auto group">
|
<div className="flex flex-col items-start group">
|
||||||
<span className="flex flex-row gap-2 items-center">
|
<span className="flex flex-row gap-2 items-center">
|
||||||
<h2 className={`text-md text-gray-800 font-semibold`}>
|
<h2 className={`text-md text-gray-800 font-semibold`}>
|
||||||
{selectedLine.lineDetails.name || selectedLine.otherUserObjects[0].givenName}
|
{selectedLine.lineDetails.name || selectedLine.otherUserObjects[0].givenName}
|
||||||
@@ -214,7 +224,7 @@ function LineDetails() {
|
|||||||
title={`${isUserToggleTuned ? 'click to untoggle' : 'click to stay tuned in'}`}
|
title={`${isUserToggleTuned ? 'click to untoggle' : 'click to stay tuned in'}`}
|
||||||
>
|
>
|
||||||
<button
|
<button
|
||||||
className={`ml-2 p-2 flex justify-center items-center shadow-lg
|
className={`mr-auto p-2 flex justify-center items-center shadow-lg
|
||||||
hover:scale-105 transition-all animate-pulse ${
|
hover:scale-105 transition-all animate-pulse ${
|
||||||
isUserToggleTuned ? 'bg-gray-800 text-white' : 'text-black'
|
isUserToggleTuned ? 'bg-gray-800 text-white' : 'text-black'
|
||||||
}`}
|
}`}
|
||||||
@@ -233,6 +243,24 @@ function LineDetails() {
|
|||||||
<FiActivity className="text-md" />
|
<FiActivity className="text-md" />
|
||||||
</button>
|
</button>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
|
|
||||||
|
<button
|
||||||
|
className={`p-2 flex justify-center items-center shadow-lg
|
||||||
|
hover:scale-105 transition-all text-black
|
||||||
|
`}
|
||||||
|
>
|
||||||
|
<FiImage className="text-md" />
|
||||||
|
</button>
|
||||||
|
|
||||||
|
<button
|
||||||
|
className={`ml-2 p-2 flex justify-center items-center shadow-lg
|
||||||
|
hover:scale-105 transition-all text-black
|
||||||
|
`}
|
||||||
|
>
|
||||||
|
<FiVideo className="text-md" />
|
||||||
|
</button>
|
||||||
|
|
||||||
|
<FiMoreVertical />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* main canvas */}
|
{/* main canvas */}
|
||||||
@@ -240,13 +268,16 @@ function LineDetails() {
|
|||||||
{/* line timeline */}
|
{/* line timeline */}
|
||||||
<div
|
<div
|
||||||
className="flex flex-col justify-end items-center gap-2 p-5 mx-auto
|
className="flex flex-col justify-end items-center gap-2 p-5 mx-auto
|
||||||
max-w-lg w-full"
|
max-w-lg w-full"
|
||||||
>
|
>
|
||||||
<span className={'text-gray-300 text-sm cursor-pointer hover:underline'}>load more</span>
|
<span className={'text-gray-300 text-sm cursor-pointer hover:underline'}>load more</span>
|
||||||
|
|
||||||
<span className={'text-gray-300 text-sm'}>yesterday</span>
|
<span className={'text-gray-300 text-sm'}>yesterday</span>
|
||||||
|
|
||||||
<div className={'rounded flex flex-row items-center gap-2 w-full p-5'}>
|
<div
|
||||||
|
className={`rounded flex flex-row items-center gap-2 w-full
|
||||||
|
p-5 border-gray-200 border`}
|
||||||
|
>
|
||||||
<Avatar.Group key={`lineHistoryMessage-yesterday-afternoon}`}>
|
<Avatar.Group key={`lineHistoryMessage-yesterday-afternoon}`}>
|
||||||
{selectedLine.otherUserObjects.map((otherUser) => (
|
{selectedLine.otherUserObjects.map((otherUser) => (
|
||||||
<Avatar
|
<Avatar
|
||||||
@@ -277,7 +308,10 @@ function LineDetails() {
|
|||||||
|
|
||||||
<span className={'text-gray-300 text-sm'}>today</span>
|
<span className={'text-gray-300 text-sm'}>today</span>
|
||||||
|
|
||||||
<div className={'rounded flex flex-row items-center gap-2 w-full shadow-lg p-5'}>
|
<div
|
||||||
|
className={`rounded flex flex-row items-center gap-2 w-full shadow-lg p-5
|
||||||
|
border-gray-200 border`}
|
||||||
|
>
|
||||||
<Avatar.Group key={`lineHistoryMessage-yesterday-afternoon}`}>
|
<Avatar.Group key={`lineHistoryMessage-yesterday-afternoon}`}>
|
||||||
{selectedLine.otherUserObjects.map((otherUser) => (
|
{selectedLine.otherUserObjects.map((otherUser) => (
|
||||||
<Avatar
|
<Avatar
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ export default function SidePanel() {
|
|||||||
const [searchQuery, setSearchQuery] = useState<string>('');
|
const [searchQuery, setSearchQuery] = useState<string>('');
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="flex flex-col w-[350px] relative group shadow-2xl bg-white">
|
<div className="flex flex-col w-[350px] relative group shadow-2xl bg-white z-20">
|
||||||
<NavBar />
|
<NavBar />
|
||||||
|
|
||||||
<div className="flex flex-row p-4 items-center bg-gray-100 gap-2">
|
<div className="flex flex-row p-4 items-center bg-gray-100 gap-2">
|
||||||
|
|||||||
Reference in New Issue
Block a user