Skip to content

Commit 7019f41

Browse files
cbituindavidvicos1
authored andcommitted
Added Blog component and changed blog post properties
1 parent 3de8454 commit 7019f41

16 files changed

Lines changed: 133 additions & 63 deletions

File tree

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
---
2-
publishDate: 'February 30, 2020',
3-
title: 'Hello, World!',
4-
author: 'Edgar Allen Poe',
2+
publishDate: 'February 30, 2020'
3+
title: 'Hello, World!'
4+
author: 'Edgar Allen Poe'
55
---
66

77
# Hello, world!
88

9-
##### By: Conrad Bituin
10-
{publishDate}
9+
##### By: Edgar Allen Poe
1110

1211
Optics helicopter view, so you must be muted out of scope. Slow-walk our commitment. Clear blue water root-and-branch review, so work. Circle back around accountable talk but get buy-in business impact. Quick sync staff engagement, zeitgeist, or what do you feel you would bring to the table if you were hired for this position. Feed the algorithm that ipo will be a game-changer bake it in or talk to the slides. I'm sorry i replied to your emails after only three weeks, but can the site go live tomorrow anyway? best practices. Big picture at the end of the day, or we need to crystallize a plan, so action item. Who's responsible for the ask for this request? we need to get all stakeholders up to speed and in the right place or wheelhouse synergize productive mindfulness but land the plane create spaces to explore what’s next make sure to include in your wheelhouse. Put your feelers out productize and we need to aspirationalise our offerings we don't need to boil the ocean here for beef up quick sync. In this space performance review nor can we jump on a zoom for killing it, so that is a good problem to have. It's not hard guys let's schedule a standup during the sprint to review our kpis. Screw the pooch who's the goto on this job with the way forward yet target rich environment.
1312

‎blogArticles/second.md‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
publishDate: 'February 30, 2020'
3+
title: 'Second'
4+
author: 'Edgar Allen Poe'
5+
---
6+
7+
# Second Article
8+
9+
Lorem ipsum.

‎blogArticles/second.mdx‎

Lines changed: 0 additions & 9 deletions
This file was deleted.

‎blogArticles/third.md‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
publishDate: 'February 30, 2020'
3+
title: 'third'
4+
author: 'Edgar Allen Poe'
5+
---
6+
7+
# Third Article
8+
9+
Lorem ipsum.

‎blogArticles/third.mdx‎

Lines changed: 0 additions & 8 deletions
This file was deleted.

‎components/Blog/Blog.js‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import React from 'react';
2+
import { string, node } from 'prop-types';
3+
import classNames from 'classnames';
4+
import styles from './Blog.module.css';
5+
6+
Blog.propTypes = {
7+
children: node.isRequired,
8+
className: string,
9+
};
10+
11+
Blog.defaultProps = {
12+
className: undefined,
13+
};
14+
15+
export default function Blog({ className, children }) {
16+
return <div className={classNames(className, styles.Blog)}>{children}</div>
17+
}

‎components/Blog/Blog.module.css‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.Blog {}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import React from 'react';
2+
3+
import Blog from '../Blog';
4+
5+
export default {
6+
component: Blog,
7+
title: 'Blog',
8+
};
9+
10+
const Template = (args) => <Blog {...args} />;
11+
12+
export const Default = Template.bind({});
13+
14+
/** Default Blog supplied with only required args */
15+
Default.args = {
16+
children: '',
17+
};
18+
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import React from 'react';
2+
import { render } from '@testing-library/react';
3+
4+
import Blog from '../Blog';
5+
6+
describe('Blog', () => {
7+
it('should render', () => {
8+
const { container } = render(<Blog />);
9+
10+
expect(container.firstChild).not.toBeNull();
11+
})
12+
});

‎jsconfig.json‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77
"baseUrl": ".",
88
"paths": {
99
// Ensure intellisense continues to operate - match with webpack aliases
10-
"@blogApi/*": ["./pages/api/blogIndex"],
11-
"@blogArticles/*": ["./blogArticles/*"],
12-
"@blogLayouts/*": ["./pages/blog/_blogLayouts/*"],
1310
"common/*": ["./common/*"],
1411
"components/*": ["./components/*"],
1512
"pages/*": ["./pages/*"],

0 commit comments

Comments
 (0)