Skip to content

Commit

Permalink
fa
Browse files Browse the repository at this point in the history
  • Loading branch information
dhilipkmr committed Mar 24, 2019
1 parent 041efb1 commit c9b0852
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
11 changes: 5 additions & 6 deletions src/components/BlogFooter.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,18 @@ import {Link} from 'gatsby';

export default function BlogFooter(props) {
const {posts} = props;
console.log(props);
return (
<div className="blogFooter">
<div className="mw960">
{
posts.map((post) => {
const {title, date, description, timeToRead, path} = post.node.frontmatter;
return(
<div className="cardWrap">
<Link to={path} className="cardHeader ellipsis2 fb">{title}</Link>
<div className="cardHeadingSub ico12">{date + ' ~ ' + timeToRead + ' min read'}</div>
<div className="cardDescription ico14 padT10 ellipsis2 padB10">{description}</div>
</div>
<div className="cardWrap" key={path}>
<Link to={path} className="cardHeader ellipsis2 fb">{title}</Link>
<div className="cardHeadingSub ico12">{date + ' ~ ' + timeToRead + ' min read'}</div>
<div className="cardDescription ico14 padT10 ellipsis2 padB10">{description}</div>
</div>
)
})
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/ContactMe.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const ContactMe = ({theme}) => {
const ICON = contactItem[1];
const title = contactItem[2];
return (
<div className=" marginR30 inbl scaleOnHover ico25">
<div key={title} className=" marginLR15 inbl scaleOnHover ico25">
<a href={url} title={title} target="_blank" rel="noopener noreferrer">
{ICON}
</a>
Expand Down
7 changes: 4 additions & 3 deletions src/components/style/common.css
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,9 @@ body.dark {
.marginR20 {
margin-right: 20px;
}
.marginR30 {
margin-right: 30px;
.marginLR15 {
margin-right: 15px;
margin-left: 15px;
}
.marginB20 {
margin-bottom: 20px;
Expand Down Expand Up @@ -348,7 +349,7 @@ pre[class*='language-'] {
color: var(--inlineCode-text);
padding: 0.15em 0.2em 0.05em;
white-space: normal;
font-size: 14px;
font-size: 15px;
}

/* Code blocks */
Expand Down

0 comments on commit c9b0852

Please sign in to comment.