parent
37446bb804
commit
42cd2211fc
6 changed files with 136 additions and 18 deletions
@ -0,0 +1,43 @@ |
||||
import React, { Component } from "react"; |
||||
import ExpandMoreIcon from "@material-ui/icons/ExpandMore"; |
||||
import VideocamIcon from '@material-ui/icons/Videocam'; |
||||
import CallEndIcon from "@material-ui/icons/CallEnd"; |
||||
|
||||
// import BottomControl from "../BottomControl/BottomControl";
|
||||
import StatusAvatar from "../Avatar/Avatar"; |
||||
|
||||
import "./CallRecived.scss"; |
||||
export default class CallRecived extends Component { |
||||
constructor(props) { |
||||
super(props); |
||||
this.state = {}; |
||||
} |
||||
render() { |
||||
const { brand, user, phase } = this.props; |
||||
return ( |
||||
<div className="video-income d-flex flex-column align-items-center"> |
||||
<header className="video-income__header d-flex"> |
||||
<h1 className="video-income__header--logo">{brand}</h1> |
||||
<div className="video-income__header--expand d-flex"> |
||||
<ExpandMoreIcon style={{ width: 30, height: 30, color: "white" }} /> |
||||
</div> |
||||
</header> |
||||
<div className="video-income__avatar d-flex"> |
||||
<StatusAvatar status={user.status} src={user.src} /> |
||||
</div> |
||||
<h2>{user.name}</h2> |
||||
<div className="video-income__phase">{phase}</div> |
||||
<div className="video-income__buttons d-flex"> |
||||
<button className="d-flex" style={{ backgroundColor : 'rgb(52, 209, 52)' }}> |
||||
<VideocamIcon style={{ width: 38, height: 38, color: "white" }} /> |
||||
</button> |
||||
<button className="d-flex" style={{ backgroundColor: 'rgb(209, 52, 52)'}}> |
||||
<CallEndIcon style={{ width: 38, height: 38, color: "white" }} /> |
||||
</button> |
||||
</div> |
||||
|
||||
{/* <BottomControl /> */} |
||||
</div> |
||||
); |
||||
} |
||||
} |
@ -0,0 +1,62 @@ |
||||
.video-income { |
||||
width: 100%; |
||||
height: 100%; |
||||
align-items: center; |
||||
padding: 15px; |
||||
position: relative; |
||||
&__header { |
||||
justify-content: center; |
||||
align-items: center; |
||||
width: 100%; |
||||
margin-bottom: 25px; |
||||
font-size: 16px; |
||||
position: fixed; |
||||
top: 20px; |
||||
left: 0px; |
||||
h1 { |
||||
font-size: 18px; |
||||
margin: 0px; |
||||
font-weight: 100; |
||||
letter-spacing: 1px; |
||||
// position : fixed; |
||||
// left : calc(50% - 35px); |
||||
// top : 100px; |
||||
} |
||||
&--expand { |
||||
position: absolute; |
||||
left: 0px; |
||||
top: 0px; |
||||
} |
||||
} |
||||
&__avatar { |
||||
position: fixed; |
||||
top: 55px; |
||||
} |
||||
h2 { |
||||
font-size: 22px; |
||||
margin-top: 20px; |
||||
position: fixed; |
||||
top: 140px; |
||||
} |
||||
&__phase { |
||||
margin-top: 15px; |
||||
position: fixed; |
||||
// left: calc(50% - 25px); |
||||
top: 200px; |
||||
} |
||||
&__buttons { |
||||
position: fixed; |
||||
bottom: 8%; |
||||
width: 70%; |
||||
justify-content: space-between; |
||||
button { |
||||
width: 65px; |
||||
height: 65px; |
||||
border: none; |
||||
display: flex; |
||||
justify-content: center; |
||||
align-items: center; |
||||
border-radius: 50%; |
||||
} |
||||
} |
||||
} |
Loading…
Reference in new issue