diff --git a/src/components/ResourcesLayout/index.tsx b/src/components/ResourcesLayout/index.tsx
index 97298bb..08af008 100644
--- a/src/components/ResourcesLayout/index.tsx
+++ b/src/components/ResourcesLayout/index.tsx
@@ -10,7 +10,6 @@ import { useStaticQuery, graphql } from "gatsby"
import { GlobalStyles } from "../../globalStyles"
import { ResourcesSidebar } from "../ResourcesSidebar"
-import { Footer } from "../Footer"
import * as SC from "./styles"
export function ResourcesLayout({ children }: PropsWithChildren<{}>) {
@@ -30,11 +29,12 @@ export function ResourcesLayout({ children }: PropsWithChildren<{}>) {
- {data.site.siteMetadata.title}
- {children}
+
+ {data.site.siteMetadata.title}
+ {children}
+
-
)
}
diff --git a/src/components/ResourcesLayout/styles.tsx b/src/components/ResourcesLayout/styles.tsx
index cc0bb79..232913d 100644
--- a/src/components/ResourcesLayout/styles.tsx
+++ b/src/components/ResourcesLayout/styles.tsx
@@ -2,12 +2,13 @@ import styled from "styled-components"
export const Main = styled.div`
display: flex;
- margin: 128px auto 64px !important;
width: 100%;
+ min-height: 100vh;
`
export const MainContent = styled.main`
flex: 1 1 auto;
+ margin-top: 128px;
& > :first-child {
margin-top: 0;
@@ -17,3 +18,8 @@ export const MainContent = styled.main`
margin-bottom: 0;
}
`
+
+export const Container = styled.div`
+ width: 650px;
+ margin: 0 auto;
+`
diff --git a/src/components/ResourcesSidebar/index.tsx b/src/components/ResourcesSidebar/index.tsx
index 822b8b9..b56a513 100644
--- a/src/components/ResourcesSidebar/index.tsx
+++ b/src/components/ResourcesSidebar/index.tsx
@@ -2,6 +2,7 @@ import React, { useState } from "react"
import Tree from "react-treeview"
import { useStaticQuery, graphql } from "gatsby"
import useBuildTree from "./useBuildTree"
+import banner from "../../images/tph-banner.png"
import * as SC from "./styles"
export interface IFile {
@@ -76,12 +77,14 @@ function Folder({ item }: { item: IFolder }) {
}
return (
- {item.title}}
- >
- {item.children.map(plantTree)}
-
+
+ {item.title}}
+ >
+ {item.children.map(plantTree)}
+
+
)
}
@@ -91,7 +94,8 @@ export function ResourcesSidebar() {
return (
- {tree.map(node => plantTree(node))}
+
+ {tree.map(node => plantTree(node))}
)
}
diff --git a/src/components/ResourcesSidebar/styles.tsx b/src/components/ResourcesSidebar/styles.tsx
index b3f0716..d64f582 100644
--- a/src/components/ResourcesSidebar/styles.tsx
+++ b/src/components/ResourcesSidebar/styles.tsx
@@ -3,8 +3,32 @@ import { Link } from "gatsby"
export const ResourcesSidebarWrapper = styled.div`
box-sizing: border-box;
- padding: 0 16px;
flex: 0 0 300px;
+ background: #f9f9f9;
+`
+
+export const Banner = styled.img`
+ display: block;
+ width: 100%;
+`
+
+export const TreeWrapper = styled.div`
+ width: 100%;
+ padding: 12px 0;
+
+ & + & {
+ border-top: 1px solid #dbdbdb;
+ }
+`
+
+export const Inner = styled.div`
+ padding-top: 30px;
+ padding-left: 20px;
+
+ /* TODO: change this.. */
+ & > ${TreeWrapper} > .tree-view > .tree-view_item > div {
+ font-weight: 700;
+ }
`
export const PageLink = styled(Link)`
diff --git a/src/globalStyles.tsx b/src/globalStyles.tsx
index be4b604..7c257c7 100644
--- a/src/globalStyles.tsx
+++ b/src/globalStyles.tsx
@@ -11,6 +11,7 @@ export const GlobalStyles = createGlobalStyle`
}
body {
+ margin: 0;
font-size: ${BASE_FONT_SIZE}px;
line-height: ${BASE_LINE_HEIGHT}px;
}
diff --git a/src/images/tph-banner.png b/src/images/tph-banner.png
new file mode 100644
index 0000000..945bd65
Binary files /dev/null and b/src/images/tph-banner.png differ