Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIRE-526 publishing talking event #141

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 25 additions & 1 deletion src/components/room/screenShare/SingleScreen.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useState, useEffect, useRef } from 'react';
import styled from 'styled-components';
import styled, { keyframes } from 'styled-components';
import MyAvatar from '../../../assets/avatar/MyAvatar';
import controlModal from '../../../stores/controlModal';
import messageStore from '../../../stores/messagesStore';
Expand Down Expand Up @@ -56,7 +56,9 @@ export default function SingleScreen({ connectedUser, stream }) {
</ChatInner>
</ChatContainer>
<AvatarPosition>
<TalkingShadow />
<MyAvatar num={Number(connectedUser.avatar)} />
{/* </TalkingShadow> */}
<NameContainer isMe={uid === connectedUser.uid}>
{connectedUser.nickname}
</NameContainer>
Expand Down Expand Up @@ -143,3 +145,25 @@ const Video = styled.video`
border-radius: 1rem;
position: absolute;
`;

const boxFade = keyframes`
0% {
opacity: 1;
}
50% {
opacity: 0;
}
100% {
opacity: 1;
}
`;

const TalkingShadow = styled.div`
position: absolute;
width: 8rem;
height: 8rem;
top: 0;
border-radius: 50%;
box-shadow: #84cc16 0px 2px 10px 0px, #84cc16 0px 2px 16px 0px;
animation: ${boxFade} 2s 1s infinite linear alternate;
`;