adrianhajdin / project_graphql_blog

With featured and recent posts, categories. full markdown articles, author information, comments, and much more, this fully responsive CMS Blog App is the best Blog Application that you can currently find on YouTube. And what's best of all is that you and your clients can manage the blog from a dedicated Content Management System.
https://jsmastery.pro
1.47k stars 347 forks source link

Email Required Problem & Post Page Pagination & Author Image Can Not Center Issues #62

Open joshuadesigner05 opened 1 year ago

joshuadesigner05 commented 1 year ago

Hi everyone. I have 3 different problem in this project.

First of all, I would like to express my sincere thanks to @adrianhajdin for this beautiful project he has prepared. Thanks Adrian. <3

Now, if I come to my problems, first of all, when someone wants to send a comment, they can send me their post for approval by simply typing "blabla" without typing "blabla@xyz.com" in the email field in the message they send. How can I solve this?

Secondly, after there are 10 posts on the main page, I want the 11th post to be displayed on the second page. How do I provide this?

Third and finally, author image is not centered even though I write the following codes in Author section. What could be causing this and how can I fix it?

image

In addition, although the height values are entered as "100px" in the video, when I do the same, I get the following error. For this reason, I have to write without px in curly brackets. Is this due to version differences or is there a way I can do this? Frankly, Image component of Next JS is tiring me a lot, unfortunately.

Error: Image with src ["https://media.graphassets.com/myphotoaddress"](https://media.graphassets.com/myphotoaddress) has invalid "height" property. Expected a numeric value in pixels but received "100px".

jasonyeon110 commented 1 year ago

@joshuadesigner05 try this, className="absolute -top-2 left-1/2 transform -translate-x-1/2 -translate-y-1/2
This className for the parent of should put the author image in the center