feat: add button

This commit is contained in:
cha0s 2020-07-18 07:57:24 -05:00
parent e4198beac0
commit 241482ca7d
3 changed files with 41 additions and 6 deletions

View File

@ -35,12 +35,25 @@ export default function ChatLeftFriends() {
<div <div
className="chat--leftFriends" className="chat--leftFriends"
> >
<label className="friends__add"> <form>
Add <label className="friends__add">
<span className="friends__addTextWrapper"> Add
<input className="friends__addText" placeholder="cha0s" type="text" /> <span className="friends__addTextWrapper">
</span> <input className="friends__addText" placeholder="cha0s" type="text" />
</label> </span>
<button className="bar__button" type="submit">
<span
className="bar__buttonIcon"
role="img"
aria-label="Add friend"
title="Add friend"
>
👌
</span>
</button>
</label>
</form>
<h2 className="friends__chatsTitle">Favorites</h2> <h2 className="friends__chatsTitle">Favorites</h2>
<ul className="friends__chatsList"> <ul className="friends__chatsList">
{favorites.map((channel) => ( {favorites.map((channel) => (

View File

@ -1,11 +1,19 @@
@import '~/client/scss/colors.scss'; @import '~/client/scss/colors.scss';
.friends__add[class] { .friends__add[class] {
align-items: center;
background-color: #272727; background-color: #272727;
flex-direction: row;
flex-wrap: nowrap; flex-wrap: nowrap;
white-space: nowrap; white-space: nowrap;
} }
.friends__joinTextWrapper {
align-items: center;
display: flex;
flex-grow: 1;
}
.friends__addTextWrapper::before { .friends__addTextWrapper::before {
content: '/u/'; content: '/u/';
font-size: 0.8em; font-size: 0.8em;
@ -49,3 +57,15 @@
} }
} }
} }
.friends__add .bar__button {
background: none;
border: none;
margin: 0 0 0 0.45em;
padding: 0;
width: 2em;
height: 2em;
&:hover {
background-color: #444;
}
}

View File

@ -1,7 +1,9 @@
@import '~/client/scss/colors.scss'; @import '~/client/scss/colors.scss';
.channels__join[class] { .channels__join[class] {
align-items: center;
background-color: #272727; background-color: #272727;
flex-direction: row;
flex-wrap: nowrap; flex-wrap: nowrap;
white-space: nowrap; white-space: nowrap;
} }