Skip to content

Commit b9c51d8

Browse files
authored
Changes for Jitsi UI (#518)
* css changes for jitsi box ui change * edited jitsi.scss for jitsi ui and reverted changes of comment.scss * changes made for making same fonts * added modals in jitsi ui * removed unnecessary code from jitsi.scss
1 parent ca2f33c commit b9c51d8

File tree

2 files changed

+34
-57
lines changed

2 files changed

+34
-57
lines changed

src/user/integrations/NameForm.js

Lines changed: 30 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, {Component} from 'react';
2-
import {Modal, Button, Form, Row} from 'react-bootstrap';
2+
import {Modal, Button, Form, Row, Col} from 'react-bootstrap';
33
import {JitsiMeet} from './Jitsi';
44
import "./jitsi.scss";
55

@@ -31,39 +31,47 @@ export class Info extends Component{
3131
{...this.props}
3232
size="md"
3333
aria-labelledby="contained-modal-title-vcenter"
34+
className="modal"
3435
centered>
35-
<div className="container">
36-
<Modal.Header closeButton className="heading border border-0 p-0">
36+
37+
<Modal.Header closeButton className="modal__header">
3738
<Modal.Title id="contained-modal-title-vcenter">
3839
<div className="title">Info</div>
3940
<div className="about">Enter your name and a roomID</div>
4041
</Modal.Title>
4142
</Modal.Header>
42-
<Modal.Body>
43-
<Row className="form-content">
44-
<Form.Label className="label">Your Name</Form.Label>
45-
<Form.Control className="form-input"
46-
type="text" placeholder="Name.." size="sm"
47-
onChange={event => this.handleChange(event, "user")}
48-
required/>
49-
</Row>
50-
<Row className="form-content">
51-
<Form.Label className="label">Room ID</Form.Label>
52-
<Form.Control className="form-input"
53-
type="text" placeholder="RoomID.." size="sm"
54-
onChange={event => this.handleChange(event, "roomID")}
55-
required/>
56-
</Row>
43+
<Modal.Body className="modal__body">
44+
<Form className="modal__form">
45+
<Form.Row className="modal__row">
46+
<Form.Group className="modal__group" as={Col}>
47+
<Form.Label className="label">Your Name</Form.Label>
48+
<Form.Control className="modal__post"
49+
type="text" placeholder="Name.." size="sm"
50+
onChange={event => this.handleChange(event, "user")}
51+
required/>
52+
</Form.Group>
53+
</Form.Row>
54+
<Form.Row className="modal__row">
55+
<Form.Group className="modal__group" as={Col}>
56+
<Form.Label className="label">Room ID</Form.Label>
57+
<Form.Control className="modal__post"
58+
type="text" placeholder="RoomID.." size="sm"
59+
onChange={event => this.handleChange(event, "roomID")}
60+
required/>
61+
</Form.Group>
62+
</Form.Row>
63+
</Form>
5764
</Modal.Body>
58-
<div className="form-footer">
65+
<div className="modal__buttons">
5966
<Button onClick={() => this.setState({startJitsi:true})}
60-
disabled={this.state.disable} className="savebtn">Join Call</Button>
67+
disabled={this.state.disable} className="modal__save">
68+
<span className="modal__buttontext">Join</span></Button>
6169
{this.state.startJitsi ? <JitsiMeet show={this.state.startJitsi}
6270
onHide={this.closeJitsi} user={this.state.user}
6371
roomID={this.state.roomID}/> : null}
64-
<Button variant="outline-primary" onClick={this.props.onHide}>Cancel</Button>
72+
<Button className="modal__cancel" variant="outline-primary" onClick={this.props.onHide}>
73+
<span className="modal__buttontext">Cancel</span></Button>
6574
</div>
66-
</div>
6775
</Modal>
6876
);
6977
}

src/user/integrations/jitsi.scss

Lines changed: 4 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,6 @@
99
.display2{
1010
justify-content:space-between;
1111
}
12-
.base{
13-
height: 450px;
14-
width: 450px;
15-
background-color: red;
16-
position: relative;
17-
right: 200px;
18-
}
1912
.heading{
2013
margin-top: 20px;
2114
}
@@ -24,7 +17,7 @@
2417
font-weight: 700;
2518
line-height: 29px;
2619
color: #1A73E8;
27-
// margin-left: 6px;
20+
margin-left: 3px;
2821
}
2922
.about{
3023
font-weight: 500;
@@ -34,53 +27,29 @@
3427
color: #90949C;
3528
margin-top:10px;
3629
margin-bottom: 5px;
37-
// margin-left: 6px;
30+
margin-left: 4px;
3831
}
39-
.message{
40-
font-weight: 500;
41-
font-size: 14px;
42-
line-height: 14px;
43-
letter-spacing: 0.2em;
44-
color: rgb(28, 30, 34);
45-
margin-top:15px;
46-
margin-bottom: 20px;
47-
}
48-
4932
.label{
5033
font-weight: 600;
5134
font-size: 15px;
5235
color:#000000;
5336
margin-bottom: 3px;
5437
margin-top: 5px;
55-
// margin-left: 3px;
38+
margin-left: 2px;
5639
}
5740
.form-input{
5841
font-family: Inter;
5942
font-style: normal;
6043
font-weight: 300;
6144
font-size: 13px;
6245
line-height: 16px;
63-
//margin-left: 3px;
46+
margin-left: 3px;
6447
}
6548
.form-content{
6649
margin-top:-2%;
6750
margin-bottom: 20px;
6851
justify-content:space-between;
6952
}
70-
.form-footer{
71-
margin-top: -5px;
72-
Button{
73-
width: auto;
74-
margin-right: 20px;
75-
margin-bottom: 30px;
76-
border-radius: 100px;
77-
font-weight:600;
78-
}
79-
.savebtn{
80-
background-color: #1A73E8;
81-
}
82-
83-
}
8453
.contain{
8554
margin-top: -3px;
8655
}

0 commit comments

Comments
 (0)