feat: apply RichText to content sections and experience cards

ExperienceCard description switches from a plain <p> to RichText so
rich-text HTML from PocketBase renders correctly. BioSection and
IntroSection drop the prose class overrides — RichText handles
typography consistently.
This commit is contained in:
Ilia Mashkov
2026-05-16 19:04:18 +03:00
parent dfc3ed4715
commit e63de14515
4 changed files with 6 additions and 6 deletions
@@ -50,10 +50,10 @@ describe('ExperienceCard', () => {
expect(company).toHaveClass('opacity-80');
});
it('description paragraph has text-base and max-w-[700px]', () => {
it('description renders via RichText with rich-text class', () => {
render(<ExperienceCard {...DEFAULT_PROPS} />);
const desc = screen.getByText('Built scalable frontend systems.');
expect(desc).toHaveClass('text-base', 'max-w-[700px]');
expect(desc.closest('.rich-text')).toBeInTheDocument();
});
it('card has brutal-border class (from Card component)', () => {