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

improve navigation #58

Merged
merged 19 commits into from
Oct 21, 2024
Merged

improve navigation #58

merged 19 commits into from
Oct 21, 2024

Conversation

rccsousa
Copy link
Collaborator

why:

  • author pills were not linking to author pages,
  • content cards were linking to content on their entirety thus rendering buttons unclicable,
  • highlights were not linking to content;
    how:
  • refactored Author pill to conditionally render based on number of authors;
  • added links to elements;
  • adress category styling on hub highlights, solving fix category grid on home page highlights section #45

Copy link

netlify bot commented Oct 16, 2024

Deploy Preview for content-sub ready!

Name Link
🔨 Latest commit bb65893
🔍 Latest deploy log https://app.netlify.com/sites/content-sub/deploys/671266b320d61c00083fd31e
😎 Deploy Preview https://deploy-preview-58--content-sub.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

- make header correspond to page type, changing background and font
  colors based on the type of page it is inserted instead of being
  generic
- changed metadata generation, badges, favicons and open graphs,
  replacing payload boilerplate open graph and use content tailored to
  the content-sub project
@rccsousa
Copy link
Collaborator Author

@davelange i'll mark this as ready for review for now and move on to other smaller adjustments on a new PR as this one is already quite long, but navigation had many things needing fixing;

will do a clean up pass soon

@rccsousa rccsousa marked this pull request as ready for review October 17, 2024 11:46
);
}

export function TwoAuthorPill({ authors }) {
Copy link
Contributor

Choose a reason for hiding this comment

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

It would be easier if there's only 1 AuthorPill. You could continue having the TwoAuthorPill and VariousAuthorsPill, but I'd suggest only exporting one AuthorPill that receives a user array, checks the length, and internally decides if it should use SingleAuthor, TwoAuthor, or Various Author. That way when you use it elsewhere, you dont need to worry about how which version to use

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Great idea, i'll implement this, thanks

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done in 90ef400

- remake author pill as a standalone component;
- use conditional rendering to make it fit one, two or more
contributors;
@rccsousa rccsousa merged commit 6ca08ed into main Oct 21, 2024
5 checks passed
@rccsousa rccsousa deleted the rs/improve-navigation branch October 21, 2024 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants