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

style blogpost page #44

Merged
merged 18 commits into from
Oct 4, 2024
Merged

style blogpost page #44

merged 18 commits into from
Oct 4, 2024

Conversation

rccsousa
Copy link
Collaborator

@rccsousa rccsousa commented Oct 3, 2024

Why:

  • blogposts page was missing the correct styling;
    How:
  • added new components to encapsulate different parts of blog posts and new methods to manipulate dangerouslySetInnerHTML and ensure all headings are enforced to h5 to maintain format consistency as well as labeling chapters;

@rccsousa rccsousa marked this pull request as ready for review October 3, 2024 16:13
Copy link
Contributor

@davelange davelange left a comment

Choose a reason for hiding this comment

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

Nice work 💯

})
}

const [url, setUrl] = useState('')
Copy link
Contributor

Choose a reason for hiding this comment

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

Can't we use window.location.href directly, instead of setting url in a useEffect?

Copy link
Contributor

Choose a reason for hiding this comment

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

nvm, it's because of nextjs shenanigans, of course

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yep, classic nextjs shenanigans 😅
for future refference: for this type of projects would astro (or similar) be leaner / less bloated code-wise than nextjs?

@rccsousa rccsousa merged commit 4046bfd into main Oct 4, 2024
1 check passed
@rccsousa rccsousa deleted the rs/style-blogpost-page branch October 4, 2024 09:32
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