mirror of
https://github.com/theoludwig/theoludwig.git
synced 2024-12-08 00:44:30 +01:00
fix: usage of correct heading levels and html tags
This commit is contained in:
parent
66cf6d7438
commit
bbb2e56512
@ -9,37 +9,34 @@ export const BlogPosts = async (): Promise<JSX.Element> => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="flex w-full items-center justify-center p-8">
|
<div className="flex w-full items-center justify-center p-8">
|
||||||
<div className="w-[1600px]" data-cy="blog-posts">
|
<ul className="w-[1600px]" data-cy="blog-posts">
|
||||||
{posts.map((post, index) => {
|
{posts.map((post) => {
|
||||||
const postPublishedOn = date.format(
|
const postPublishedOn = date.format(
|
||||||
new Date(post.frontmatter.publishedOn),
|
new Date(post.frontmatter.publishedOn),
|
||||||
"DD/MM/YYYY",
|
"DD/MM/YYYY",
|
||||||
)
|
)
|
||||||
return (
|
return (
|
||||||
<Link
|
<li key={post.slug}>
|
||||||
href={`/blog/${post.slug}`}
|
<Link href={`/blog/${post.slug}`} locale="en" data-cy={post.slug}>
|
||||||
key={index}
|
<ShadowContainer className="cursor-pointer p-6 transition-all duration-300 ease-in-out hover:scale-[1.02]">
|
||||||
locale="en"
|
<h2
|
||||||
data-cy={post.slug}
|
data-cy="blog-post-title"
|
||||||
>
|
className="text-xl font-semibold text-primary dark:text-primary-dark"
|
||||||
<ShadowContainer className="cursor-pointer p-6 transition-all duration-300 ease-in-out hover:scale-[1.02]">
|
>
|
||||||
<h2
|
{post.frontmatter.title}
|
||||||
data-cy="blog-post-title"
|
</h2>
|
||||||
className="text-xl font-semibold text-primary dark:text-primary-dark"
|
<p data-cy="blog-post-date" className="mt-2">
|
||||||
>
|
{postPublishedOn}
|
||||||
{post.frontmatter.title}
|
</p>
|
||||||
</h2>
|
<p data-cy="blog-post-description" className="mt-3">
|
||||||
<p data-cy="blog-post-date" className="mt-2">
|
{post.frontmatter.description}
|
||||||
{postPublishedOn}
|
</p>
|
||||||
</p>
|
</ShadowContainer>
|
||||||
<p data-cy="blog-post-description" className="mt-3">
|
</Link>
|
||||||
{post.frontmatter.description}
|
</li>
|
||||||
</p>
|
|
||||||
</ShadowContainer>
|
|
||||||
</Link>
|
|
||||||
)
|
)
|
||||||
})}
|
})}
|
||||||
</div>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
@ -17,7 +17,7 @@ export const Header = (): JSX.Element => {
|
|||||||
<h1>
|
<h1>
|
||||||
<Link
|
<Link
|
||||||
href="/"
|
href="/"
|
||||||
className="flex items-center justify-center transition-all duration-300 ease-in-out hover:scale-105"
|
className="flex items-center justify-center transition-all duration-300 ease-in-out hover:scale-[1.03]"
|
||||||
>
|
>
|
||||||
<Image
|
<Image
|
||||||
quality={100}
|
quality={100}
|
||||||
|
@ -20,14 +20,11 @@ export const InterestParagraph = (
|
|||||||
const { title, description } = props
|
const { title, description } = props
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<div className="my-6 text-center text-gray dark:text-gray-dark">
|
||||||
<p className="my-6 text-center text-gray dark:text-gray-dark">
|
<h3 className="text-lg font-semibold text-primary dark:text-primary-dark">
|
||||||
<strong className="text-lg font-semibold text-primary dark:text-primary-dark">
|
{title}
|
||||||
{title}
|
</h3>
|
||||||
</strong>
|
<p className="my-2">{htmlParser(description)}</p>
|
||||||
<br />
|
</div>
|
||||||
<span>{htmlParser(description)}</span>
|
|
||||||
</p>
|
|
||||||
</>
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
@ -16,8 +16,8 @@ export const Interests = (): JSX.Element => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="max-w-full">
|
<div className="max-w-full">
|
||||||
{paragraphs.map((paragraph, index) => {
|
{paragraphs.map((paragraph) => {
|
||||||
return <InterestParagraph key={index} {...paragraph} />
|
return <InterestParagraph key={paragraph.id} {...paragraph} />
|
||||||
})}
|
})}
|
||||||
<InterestsList />
|
<InterestsList />
|
||||||
</div>
|
</div>
|
||||||
|
@ -11,16 +11,18 @@ export const Repository = (props: RepositoryProps): JSX.Element => {
|
|||||||
const { name, description, href } = props
|
const { name, description, href } = props
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ShadowContainer className="relative !mb-4 max-h-32 cursor-pointer p-6 transition-all duration-300 ease-in-out hover:scale-[1.03]">
|
<li>
|
||||||
<a href={href} target="_blank" rel="noopener noreferrer">
|
<a href={href} target="_blank" rel="noopener noreferrer">
|
||||||
<div className="flex">
|
<ShadowContainer className="relative !mb-4 max-h-32 cursor-pointer p-6 transition-all duration-300 ease-in-out hover:scale-[1.03]">
|
||||||
<GitHubIcon className="mr-2 h-6" />
|
<h3 className="flex">
|
||||||
<span className="font-semibold text-primary dark:text-primary-dark">
|
<GitHubIcon className="mr-2 h-6" />
|
||||||
{name}
|
<span className="font-semibold text-primary dark:text-primary-dark">
|
||||||
</span>
|
{name}
|
||||||
</div>
|
</span>
|
||||||
<p className="my-4">{description}</p>
|
</h3>
|
||||||
|
<p className="my-4">{description}</p>
|
||||||
|
</ShadowContainer>
|
||||||
</a>
|
</a>
|
||||||
</ShadowContainer>
|
</li>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
@ -10,7 +10,7 @@ export const OpenSource = (): JSX.Element => {
|
|||||||
<p className="text-center">
|
<p className="text-center">
|
||||||
{i18n.translate("home.open-source.description")}
|
{i18n.translate("home.open-source.description")}
|
||||||
</p>
|
</p>
|
||||||
<div className="my-6 grid grid-cols-1 gap-6 md:w-10/12 md:grid-cols-2">
|
<ul className="my-6 grid grid-cols-1 gap-6 md:w-10/12 md:grid-cols-2">
|
||||||
<Repository
|
<Repository
|
||||||
name="nodejs/node"
|
name="nodejs/node"
|
||||||
description="Node.js JavaScript runtime ✨🐢🚀✨"
|
description="Node.js JavaScript runtime ✨🐢🚀✨"
|
||||||
@ -31,7 +31,7 @@ export const OpenSource = (): JSX.Element => {
|
|||||||
description="The React Framework"
|
description="The React Framework"
|
||||||
href="https://github.com/vercel/next.js/commits?author=theoludwig"
|
href="https://github.com/vercel/next.js/commits?author=theoludwig"
|
||||||
/>
|
/>
|
||||||
</div>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
@ -13,7 +13,7 @@ export const PortfolioItem = (props: PortfolioItemProps): JSX.Element => {
|
|||||||
const { title, description, link, image } = props
|
const { title, description, link, image } = props
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ShadowContainer className="relative cursor-pointer items-center sm:ml-10">
|
<li>
|
||||||
<a
|
<a
|
||||||
className="group inline-flex justify-center"
|
className="group inline-flex justify-center"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
@ -21,23 +21,25 @@ export const PortfolioItem = (props: PortfolioItemProps): JSX.Element => {
|
|||||||
href={link}
|
href={link}
|
||||||
aria-label={title}
|
aria-label={title}
|
||||||
>
|
>
|
||||||
<div className="flex justify-center">
|
<ShadowContainer className="relative cursor-pointer items-center sm:ml-10">
|
||||||
<Image
|
<div className="flex justify-center">
|
||||||
quality={100}
|
<Image
|
||||||
className="size-auto transition-opacity duration-500 group-hover:opacity-20 dark:group-hover:opacity-5"
|
quality={100}
|
||||||
width={300}
|
className="size-auto transition-opacity duration-500 group-hover:opacity-20 dark:group-hover:opacity-5"
|
||||||
height={300}
|
width={300}
|
||||||
src={image}
|
height={300}
|
||||||
alt={title}
|
src={image}
|
||||||
/>
|
alt={title}
|
||||||
</div>
|
/>
|
||||||
<div className="absolute bottom-0 h-auto overflow-hidden text-center opacity-0 transition-opacity duration-500 group-hover:opacity-100">
|
</div>
|
||||||
<h3 className="my-6 text-2xl font-semibold text-primary dark:text-primary-dark">
|
<div className="absolute bottom-0 h-auto overflow-hidden text-center opacity-0 transition-opacity duration-500 group-hover:opacity-100">
|
||||||
{title}
|
<h3 className="my-6 text-2xl font-semibold text-primary dark:text-primary-dark">
|
||||||
</h3>
|
{title}
|
||||||
<p className="mx-4 my-6 font-semibold">{description}</p>
|
</h3>
|
||||||
</div>
|
<p className="mx-4 my-6 font-semibold">{description}</p>
|
||||||
|
</div>
|
||||||
|
</ShadowContainer>
|
||||||
</a>
|
</a>
|
||||||
</ShadowContainer>
|
</li>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
@ -12,10 +12,10 @@ export const Portfolio = (): JSX.Element => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="flex w-full flex-wrap justify-center px-3">
|
<ul className="flex w-full flex-wrap justify-center px-3">
|
||||||
{items.map((item, index) => {
|
{items.map((item) => {
|
||||||
return <PortfolioItem key={index} {...item} />
|
return <PortfolioItem key={item.title} {...item} />
|
||||||
})}
|
})}
|
||||||
</div>
|
</ul>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
@ -27,13 +27,13 @@ export const SkillComponent = (props: SkillComponentProps): JSX.Element => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<a
|
<li>
|
||||||
href={skillProperties.link}
|
<a
|
||||||
className="mx-2 max-w-xl text-primary hover:underline dark:text-primary-dark"
|
href={skillProperties.link}
|
||||||
target="_blank"
|
className="mx-2 flex max-w-xl flex-col items-center justify-center text-center text-primary hover:underline dark:text-primary-dark"
|
||||||
rel="noopener noreferrer"
|
target="_blank"
|
||||||
>
|
rel="noopener noreferrer"
|
||||||
<div className="text-center">
|
>
|
||||||
<Image
|
<Image
|
||||||
className="inline size-16"
|
className="inline size-16"
|
||||||
quality={100}
|
quality={100}
|
||||||
@ -43,7 +43,7 @@ export const SkillComponent = (props: SkillComponentProps): JSX.Element => {
|
|||||||
src={getImage()}
|
src={getImage()}
|
||||||
/>
|
/>
|
||||||
<p className="mt-1 font-semibold">{skill}</p>
|
<p className="mt-1 font-semibold">{skill}</p>
|
||||||
</div>
|
</a>
|
||||||
</a>
|
</li>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
@ -18,7 +18,7 @@ export const SkillsSection = (props: SkillsSectionProps): JSX.Element => {
|
|||||||
{title}
|
{title}
|
||||||
</h3>
|
</h3>
|
||||||
</div>
|
</div>
|
||||||
<div className="flex flex-wrap justify-around">{children}</div>
|
<ul className="flex flex-wrap justify-around">{children}</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -57,8 +57,8 @@ export const Section = (props: SectionProps): JSX.Element => {
|
|||||||
</p>
|
</p>
|
||||||
) : null}
|
) : null}
|
||||||
<div className="w-full px-3">
|
<div className="w-full px-3">
|
||||||
<ShadowContainer>
|
<ShadowContainer className="w-full px-2 py-4 leading-8 sm:px-16">
|
||||||
<div className="w-full px-16 py-4 leading-8">{children}</div>
|
{children}
|
||||||
</ShadowContainer>
|
</ShadowContainer>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
Loading…
Reference in New Issue
Block a user