flow: sexier

This commit is contained in:
cha0s 2020-07-18 09:05:10 -05:00
parent e5c2c8af52
commit 8d7d50191b
9 changed files with 11 additions and 44 deletions

View File

@ -22,8 +22,8 @@ export default function Channel(props) {
<Link
className={classnames(
'channel__link',
{long: name.length >= 12},
{superlong: name.length >= 16},
{long: name && name.length >= 12},
{superlong: name && name.length >= 16},
)}
to={href}
>

View File

@ -37,20 +37,10 @@ export default function ChatLeftFriends() {
>
<form>
<label className="friends__add">
Add
Make friends with
<span className="friends__addTextWrapper">
<input className="friends__addText" placeholder="cha0s" type="text" />
</span>
<button className="bar__button" type="submit">
<span
className="bar__buttonIcon"
role="img"
aria-label="Add friend"
title="Add friend"
>
👌
</span>
</button>
</label>
</form>

View File

@ -8,7 +8,7 @@
white-space: nowrap;
}
.friends__joinTextWrapper {
.friends__addTextWrapper {
align-items: center;
display: flex;
flex-grow: 1;
@ -23,7 +23,9 @@
}
.friends__addText {
flex-grow: 1;
padding-left: 0.25em;
width: 0%;
}
.friends__chatsTitle {
@ -57,15 +59,3 @@
}
}
}
.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

@ -32,13 +32,10 @@ export default function ChatLeftRooms() {
>
<form>
<label className="channels__join">
Join
Start chatting at
<span className="channels__joinTextWrapper">
<input className="channels__joinText" placeholder="reddichat" type="text" />
</span>
<button className="bar__button" type="submit">
<span className="bar__buttonIcon" role="img" aria-label="Join" title="Join">🚪</span>
</button>
</label>
</form>
<h2 className="channels__chatsTitle">Favorites</h2>

View File

@ -25,6 +25,7 @@
.channels__joinText {
flex-grow: 1;
padding-left: 0.25em;
width: 0%;
}
.channels__chatsTitle {
@ -58,15 +59,3 @@
}
}
}
.channels__join .bar__button {
background: none;
border: none;
margin: 0 0 0 0.45em;
padding: 0;
width: 2em;
height: 2em;
&:hover {
background-color: #444;
}
}

View File

@ -30,7 +30,7 @@
}
.chat--message:hover {
background-color: #1c1c1c;
background-color: rgba(28, 28, 28, 0.7);
}
header {

View File

@ -1,4 +1,5 @@
.chat--messages {
background-image: url('./dark.png');
display: flex;
flex-direction: column;
overflow: hidden;

View File

@ -36,7 +36,7 @@ export default function ChatRightUsers() {
<div
className="chat--rightUsers"
>
<h2 className="users__chatsTitle">Users</h2>
<h2 className="users__chatsTitle">Users present</h2>
<ul className="users__chatsList">
{list.map((username) => (
<li

BIN
src/client/dark.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB