aboutsummaryrefslogtreecommitdiffstats
path: root/src/pages/cv.tsx
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2023-12-20 17:09:39 +0100
committerArmand Philippot <git@armandphilippot.com>2023-12-20 17:09:39 +0100
commiteef0dd0fafa5dbbbd29f2162967bc668eebf6074 (patch)
tree077062962f649b36356262e8b7052292fc9008d9 /src/pages/cv.tsx
parent5a572163c5a5174c1620c578f550dd7ddc841df4 (diff)
fix(styles): increase CSS specifity for some selectors
Since `sideEffects` has been added to activate tree shakings, the styles are imported in the wrong order in production build. There is an open issue (again) on Next.js repo. I'm not sure it will be fixed soon so in the meantime I had to increase the specifity of some selectors to avoid broken styles. I also fixed two minor layout errors: * CV page widgets should use headings of level 2 * Homepage should wrap the cards in list items
Diffstat (limited to 'src/pages/cv.tsx')
-rw-r--r--src/pages/cv.tsx14
1 files changed, 3 insertions, 11 deletions
diff --git a/src/pages/cv.tsx b/src/pages/cv.tsx
index f0e1e8b..cc24ca3 100644
--- a/src/pages/cv.tsx
+++ b/src/pages/cv.tsx
@@ -141,7 +141,7 @@ const CVPage: NextPageWithLayout = () => {
/>
<PageSidebar>
<Toc
- heading={<Heading level={3}>{messages.toc.title}</Heading>}
+ heading={<Heading level={2}>{messages.toc.title}</Heading>}
tree={tree}
/>
</PageSidebar>
@@ -151,19 +151,11 @@ const CVPage: NextPageWithLayout = () => {
<PageSidebar>
<ImageWidget
description={messages.image.caption}
- heading={
- <Heading isFake level={3}>
- {messages.image.title}
- </Heading>
- }
+ heading={<Heading level={2}>{messages.image.title}</Heading>}
img={<NextImage {...data.image} />}
/>
<SocialMediaWidget
- heading={
- <Heading isFake level={3}>
- {messages.socialMedia.title}
- </Heading>
- }
+ heading={<Heading level={2}>{messages.socialMedia.title}</Heading>}
media={[
{
icon: 'Github',