1
1
mirror of https://github.com/theoludwig/theoludwig.git synced 2025-05-29 22:37:44 +02:00

fix: usage of correct heading levels and html tags

This commit is contained in:
2024-05-16 09:56:19 +02:00
parent 66cf6d7438
commit bbb2e56512
11 changed files with 79 additions and 81 deletions

View File

@ -20,14 +20,11 @@ export const InterestParagraph = (
const { title, description } = props
return (
<>
<p className="my-6 text-center text-gray dark:text-gray-dark">
<strong className="text-lg font-semibold text-primary dark:text-primary-dark">
{title}
</strong>
<br />
<span>{htmlParser(description)}</span>
</p>
</>
<div className="my-6 text-center text-gray dark:text-gray-dark">
<h3 className="text-lg font-semibold text-primary dark:text-primary-dark">
{title}
</h3>
<p className="my-2">{htmlParser(description)}</p>
</div>
)
}

View File

@ -16,8 +16,8 @@ export const Interests = (): JSX.Element => {
return (
<div className="max-w-full">
{paragraphs.map((paragraph, index) => {
return <InterestParagraph key={index} {...paragraph} />
{paragraphs.map((paragraph) => {
return <InterestParagraph key={paragraph.id} {...paragraph} />
})}
<InterestsList />
</div>