-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #155 from DeKal/add-blog-page
Create new page blogs and move Navbar to core
- Loading branch information
Showing
34 changed files
with
754 additions
and
255 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
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,11 @@ | ||
import React, { Fragment } from 'react' | ||
import Head from '~/views/blogs/components/Head' | ||
import Navbar from '~/views/core/components/Navbar' | ||
const Blogs = () => ( | ||
<Fragment> | ||
<Head /> | ||
<Navbar /> | ||
</Fragment> | ||
) | ||
|
||
export default Blogs |
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
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
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,13 @@ | ||
import React from 'react' | ||
import NextHead from 'next/head' | ||
|
||
const Head = () => ( | ||
<NextHead> | ||
<title>Coding with the Devil ;)</title> | ||
<meta charSet="utf-8" /> | ||
<meta name="description" content="Coding with the Devil ;)" /> | ||
<meta name="keywords" content="coding, blogs, diaries" /> | ||
</NextHead> | ||
) | ||
|
||
export default Head |
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,12 @@ | ||
import * as React from 'react' | ||
import { mountWithTheme } from '~/utils/withThemeProviders' | ||
import Head from '~/views/blogs/components/Head' | ||
|
||
describe('Head', () => { | ||
|
||
it('should render without throwing an error', function () { | ||
const wrap = mountWithTheme(<Head />) | ||
expect(wrap).toMatchSnapshot() | ||
}) | ||
|
||
}) |
13 changes: 13 additions & 0 deletions
13
views/blogs/components/__tests__/__snapshots__/Head.spec.tsx.snap
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,13 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Head should render without throwing an error 1`] = ` | ||
<Head> | ||
<Head> | ||
<Component | ||
handleStateChange={null} | ||
inAmpMode={false} | ||
reduceComponentsToState={[Function]} | ||
/> | ||
</Head> | ||
</Head> | ||
`; |
4 changes: 2 additions & 2 deletions
4
views/home/components/Navbar.js β views/core/components/Navbar.js
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
2 changes: 1 addition & 1 deletion
2
.../home/components/__test__/Navbar.spec.tsx β .../core/components/__test__/Navbar.spec.tsx
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
Oops, something went wrong.
620dd6a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to following URLs: