Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding reviewed by section in the blogs and header details in the posts. #43

Open
wants to merge 17 commits into
base: main
Choose a base branch
from

Conversation

Aditya-eddy
Copy link
Contributor

fixes #issue

  1. added the written author and review author details.
  2. also added the post header details such as sharing on {linkedin , X} , added the time to Read and Authored and Reviewed by Section at the top also.
    Attaching Screenshots:
    Screenshot from 2024-04-18 10-34-53
    Screenshot from 2024-04-18 10-34-43

Signed-off-by: Aditya-eddy <aditya282003@gmail.com>
Copy link
Member

@Hermione2408 Hermione2408 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @Aditya-eddy this blog post page needs several adjustments

  • The author and reviewer boxes at the bottom need to match the previous styling with added padding and consistent font colors for the Heading.
  • The label in the reviewer box also displays "AUTHOR DETAILS"; this should be changed to reflect the reviewer's information.
  • the view more button is missing now please add the button within the author and reviewer detail boxes for enhanced navigation.
  • Remove the hover animation on these detail boxes, as they are not interactive elements.

</button>
)}
</div>
{/* {authorLinkedIn !== "n/a" && (
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can remove this commented code if it is not required

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed all the changes.

Signed-off-by: Aditya-eddy <aditya282003@gmail.com>
Signed-off-by: Aditya-eddy <aditya282003@gmail.com>
Signed-off-by: Aditya-eddy <aditya282003@gmail.com>
Copy link
Member

@nehagup nehagup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Aditya-eddy I see there are layout issues on the author image and whitespace left under it. Also, the design of the pop-up box on hovering the author needs to improve.
Screenshot 2024-04-24 at 11 04 55 PM

@Aditya-eddy
Copy link
Contributor Author

@Aditya-eddy I see there are layout issues on the author image and whitespace left under it. Also, the design of the pop-up box on hovering the author needs to improve.

Hey @nehagup I am working on it!

@Aditya-eddy
Copy link
Contributor Author

Hey @nehagup Does this look good:
image
Also should we add links such linkedIn links to the authors?

Signed-off-by: Aditya-eddy <aditya282003@gmail.com>
@Sonichigo
Copy link
Member

hey @Aditya-eddy can you resolve the conflicts ?

Signed-off-by: Aditya-eddy <aditya282003@gmail.com>
@Aditya-eddy
Copy link
Contributor Author

Hey @Sonichigo I have resolved the conflicts please tell me where can we improve the contents of pr. Also any new feature for this pr that you are suggesting?

@nehagup
Copy link
Member

nehagup commented Apr 29, 2024

@Aditya-eddy this has build issues

Signed-off-by: Aditya-eddy <aditya282003@gmail.com>
Signed-off-by: Aditya-eddy <aditya282003@gmail.com>
Signed-off-by: Aditya-eddy <aditya282003@gmail.com>
Copy link
Member

@nehagup nehagup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR @Aditya-eddy, couple of changes are required to merge this.

  1. The written by, socials and mins read should be centre aligned vertically on a straight line. Also please make the profile and text as single liner, say, "Written by Animesh Pathak"
Screenshot 2024-04-30 at 5 05 54 PM
  1. Reviewer on all blogs would be my profile only.
  2. Please add the reviewed by section on tech blogs as well
  3. For the blogs that I have written (user id - neha) please add reviewed by Shubham.

@Aditya-eddy
Copy link
Contributor Author

Hey @nehagup i have made all the changes and the preview looks like this is this okay? Please give your feedback on this!
image

@Aditya-eddy Aditya-eddy requested a review from nehagup May 4, 2024 02:36
Signed-off-by: Aditya-eddy <aditya282003@gmail.com>
Copy link
Member

@Hermione2408 Hermione2408 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Aditya-eddy Build is failing Type error: Cannot find module './SharingComponent' or its corresponding type declarations.

7 | import Image from "next/image";
8 | import PostHeaderAuthors from "./PostHeaderAuthors";

9 | import SharingComponent from "./SharingComponent";
| ^
10 | export default function PostHeader({
11 | title,
12 | coverImage,

Also please go through the comments

sethoverStateBlogReviewer(true);
};

const onmouseleaveBlogReviewer = () => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use consistent camel case

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay!

<>
<div className="max-w-9xl mx-auto bg-slate-000 shadow-md rounded-lg overflow-hidden flex flex-col sm:flex-row md:flex-row lg:flex-row">
<div className="w-3/5 self-center sm:w-1/4 p-8 flex justify-center items-center">
{avatar !== "n/a" && (
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why you are not using a ternary operator here? Is there any specific reason, if not use ternary operator so that there will be no code repetition

@@ -52,6 +56,11 @@ export default function PostBody({ content, authorName }) {
'<div id="author-description-placeholder"></div>' // Placeholder for AuthorDescription
);

replacedContentWithAuthorDescription =
replacedContentWithAuthorDescription.replace(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you please explain this part why you have done this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's captures the class for removing default author part in the blog which comes with wordpress data.

const blogwriter = [
{
name: post?.ppmaAuthorName || "Unknown Author",
ImageUrl: avatarImgSrc,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please ensure that fallback is added for all the values

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have added the fallback values in both the slugs for the community and technology.

if (post && post?.content) {
const tempDiv = document.createElement("div");
tempDiv.innerHTML = post?.content;
const avatarImgElement = tempDiv.querySelector(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is this required can it be done by some other way because if there will be any change in the class it will break, we can't rely on query selector value

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay for that purpose I have used regex now!

Signed-off-by: Aditya-eddy <aditya282003@gmail.com>
Signed-off-by: Aditya-eddy <aditya282003@gmail.com>
Signed-off-by: Aditya-eddy <aditya282003@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants