Skip to content

Commit

Permalink
ui(resources): use the new banner (#66)
Browse files Browse the repository at this point in the history
ui(resources): use the new banner
  • Loading branch information
veksen authored Aug 19, 2019
2 parents 0c2bc89 + cd13214 commit 8f740b8
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/components/ResourcesSidebar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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))}
Expand Down
5 changes: 0 additions & 5 deletions src/components/ResourcesSidebar/styles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Binary file removed src/images/tph-banner.png
Binary file not shown.
68 changes: 68 additions & 0 deletions src/images/tph-banner.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8f740b8

Please sign in to comment.