Showing
1 changed file
with
74 additions
and
0 deletions
1 | +import React from "react"; | ||
2 | +import styled from "styled-components"; | ||
3 | +import { Link } from "react-router-dom"; | ||
4 | +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; | ||
5 | +import { faArrowDown, faPlus } from "@fortawesome/free-solid-svg-icons"; | ||
6 | + | ||
7 | +const CategoryContainer = styled.div` | ||
8 | + display: flex; | ||
9 | + justify-content: center; | ||
10 | + align-items: center; | ||
11 | + svg { | ||
12 | + font-size: 20px; | ||
13 | + } | ||
14 | + span { | ||
15 | + margin-left: 10px; | ||
16 | + font-size: 20px; | ||
17 | + } | ||
18 | + border-top: 1px solid rgba(255, 255, 255, 0.5); | ||
19 | +`; | ||
20 | + | ||
21 | +const ItemListContainer = styled.div` | ||
22 | + display: flex; | ||
23 | + flex-direction: row; | ||
24 | + width: 100%; | ||
25 | + padding: 15px; | ||
26 | +`; | ||
27 | + | ||
28 | +const ItemList = styled.ul` | ||
29 | + align-items: center; | ||
30 | + svg { | ||
31 | + margin: 0px 10px; | ||
32 | + } | ||
33 | +`; | ||
34 | + | ||
35 | +const Item = styled.li``; | ||
36 | + | ||
37 | +const ItemText = styled.span` | ||
38 | + font-family: "Ubuntu", sans-serif; | ||
39 | +`; | ||
40 | + | ||
41 | +const StyledLink = styled(Link)` | ||
42 | + width: 100%; | ||
43 | + display: flex; | ||
44 | + flex-direction: row; | ||
45 | + justify-content: center; | ||
46 | + align-items: center; | ||
47 | + text-decoration: none; | ||
48 | + color: white; | ||
49 | + cursor: pointer; | ||
50 | + &:hover { | ||
51 | + background-color: white; | ||
52 | + color: #667aff; | ||
53 | + } | ||
54 | +`; | ||
55 | + | ||
56 | +export default ({ location }) => { | ||
57 | + return ( | ||
58 | + <> | ||
59 | + <CategoryContainer> | ||
60 | + <ItemListContainer> | ||
61 | + <ItemList> | ||
62 | + <FontAwesomeIcon icon={faArrowDown} /> Category | ||
63 | + <FontAwesomeIcon icon={faPlus} /> | ||
64 | + <StyledLink> | ||
65 | + <Item> | ||
66 | + <ItemText># Music</ItemText> | ||
67 | + </Item> | ||
68 | + </StyledLink> | ||
69 | + </ItemList> | ||
70 | + </ItemListContainer> | ||
71 | + </CategoryContainer> | ||
72 | + </> | ||
73 | + ); | ||
74 | +}; |
-
Please register or login to post a comment