-
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 branch 'master' of https://github.com/pure-js/local-microbloggi…
- Loading branch information
Showing
11 changed files
with
88 additions
and
101 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,21 @@ | ||
.news-list { | ||
display: grid; | ||
//overflow: hidden; | ||
//width: 100%; | ||
//padding: 0 20px; | ||
grid-column-gap: 15px; | ||
grid-row-gap: 15px; | ||
grid-template-columns: 33% 33% 33%; | ||
|
||
@media screen and (min-width:768px) { | ||
//column-count: 2; | ||
} | ||
|
||
@media screen and (min-width:992px) { | ||
//column-count: 3; | ||
} | ||
|
||
@media screen and (min-width:1200px) { | ||
//column-count: 4; | ||
} | ||
} |
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,32 @@ | ||
import React, { Component } from 'react'; | ||
import bootstrap from 'bootstrap/scss/bootstrap.scss'; | ||
import PropTypes from 'prop-types'; | ||
import StoriesFeed from './Story'; | ||
|
||
class Header extends Component { | ||
render() { | ||
return ( | ||
<nav className="navbar navbar-dark bg-dark"> | ||
<div className="container"> | ||
<a className="navbar-brand" href="#home">Local microblogging client</a> | ||
<div> | ||
<form className="form-inline my-2 my-lg-0"> | ||
<button | ||
className="btn btn-outline-primary my-2 my-sm-0" | ||
type="button" | ||
onClick={this.props.showForm} | ||
>New post | ||
</button> | ||
</form> | ||
</div> | ||
</div> | ||
</nav> | ||
); | ||
} | ||
} | ||
|
||
Header.propTypes = { | ||
showForm: PropTypes.func.isRequired, | ||
}; | ||
|
||
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
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.