-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
convert components to ts, add theme stuff, new dir structures
- Loading branch information
Andrew Frank
committed
May 17, 2020
1 parent
5d3833d
commit 39fa442
Showing
23 changed files
with
189 additions
and
797 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"arrowParens": "avoid", | ||
"semi": false | ||
"semi": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import React from "react"; | ||
import styled from "styled-components"; | ||
|
||
const Layout = styled.footer` | ||
display: flex; | ||
flex-flow: row nowrap; | ||
justify-content: flex-start; | ||
align-items: center; | ||
width: 100%; | ||
`; | ||
|
||
const Footer: React.FC = () => { | ||
return ( | ||
<Layout> | ||
© {new Date().getFullYear()}, Built by | ||
{` `} | ||
<a href="https://www.verypossible.com">Very</a> | ||
</Layout> | ||
); | ||
}; | ||
|
||
export default Footer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default as Footer } from "./Footer"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import React from "react"; | ||
import styled from "styled-components"; | ||
|
||
import { Link } from "gatsby"; | ||
import { color, toRem } from "../../theme"; | ||
|
||
interface HeaderProps { | ||
children?: React.ReactNode; | ||
} | ||
|
||
const Layout = styled.header` | ||
display: flex; | ||
flex-flow: row nowrap; | ||
justify-content: space-between; | ||
align-items: center; | ||
width: 100%; | ||
height: ${toRem(40)}; | ||
margin-bottom: ${toRem(20)}; | ||
padding: 0 ${toRem(40)}; | ||
background-color: ${color.primary[10]}; | ||
color: ${color.secondary[100]}; | ||
`; | ||
|
||
const Header: React.FC<HeaderProps> = ({ children }: HeaderProps) => { | ||
return ( | ||
<Layout> | ||
<h1> | ||
<Link to="/">Very Design</Link> | ||
</h1> | ||
|
||
{children} | ||
</Layout> | ||
); | ||
}; | ||
|
||
export default Header; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default as Header } from "./Header" |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default as Image } from "./Image"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import React from "react"; | ||
import styled from "styled-components"; | ||
|
||
import { Footer } from "../Footer"; | ||
import { Header } from "../Header"; | ||
|
||
interface LayoutProps { | ||
children?: React.ReactNode; | ||
} | ||
|
||
const Main = styled.main` | ||
display: flex; | ||
flex-flow: column nowrap; | ||
justify-content: flex-start; | ||
align-items: flex-start; | ||
width: 100%; | ||
height: auto; | ||
`; | ||
|
||
const Layout: React.FC<LayoutProps> = ({ children }: LayoutProps) => { | ||
return ( | ||
<> | ||
<Header /> | ||
<Main>{children}</Main> | ||
<Footer /> | ||
</> | ||
); | ||
}; | ||
|
||
export default Layout; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default as Layout } from "./Layout"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default as SEO } from "./SEO"; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export * from "./Footer"; | ||
export * from "./Header"; | ||
export * from "./Image"; | ||
export * from "./Layout"; | ||
export * from "./SEO"; |
Oops, something went wrong.