Spaces:
Runtime error
Runtime error
AnkitSinghSenwal
commited on
Commit
·
8189f3d
1
Parent(s):
532174e
Footer completed...
Browse files
src/components/ChatFooter/ChatFooter.css
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.chat_footer{
|
| 2 |
+
display:flex;
|
| 3 |
+
flex-direction: row;
|
| 4 |
+
align-items: center;
|
| 5 |
+
gap:1em;
|
| 6 |
+
padding:1em 2em;
|
| 7 |
+
background-color: var(--SECONDARY-COLOR);
|
| 8 |
+
height:70px;
|
| 9 |
+
border-top:2px solid var(--BORDER-COLOR);
|
| 10 |
+
}
|
| 11 |
+
|
| 12 |
+
.send_options{
|
| 13 |
+
display: flex;
|
| 14 |
+
align-items: center;
|
| 15 |
+
gap:0.7em;
|
| 16 |
+
height:100%;
|
| 17 |
+
/* width:100%; */
|
| 18 |
+
}
|
| 19 |
+
.send_options_btn{
|
| 20 |
+
height:2em;
|
| 21 |
+
aspect-ratio: 1;
|
| 22 |
+
color: rgb(140, 139, 139);;
|
| 23 |
+
}
|
| 24 |
+
|
| 25 |
+
.text_box{
|
| 26 |
+
height:100%;
|
| 27 |
+
flex-grow:1;
|
| 28 |
+
border:1px solid var(--BORDER-COLOR);
|
| 29 |
+
border-radius: 5px;
|
| 30 |
+
|
| 31 |
+
padding:1em;
|
| 32 |
+
font-weight:500;
|
| 33 |
+
|
| 34 |
+
}
|
| 35 |
+
.text_box::placeholder{
|
| 36 |
+
text-align: center;
|
| 37 |
+
}
|
| 38 |
+
|
| 39 |
+
.send_icon{
|
| 40 |
+
height:2.2em;
|
| 41 |
+
aspect-ratio: 1;
|
| 42 |
+
color:white;
|
| 43 |
+
background-color: var(--PRIMARY-COLOR);
|
| 44 |
+
border-radius: 50%;
|
| 45 |
+
padding:6px;
|
| 46 |
+
}
|
src/components/ChatFooter/ChatFooter.jsx
CHANGED
|
@@ -1,8 +1,19 @@
|
|
| 1 |
import React from 'react'
|
|
|
|
|
|
|
| 2 |
|
| 3 |
function ChatFooter() {
|
| 4 |
return (
|
| 5 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
)
|
| 7 |
}
|
| 8 |
|
|
|
|
| 1 |
import React from 'react'
|
| 2 |
+
import "./ChatFooter.css";
|
| 3 |
+
import { PaperAirplaneIcon, PhotoIcon, PaperClipIcon, FaceSmileIcon } from "@heroicons/react/24/solid";
|
| 4 |
|
| 5 |
function ChatFooter() {
|
| 6 |
return (
|
| 7 |
+
<footer className='chat_footer'>
|
| 8 |
+
<div className='send_options'>
|
| 9 |
+
|
| 10 |
+
<FaceSmileIcon className='send_options_btn' />
|
| 11 |
+
<PhotoIcon className='send_options_btn' />
|
| 12 |
+
<PaperClipIcon className='send_options_btn' />
|
| 13 |
+
</div>
|
| 14 |
+
<input className="text_box" type="text" placeholder='Message' />
|
| 15 |
+
<PaperAirplaneIcon className='send_icon' />
|
| 16 |
+
</footer>
|
| 17 |
)
|
| 18 |
}
|
| 19 |
|