design changes and project updates
This commit is contained in:
parent
6ad19a8bfa
commit
e375cbe23d
21 changed files with 174 additions and 217 deletions
|
@ -5,17 +5,16 @@ import {AllBlogs} from "../../static/data/Blogs";
|
|||
|
||||
export default function Blogs() {
|
||||
|
||||
let blogId = 0;
|
||||
|
||||
return (
|
||||
<div className={"child"}>
|
||||
<div className={"row"} style={{alignContent: "center"}}>
|
||||
{AllBlogs.reverse().map((blog, i) => {
|
||||
blogId++;
|
||||
if(!blog.private) {
|
||||
return <BlogCard num={AllBlogs.length - blogId} className={"col-md-4"} blog={blog}/>
|
||||
}
|
||||
})}
|
||||
<div className={"h-100 d-md-flex justify-content-center align-items-center"}>
|
||||
<div>
|
||||
<h1 className={"mt-4"}>Blogs</h1>
|
||||
<div className={"row"} style={{alignContent: "center"}}>
|
||||
{AllBlogs.sort((a, b)=> b.date.getTime() - a.date.getTime()).map((blog) => {
|
||||
if(blog.private) return;
|
||||
return <BlogCard className={"col-md-4"} blog={blog}/>
|
||||
})}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue