-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
55 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,90 @@ | ||
import { | ||
Button, Container, Row, Col, Form, | ||
} from 'react-bootstrap'; | ||
|
||
const ChatPage = () => ( | ||
<div className="container h-100 my-4 overflow-hidden rounded shadow"> | ||
<div className="row h-100 bg-white flex-md-row"> | ||
<div className="col-4 col-md-2 border-end px-0 bg-light flex-column h-100 d-flex"> | ||
<Container className="h-100 my-4 overflow-hidden rounded shadow"> | ||
<Row className="h-100 bg-white flex-md-row"> | ||
<Col className="col-4 col-md-2 border-end px-0 bg-light flex-column h-100 d-flex"> | ||
<div className="d-flex mt-1 justify-content-between mb-2 ps-4 pe-2 p-4"> | ||
<b>Каналы</b> | ||
<button | ||
type="button" | ||
className="btn btn-outline-primary btn-sm" | ||
<Button | ||
size="sm" | ||
variant="outline-primary" | ||
onClick={console.log('+')} | ||
> | ||
+ | ||
</button> | ||
</Button> | ||
</div> | ||
<ul | ||
id="channels-box" | ||
className="nav flex-column nav-pills nav-fill px-2 mb-3 overflow-auto h-100 d-block" | ||
> | ||
<li className="nav-item w-100"> | ||
<button | ||
type="button" | ||
className="w-100 rounded-0 text-start btn bnt-secondary" | ||
<Button | ||
variant="secondary" | ||
className="w-100 rounded-0 text-start" | ||
> | ||
<span className="me-1">#</span> | ||
general | ||
</button> | ||
</Button> | ||
</li> | ||
<li className="nav-item w-100"> | ||
<button | ||
type="button" | ||
className="w-100 rounded-0 text-start btn bnt-secondary" | ||
<Button | ||
variant="secondary" | ||
className="w-100 rounded-0 text-start" | ||
> | ||
<span className="me-1">#</span> | ||
random | ||
</button> | ||
</Button> | ||
</li> | ||
<li className="nav-item w-100"> | ||
<div role="group" className="d-flex dropdown btn-group"> | ||
<button | ||
<Button | ||
type="button" | ||
className="w-100 rounded-0 text-start text-truncate btn" | ||
> | ||
<span className="me-1">#</span> | ||
111 | ||
</button> | ||
</Button> | ||
</div> | ||
</li> | ||
</ul> | ||
</Col> | ||
<div className="col p-0 h-100"> | ||
<div className="d-flex flex-column h-100"> | ||
<div className="bg-light mb-4 p-3 shadow-sm small"> | ||
<p className="m-0"> | ||
<b>#general</b> | ||
</p> | ||
<span className="text-muted">0 сообщений</span> | ||
</div> | ||
<div id="messages-box" className="chat-messages overflow-auto px-5 "> | ||
Сообщения | ||
</div> | ||
<div className="mt-auto px-5 py-3"> | ||
<Form | ||
noValidate | ||
className="py-1 border rounded-2" | ||
> | ||
<Form.Group className="input-group"> | ||
<Form.Control | ||
name="messageBody" | ||
autoComplete="off" | ||
aria-label="Новое сообщение" | ||
placeholder="Введите сообщение..." | ||
className="border-0 p-0 ps-2" | ||
/> | ||
<Button type="submit" variant="light" className="border-0"> | ||
<span className="visually-hidden">Отправить</span> | ||
</Button> | ||
</Form.Group> | ||
</Form> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</Row> | ||
</Container> | ||
); | ||
|
||
export default ChatPage; |