Skip to content

Fix home hero#15681

Merged
pettinarip merged 2 commits into
devfrom
fix-hero
Jun 18, 2025
Merged

Fix home hero#15681
pettinarip merged 2 commits into
devfrom
fix-hero

Conversation

@pettinarip
Copy link
Copy Markdown
Member

Description

  • Fixes translations in home hero
  • Removes the home hero story

@netlify
Copy link
Copy Markdown

netlify Bot commented Jun 18, 2025

Deploy Preview for ethereumorg ready!

Name Link
🔨 Latest commit 52c8741
🔍 Latest deploy log https://app.netlify.com/projects/ethereumorg/deploys/6852e85927eb7d0008550f63
😎 Deploy Preview https://deploy-preview-15681--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: 42 (🔴 down 13 from production)
Accessibility: 95 (🟢 up 1 from production)
Best Practices: 91 (🔴 down 8 from production)
SEO: 99 (no change from production)
PWA: 59 (no change 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 Jun 18, 2025
Comment thread .storybook/main.ts
reactDocgen: "react-docgen-typescript",
},
features: {
experimentalRSC: true,
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Im adding this experimental flag for future stories that may use RSC but it didn't work for the home hero. That is why Im removing it for now until we have a solution.

ref https://storybook.js.org/docs/get-started/frameworks/nextjs#react-server-components-rsc

const HomeHero = ({ heroImg, className }: HomeHeroProps) => {
const { t } = useTranslation("page-index")
const HomeHero = async ({ heroImg, className, locale }: HomeHeroProps) => {
const t = await getTranslations({ locale, namespace: "page-index" })
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Tried to use getLocale but it was not matching the locale in the url 🤷🏼

@pettinarip pettinarip merged commit 56c3c68 into dev Jun 18, 2025
10 checks passed
@pettinarip pettinarip deleted the fix-hero branch June 18, 2025 17:28
This was referenced Jun 25, 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.

2 participants