Skip to content

Conversation

wackerow
Copy link
Member

@wackerow wackerow commented Aug 8, 2025

Description

Updates ContentHero according to new /what-is-ethereum designs

  • Removes bg gradient, enlarged font size and increase font weight
  • Updated image handling to be more robust with width/height properties
  • Aside: switched to png for translatathon hero to comply; about the same size for a 3x version, and offers blurred loading state with sizing dimensions

Preview links

Layer 2 pages

Roadmap layout

Staking layout

Translatathon layout

Upgrade layout

Use cases layout

Copy link

netlify bot commented Aug 8, 2025

Deploy Preview for ethereumorg ready!

Name Link
🔨 Latest commit efd7029
🔍 Latest deploy log https://app.netlify.com/projects/ethereumorg/deploys/68ad1a3cf712670008f22c87
😎 Deploy Preview https://deploy-preview-16032--ethereumorg.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
7 paths audited
Performance: 45 (🔴 down 5 from production)
Accessibility: 95 (🟢 up 5 from production)
Best Practices: 83 (🔴 down 9 from production)
SEO: 100 (🟢 up 8 from production)
PWA: 59 (🟢 up 6 from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions github-actions bot added the tooling 🔧 Changes related to tooling of the project label Aug 8, 2025
@wackerow wackerow mentioned this pull request Aug 13, 2025
5 tasks
Copy link
Member

@pettinarip pettinarip left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@wackerow looks good, left a question about the hero image dimensions

@@ -73,7 +73,7 @@ export const UpgradeLayout = ({
const heroProps = {
...frontmatter,
breadcrumbs: { slug, startDepth: 1 },
heroImg: frontmatter.image,
heroImg: { src: frontmatter.image, width: 5750, height: 4332 },
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm a bit unsure about this pattern and whether it's truly needed.

For dynamic images, I assume we'll need to pass width and height for aspect ratio. If so, I'd define these in the ContentHero component, as all images there will likely require consistent dimensions.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the image is statically imported, Next.js will automatically determine the intrinsic width and height. These values are used to determine the image ratio and prevent Cumulative Layout Shift while your image is loading.

Not sure either I guess... it's not really meant to dictate the rendered size, more to tell the aspect ratio and prevent layout shift.. but if we're already confining the image to a fixed box size then likely doesn't matter?

Comment on lines -24 to -27
width={760}
height={451}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't we keep these dimensions to keep the same aspect ratio or a calculated width & height to avoid layout shifts?

@konopkja
Copy link
Contributor

Screenshot 2025-08-21 at 13 48 58

lgtm except here this info doesnt make sense (is also presented at the bottom of the article) but tbh thats an issue on existing page as well so we dont have to change that within this PR maybe?

@corwintines corwintines merged commit 71c881d into dev Aug 26, 2025
7 checks passed
@corwintines corwintines deleted the content-hero branch August 26, 2025 23:28
This was referenced Aug 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tooling 🔧 Changes related to tooling of the project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants