ui(resources): use the new banner (#66)

ui(resources): use the new banner
This commit is contained in:
Jean-Philippe Sirois
2019-08-18 23:03:02 -04:00
committed by GitHub
4 changed files with 70 additions and 7 deletions
+2 -2
View File
@@ -2,7 +2,7 @@ import React, { useState, PropsWithChildren } from "react"
import { useStaticQuery, graphql, Link } from "gatsby"
import useBuildTree from "./useBuildTree"
import useSidebar from "./../../hooks/useSidebar"
import banner from "../../images/tph-banner.png"
import Banner from "../../images/tph-banner.svg"
import TriangleDown from "../../icons/triangle-down.svg"
import * as SC from "./styles"
@@ -124,7 +124,7 @@ export function ResourcesSidebar() {
return (
<SC.ResourcesSidebarWrapper>
<Link to="/">
<SC.Banner src={banner} />
<Banner />
</Link>
<SC.Inner>
{tree.map((node, index) => plantTree(node, index, true))}
@@ -8,11 +8,6 @@ export const ResourcesSidebarWrapper = styled.div`
background: #f9f9f9;
`
export const Banner = styled.img`
display: block;
width: 100%;
`
export const Children = styled.div`
padding-left: 16px;
padding-bottom: 8px;
Binary file not shown.

Before

Width:  |  Height:  |  Size: 39 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 14 KiB