Skip to content

Commit 3ab95ac

Browse files
blog component created
1 parent 747616f commit 3ab95ac

File tree

11 files changed

+1165
-9
lines changed

11 files changed

+1165
-9
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@ Entire commit History
4545
| [creating tagSchema model and tag controller and handling errors and avoiding duplicate tag in the backend](https://github.com/pramit-marattha/MongoDB-React-Express-Node-Fullstack-TechBlogsite/commit/844d59771007e67414d916364910afc30b89f16f) | [Source File](https://github.com/pramit-marattha/MongoDB-React-Express-Node-Fullstack-TechBlogsite/tree/844d59771007e67414d916364910afc30b89f16f) |
4646
| [Implementing a slim progress bar at the top of the header using nprogress npm package](https://github.com/pramit-marattha/MongoDB-React-Express-Node-Fullstack-TechBlogsite/commit/4d78c7a33d82cf8206a9f630548769f1e6c19081) | [Source File](https://github.com/pramit-marattha/MongoDB-React-Express-Node-Fullstack-TechBlogsite/tree/4d78c7a33d82cf8206a9f630548769f1e6c19081) |
4747
| [styling nprogress and adding some material icons](https://github.com/pramit-marattha/MongoDB-React-Express-Node-Fullstack-TechBlogsite/commit/f10cb0f5860a1e05a3814a180745656d4433031f) | [Source File](https://github.com/pramit-marattha/MongoDB-React-Express-Node-Fullstack-TechBlogsite/tree/f10cb0f5860a1e05a3814a180745656d4433031f) |
48-
| [created new category-tag page for updating category as well as tags](https://github.com/pramit-marattha/MongoDB-React-Express-Node-Fullstack-TechBlogsite/commit/a85387f9390e8b4383eee8ae1f1eadd1b63fe1d1) |[source file](https://github.com/pramit-marattha/MongoDB-React-Express-Node-Fullstack-TechBlogsite/tree/a85387f9390e8b4383eee8ae1f1eadd1b63fe1d1) |
49-
| [creating categories from the client side](https://github.com/pramit-marattha/MongoDB-React-Express-Node-Fullstack-TechBlogsite/commit/30b5b3d2492a5e3053f27bd7f98d5068b63cf100) |[Source file](https://github.com/pramit-marattha/MongoDB-React-Express-Node-Fullstack-TechBlogsite/tree/) |
50-
| [creating removing categories from the client side](https://github.com/pramit-marattha/MongoDB-React-Express-Node-Fullstack-TechBlogsite/commit/8cfd77be3b32ecda8753c419eac8dc5e560af335) |[Source file](https://github.com/pramit-marattha/MongoDB-React-Express-Node-Fullstack-TechBlogsite/tree/8cfd77be3b32ecda8753c419eac8dc5e560af335) |
51-
| [creating,removing tags from the client side](https://github.com/pramit-marattha/MongoDB-React-Express-Node-Fullstack-TechBlogsite/commit/d575fe24352ff9e8e2f632e270186dab5e6670e0) |[Source file](https://github.com/pramit-marattha/MongoDB-React-Express-Node-Fullstack-TechBlogsite/tree/d575fe24352ff9e8e2f632e270186dab5e6670e0) |
52-
| [created a blog schema model on server ](https://github.com/pramit-marattha/MongoDB-React-Express-Node-Fullstack-TechBlogsite/commit/829dda0c610fa93341c5e1585f6e5a1be9d0f62e) |[Source file](https://github.com/pramit-marattha/MongoDB-React-Express-Node-Fullstack-TechBlogsite/tree/829dda0c610fa93341c5e1585f6e5a1be9d0f62e) |
53-
| [updating blog routes](https://github.com/pramit-marattha/MongoDB-React-Express-Node-Fullstack-TechBlogsite/commit/dbef84ceee59e51e5b8be538eb4ae45113c0f6a8) |[Source file](https://github.com/pramit-marattha/MongoDB-React-Express-Node-Fullstack-TechBlogsite/tree/dbef84ceee59e51e5b8be538eb4ae45113c0f6a8) |
48+
| [created new category-tag page for updating category as well as tags](https://github.com/pramit-marattha/MongoDB-React-Express-Node-Fullstack-TechBlogsite/commit/a85387f9390e8b4383eee8ae1f1eadd1b63fe1d1) |[source File](https://github.com/pramit-marattha/MongoDB-React-Express-Node-Fullstack-TechBlogsite/tree/a85387f9390e8b4383eee8ae1f1eadd1b63fe1d1) |
49+
| [creating categories from the client side](https://github.com/pramit-marattha/MongoDB-React-Express-Node-Fullstack-TechBlogsite/commit/30b5b3d2492a5e3053f27bd7f98d5068b63cf100) |[Source File](https://github.com/pramit-marattha/MongoDB-React-Express-Node-Fullstack-TechBlogsite/tree/) |
50+
| [creating removing categories from the client side](https://github.com/pramit-marattha/MongoDB-React-Express-Node-Fullstack-TechBlogsite/commit/8cfd77be3b32ecda8753c419eac8dc5e560af335) |[Source File](https://github.com/pramit-marattha/MongoDB-React-Express-Node-Fullstack-TechBlogsite/tree/8cfd77be3b32ecda8753c419eac8dc5e560af335) |
51+
| [creating,removing tags from the client side](https://github.com/pramit-marattha/MongoDB-React-Express-Node-Fullstack-TechBlogsite/commit/d575fe24352ff9e8e2f632e270186dab5e6670e0) |[Source File](https://github.com/pramit-marattha/MongoDB-React-Express-Node-Fullstack-TechBlogsite/tree/d575fe24352ff9e8e2f632e270186dab5e6670e0) |
52+
| [created a blog schema model on server ](https://github.com/pramit-marattha/MongoDB-React-Express-Node-Fullstack-TechBlogsite/commit/829dda0c610fa93341c5e1585f6e5a1be9d0f62e) |[Source File](https://github.com/pramit-marattha/MongoDB-React-Express-Node-Fullstack-TechBlogsite/tree/829dda0c610fa93341c5e1585f6e5a1be9d0f62e) |
53+
| [updating blog routes](https://github.com/pramit-marattha/MongoDB-React-Express-Node-Fullstack-TechBlogsite/commit/dbef84ceee59e51e5b8be538eb4ae45113c0f6a8) |[Source File](https://github.com/pramit-marattha/MongoDB-React-Express-Node-Fullstack-TechBlogsite/tree/dbef84ceee59e51e5b8be538eb4ae45113c0f6a8) |
5454
| [ created the entire blog controller ](https://github.com/pramit-marattha/MongoDB-React-Express-Node-Fullstack-TechBlogsite/commit/180689c8cbdda6679607e132e06714b5bf5dd64b) |[Source file](https://github.com/pramit-marattha/MongoDB-React-Express-Node-Fullstack-TechBlogsite/tree/180689c8cbdda6679607e132e06714b5bf5dd64b) |
55-
| [creating a meta description by stripping html tags from body by using cli-strip-html package](https://github.com/pramit-marattha/MongoDB-React-Express-Node-Fullstack-TechBlogsite/commit/514041bd2c4fee836f19e2b5b1725c1bc212fd51) |[Source file](https://github.com/pramit-marattha/MongoDB-React-Express-Node-Fullstack-TechBlogsite/tree/514041bd2c4fee836f19e2b5b1725c1bc212fd51) |
56-
| [Integrating categories and tags inside blog](https://github.com/pramit-marattha/MongoDB-React-Express-Node-Fullstack-TechBlogsite/commit/2c04de9b00a560e980b736edd17cebd42460a9b8) | [Source file](https://github.com/pramit-marattha/MongoDB-React-Express-Node-Fullstack-TechBlogsite/tree/2c04de9b00a560e980b736edd17cebd42460a9b8) |
55+
| [creating a meta description by stripping html tags from body by using cli-strip-html package](https://github.com/pramit-marattha/MongoDB-React-Express-Node-Fullstack-TechBlogsite/commit/514041bd2c4fee836f19e2b5b1725c1bc212fd51) |[Source File](https://github.com/pramit-marattha/MongoDB-React-Express-Node-Fullstack-TechBlogsite/tree/514041bd2c4fee836f19e2b5b1725c1bc212fd51) |
56+
| [Integrating categories and tags inside blog](https://github.com/pramit-marattha/MongoDB-React-Express-Node-Fullstack-TechBlogsite/commit/2c04de9b00a560e980b736edd17cebd42460a9b8) | [Source File](https://github.com/pramit-marattha/MongoDB-React-Express-Node-Fullstack-TechBlogsite/tree/2c04de9b00a560e980b736edd17cebd42460a9b8) |
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
const NewBlog = ()=>{
2+
return (
3+
<div>
4+
Create Blog Form
5+
</div>
6+
)
7+
};
8+
9+
export default NewBlog;

client/pages/_document.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ class MyDocument extends Document {
2626
}
2727
}
2828

29-
export default MyDocument
29+
export default MyDocument;

client/pages/adminDashboard/index.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,26 @@ const AdminIndex =() =>{
1414
</div>
1515
<div className="col-md-4 pt-5 pb-5">
1616
<ul className="list-group">
17+
{/* // new category */}
1718
<li className="list-group-item">
1819
<Link href="/adminDashboard/update/category-tag">
1920
<a>Create new category</a>
2021
</Link>
2122
</li>
2223

24+
{/* // new tag */}
2325
<li className="list-group-item">
2426
<Link href="/adminDashboard/update/category-tag">
2527
<a>Create new tag</a>
2628
</Link>
2729
</li>
30+
31+
{/* // new blog */}
32+
<li className="list-group-item">
33+
<Link href="/adminDashboard/update/blog">
34+
<a>Create new blog</a>
35+
</Link>
36+
</li>
2837
</ul>
2938
</div>
3039
<div className="col-md-8 pt-5 pb-5">
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
import Layout from "../../../components/Layout";
2+
import Admin from "../../../components/authentication/Admin";
3+
import CreateNewBlog from "../../../components/update/NewBlog";
4+
5+
import Link from "next/link";
6+
import CategoryIcon from '@material-ui/icons/Category';
7+
import AddIcon from '@material-ui/icons/Add';
8+
import LocalOfferIcon from '@material-ui/icons/LocalOffer';
9+
import BookIcon from '@material-ui/icons/Book';
10+
import PostAddIcon from '@material-ui/icons/PostAdd';
11+
12+
13+
const Createblog =() =>{
14+
return(
15+
<Layout>
16+
<Admin>
17+
<div className="container-fluid">
18+
<div className="row">
19+
<div className="col-md-12">
20+
<h1 className="text-center">
21+
<PostAddIcon style={{"color":"pink"}}/>
22+
Create a new blog
23+
<BookIcon style={{"color":"teal"}}/>
24+
</h1>
25+
</div>
26+
<div className="col-md-12">
27+
<CreateNewBlog/>
28+
</div>
29+
</div>
30+
</div>
31+
</Admin>
32+
</Layout>
33+
)
34+
}
35+
36+
export default Createblog;

client/static/assets/19390.jpg

2.52 MB
Loading

client/static/assets/27263.jpg

1.22 MB
Loading

0 commit comments

Comments
 (0)