ui(resources): use the new banner

This commit is contained in:
Hayden Young
2019-08-18 22:55:00 -04:00
committed by Jean-Philippe Sirois
parent 0c2bc899e7
commit cd13214844
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 { useStaticQuery, graphql, Link } from "gatsby"
import useBuildTree from "./useBuildTree" import useBuildTree from "./useBuildTree"
import useSidebar from "./../../hooks/useSidebar" 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 TriangleDown from "../../icons/triangle-down.svg"
import * as SC from "./styles" import * as SC from "./styles"
@@ -124,7 +124,7 @@ export function ResourcesSidebar() {
return ( return (
<SC.ResourcesSidebarWrapper> <SC.ResourcesSidebarWrapper>
<Link to="/"> <Link to="/">
<SC.Banner src={banner} /> <Banner />
</Link> </Link>
<SC.Inner> <SC.Inner>
{tree.map((node, index) => plantTree(node, index, true))} {tree.map((node, index) => plantTree(node, index, true))}
@@ -8,11 +8,6 @@ export const ResourcesSidebarWrapper = styled.div`
background: #f9f9f9; background: #f9f9f9;
` `
export const Banner = styled.img`
display: block;
width: 100%;
`
export const Children = styled.div` export const Children = styled.div`
padding-left: 16px; padding-left: 16px;
padding-bottom: 8px; 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