ChannelList.js
1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
import React from "react";
import styled from "styled-components";
import { Link } from "react-router-dom";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { faArrowRight } from "@fortawesome/free-solid-svg-icons";
const Wrapper = styled.div`
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background-color: #a5b1c2;
border-radius: 10px;
box-shadow: 1px 1px 10px #8395a7;
min-width: 23.75rem;
width: auto;
max-height: none;
padding: 0.5rem 0.7rem 0 1rem;
`;
const ChannelContainer = styled.div`
display: flex;
flex-direction: column;
width: 100%;
overflow-y: scroll;
min-height: 70px;
justify-content: center;
align-items: center;
&::-webkit-scrollbar {
width: 10px;
}
&::-webkit-scrollbar-track {
background-color: transparent;
}
&::-webkit-scrollbar-thumb {
border-radius: 3px;
background-color: gray;
}
&::-webkit-scrollbar-button {
width: 0;
height: 0;
}
`;
const ChannelList = styled.ul`
width: 100%;
display: flex;
flex-direction: row;
justify-content: space-between;
svg {
color: white;
opacity: 0.7;
}
`;
const ChannelItem = styled.li`
font-family: "Ubuntu", sans-serif;
`;
const CreateContainer = styled.div`
padding-top: 1.9rem;
padding-bottom: 1.7rem;
box-shadow: 0 -4px 4px rgba(0, 0, 0, 0.04);
`;
export default () => {
return (
<Wrapper>
<ChannelContainer>
<ChannelList>
<ChannelItem>First Channel</ChannelItem>
<FontAwesomeIcon icon={faArrowRight} />
</ChannelList>
</ChannelContainer>
<CreateContainer>
<Link to="/">Create New Channel</Link>
</CreateContainer>
</Wrapper>
);
};