From bbb2e56512a76063006ce79142e51dcb30c7a99a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Th=C3=A9o=20LUDWIG?=
Date: Thu, 16 May 2024 09:56:19 +0200
Subject: [PATCH] fix: usage of correct heading levels and html tags
---
blog/BlogPosts.tsx | 45 ++++++++++------------
components/Header/index.tsx | 2 +-
components/Interests/InterestParagraph.tsx | 15 +++-----
components/Interests/index.tsx | 4 +-
components/OpenSource/Repository.tsx | 20 +++++-----
components/OpenSource/index.tsx | 4 +-
components/Portfolio/PortfolioItem.tsx | 38 +++++++++---------
components/Portfolio/index.tsx | 8 ++--
components/Skills/Skill.tsx | 18 ++++-----
components/Skills/SkillsSection.tsx | 2 +-
components/design/Section/index.tsx | 4 +-
11 files changed, 79 insertions(+), 81 deletions(-)
diff --git a/blog/BlogPosts.tsx b/blog/BlogPosts.tsx
index 94492b6..c73df95 100644
--- a/blog/BlogPosts.tsx
+++ b/blog/BlogPosts.tsx
@@ -9,37 +9,34 @@ export const BlogPosts = async (): Promise => {
return (
-
- {posts.map((post, index) => {
+
+
)
}
diff --git a/components/Header/index.tsx b/components/Header/index.tsx
index f063e32..63e8825 100644
--- a/components/Header/index.tsx
+++ b/components/Header/index.tsx
@@ -17,7 +17,7 @@ export const Header = (): JSX.Element => {
-
-
- {title}
-
-
- {htmlParser(description)}
-
- >
+
+
+ {title}
+
+
{htmlParser(description)}
+
)
}
diff --git a/components/Interests/index.tsx b/components/Interests/index.tsx
index f3fe129..341e71f 100644
--- a/components/Interests/index.tsx
+++ b/components/Interests/index.tsx
@@ -16,8 +16,8 @@ export const Interests = (): JSX.Element => {
return (
- {paragraphs.map((paragraph, index) => {
- return
+ {paragraphs.map((paragraph) => {
+ return
})}
diff --git a/components/OpenSource/Repository.tsx b/components/OpenSource/Repository.tsx
index 21f3cfc..d7ac058 100644
--- a/components/OpenSource/Repository.tsx
+++ b/components/OpenSource/Repository.tsx
@@ -11,16 +11,18 @@ export const Repository = (props: RepositoryProps): JSX.Element => {
const { name, description, href } = props
return (
-
+
-
-
-
- {name}
-
-
- {description}
+
+
+
+
+ {name}
+
+
+ {description}
+
-
+
)
}
diff --git a/components/OpenSource/index.tsx b/components/OpenSource/index.tsx
index c37a40d..6ba54aa 100644
--- a/components/OpenSource/index.tsx
+++ b/components/OpenSource/index.tsx
@@ -10,7 +10,7 @@ export const OpenSource = (): JSX.Element => {
{i18n.translate("home.open-source.description")}
-
+
{
description="The React Framework"
href="https://github.com/vercel/next.js/commits?author=theoludwig"
/>
-
+
)
}
diff --git a/components/Portfolio/PortfolioItem.tsx b/components/Portfolio/PortfolioItem.tsx
index 2da7cbc..db5085f 100644
--- a/components/Portfolio/PortfolioItem.tsx
+++ b/components/Portfolio/PortfolioItem.tsx
@@ -13,7 +13,7 @@ export const PortfolioItem = (props: PortfolioItemProps): JSX.Element => {
const { title, description, link, image } = props
return (
-
+
{
href={link}
aria-label={title}
>
-
-
-
-
-
- {title}
-
-
{description}
-
+
+
+
+
+
+
+ {title}
+
+
{description}
+
+
-
+
)
}
diff --git a/components/Portfolio/index.tsx b/components/Portfolio/index.tsx
index 331ea02..3b4e852 100644
--- a/components/Portfolio/index.tsx
+++ b/components/Portfolio/index.tsx
@@ -12,10 +12,10 @@ export const Portfolio = (): JSX.Element => {
}
return (
-
- {items.map((item, index) => {
- return
+
+ {items.map((item) => {
+ return
})}
-
+
)
}
diff --git a/components/Skills/Skill.tsx b/components/Skills/Skill.tsx
index dd4b9e5..bc74e09 100644
--- a/components/Skills/Skill.tsx
+++ b/components/Skills/Skill.tsx
@@ -27,13 +27,13 @@ export const SkillComponent = (props: SkillComponentProps): JSX.Element => {
}
return (
-
-
-
+
+
)
}
diff --git a/components/Skills/SkillsSection.tsx b/components/Skills/SkillsSection.tsx
index 6773ade..724c2ac 100644
--- a/components/Skills/SkillsSection.tsx
+++ b/components/Skills/SkillsSection.tsx
@@ -18,7 +18,7 @@ export const SkillsSection = (props: SkillsSectionProps): JSX.Element => {
{title}
- {children}
+
diff --git a/components/design/Section/index.tsx b/components/design/Section/index.tsx
index 9778107..9e6a89f 100644
--- a/components/design/Section/index.tsx
+++ b/components/design/Section/index.tsx
@@ -57,8 +57,8 @@ export const Section = (props: SectionProps): JSX.Element => {
) : null}
-
- {children}
+
+ {children}