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 <Link
className={classnames( className={classnames(
'channel__link', 'channel__link',
{long: name.length >= 12}, {long: name && name.length >= 12},
{superlong: name.length >= 16}, {superlong: name && name.length >= 16},
)} )}
to={href} to={href}
> >

View File

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

View File

@ -8,7 +8,7 @@
white-space: nowrap; white-space: nowrap;
} }
.friends__joinTextWrapper { .friends__addTextWrapper {
align-items: center; align-items: center;
display: flex; display: flex;
flex-grow: 1; flex-grow: 1;
@ -23,7 +23,9 @@
} }
.friends__addText { .friends__addText {
flex-grow: 1;
padding-left: 0.25em; padding-left: 0.25em;
width: 0%;
} }
.friends__chatsTitle { .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> <form>
<label className="channels__join"> <label className="channels__join">
Join Start chatting at
<span className="channels__joinTextWrapper"> <span className="channels__joinTextWrapper">
<input className="channels__joinText" placeholder="reddichat" type="text" /> <input className="channels__joinText" placeholder="reddichat" type="text" />
</span> </span>
<button className="bar__button" type="submit">
<span className="bar__buttonIcon" role="img" aria-label="Join" title="Join">🚪</span>
</button>
</label> </label>
</form> </form>
<h2 className="channels__chatsTitle">Favorites</h2> <h2 className="channels__chatsTitle">Favorites</h2>

View File

@ -25,6 +25,7 @@
.channels__joinText { .channels__joinText {
flex-grow: 1; flex-grow: 1;
padding-left: 0.25em; padding-left: 0.25em;
width: 0%;
} }
.channels__chatsTitle { .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 { .chat--message:hover {
background-color: #1c1c1c; background-color: rgba(28, 28, 28, 0.7);
} }
header { header {

View File

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

View File

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

BIN
src/client/dark.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB