From 7175e3c98da7630027813a6fef273189272fe123 Mon Sep 17 00:00:00 2001 From: rishabh7923 Date: Thu, 31 Oct 2024 12:33:16 +0530 Subject: [PATCH] Improved "Create Post" Page --- views/admin/add-post.ejs | 323 ++++++++++++++------------------------- 1 file changed, 116 insertions(+), 207 deletions(-) diff --git a/views/admin/add-post.ejs b/views/admin/add-post.ejs index 5479839..3d661a6 100644 --- a/views/admin/add-post.ejs +++ b/views/admin/add-post.ejs @@ -1,224 +1,133 @@ - - - - Add a New Blog - + +← Back +

Add New Post

+
+ +
+
+ <% if (typeof message !=='undefined' && message.errors && message.errors.length) { %> +
+ <% message.errors.forEach(err=> { %> +

+ <%= err.msg %> +

+ <% }); %> +
+ <% } %> - button:hover { - background-color: #ff4e50; - } + + - /* Animations */ - @keyframes fadeInUp { - from { - opacity: 0; - transform: translateY(30px); - } - to { - opacity: 1; - transform: translateY(0); - } - } + + +
- /* Responsive */ - @media screen and (max-width: 768px) { - .content-wrapper { - flex-direction: column; - padding: 20px; - } - - .content-left, - .content-right { - width: 100%; - } - - .content-left { - margin-bottom: 30px; - text-align: center; - } - } - - - - -
-
-

Create Your Masterpiece

-

Share your thoughts and experiences with the world!

-
+
+
+ + +
-
-
- <% if (typeof message !== 'undefined' && message.errors && message.errors.length) { %> -
- <% message.errors.forEach(err => { %> -

<%= err.msg %>

- <% }); %> -
- <% } %> -

Add a New Blog

- -
- - -
-
- - -
-
- - -
- - -
+
+ +
+

Image Placeholder

- - + + +
+ + + \ No newline at end of file