Skip to content

10 year anniversary#15499

Merged
corwintines merged 56 commits into
devfrom
10-year-anniversary
Jun 3, 2025
Merged

10 year anniversary#15499
corwintines merged 56 commits into
devfrom
10-year-anniversary

Conversation

@corwintines
Copy link
Copy Markdown
Member

Description

Related Issue

@netlify
Copy link
Copy Markdown

netlify Bot commented May 23, 2025

Deploy Preview for ethereumorg failed.

Name Link
🔨 Latest commit b872b94
🔍 Latest deploy log https://app.netlify.com/projects/ethereumorg/deploys/683f18ac782cef000805c3ca

@github-actions github-actions Bot added content 🖋️ This involves copy additions or edits dependencies 📦 Changes related to project dependencies tooling 🔧 Changes related to tooling of the project translation 🌍 This is related to our Translation Program labels May 23, 2025

const Page = async ({ params }: { params: Promise<{ locale: Lang }> }) => {
const { locale } = await params
const { adoptionCards, adoptionStyles } = use10YearAnniversary()
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

There is no state-management in here (use10YearAnniversary), so I wouldn't make this a hook (Next.js will yell are you for this in an async server-side function)... consider exporting from a data.tsx file in this folder instead

Comment thread app/[locale]/10-year-anniversary/_components/TenYearHero.tsx Outdated
Comment thread app/[locale]/10-year-anniversary/_components/TenYearHero.tsx Outdated
Comment thread app/[locale]/10-year-anniversary/_components/TenYearHero.tsx Outdated
Comment thread app/[locale]/10-year-anniversary/_components/TenYearHero.tsx Outdated
Comment thread app/[locale]/10-year-anniversary/_components/TenYearHero.tsx Outdated
Copy link
Copy Markdown
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.

well done @corwintines!

There are a few visual issues with the globe (that looks 🔥 btw) that I commented.

Other than that, I left a few observations as potential refactors and nice to have.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The "10 years" title is not correctly centered
image

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Would be nice to have a more abstract CoundDown component placed in the src/components folder or just the functionality as a hook (useCountdown). I see a potential reusability for this functionality in the future.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

we need to disable the zoom (using scroll in this case)
image

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The other issue, that we already talked about but just as a track record, is related to the tooltips not closing when you scroll the page

image

eventCategory: "10-year-anniversary",
}}
>
Read more
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nice to have: we are displaying this button always but in most cases the whole text is already displayed, making this button useless. Could we display it only when necessary?

Comment thread app/[locale]/10years/_components/TenYearGlobe.tsx
})

// loops over chars to morph a text to another
const morpher = (start: string, end: string): void => {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

DRY 😢

nice to have: refactor Morpher to accept words, and chars (as optional) as props and reuse logic here.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

All good with this file living in this place as far as this page is temporary. If we are planning on reusing it, would be nice to move it to the data folder, as it is also not a component.

Comment thread src/styles/global.css
rgba(231, 202, 200, 0.1) 82.88%
);

--gradient-step-1: rgba(127, 127, 213, 0.20);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

why is it call step-1? looking into the code, this looks like a new card or banner gradient, I'd align its name with the other similar gradients, --banner-secondary-gradient or --card-secondary-gradient.

Also, I'd encourage to reuse some of the already existing gradients cc @nloureiro @konopkja

--card-gradient: linear-gradient(123deg, rgba(255, 255, 255, 0.20) 58.99%, rgba(174, 110, 203, 0.13) 104.04%);
--card-gradient-secondary: linear-gradient(95deg, rgba(211, 145, 242, 0.12) 0%, rgba(159, 43, 212, 0.12) 102.78%);
--card-gradient-secondary-hover: linear-gradient(95deg, rgba(211, 145, 242, 0.2) 0%, rgba(159, 43, 212, 0.2) 102.78%);
--ten-year-gradient: linear-gradient(100deg, #F6C9EA 55.38%, #C7A9F1 110.54%);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Similar point with this gradient and variable name. Im fine adding it as long as this is a temporary page. Otherwise, would encourage you to create a better name to be reused later in other components.

cc @nloureiro @konopkja would be nice to define all the gradients we have in the DS to have consistency in future interations. current gradients

Comment thread src/components/Image/ParallaxImage.tsx Outdated
setPosition({ x, y })
})

const [prefersReducedMotion] = useMediaQuery([
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@corwintines corwintines changed the title [WIP] 10 year anniversary 10 year anniversary Jun 3, 2025
@corwintines corwintines merged commit b11337f into dev Jun 3, 2025
3 of 7 checks passed
@corwintines corwintines deleted the 10-year-anniversary branch June 3, 2025 15:47
This was referenced Jun 3, 2025
@Afeter8
Copy link
Copy Markdown

Afeter8 commented Jun 4, 2025

Estoy bien

@Afeter8
Copy link
Copy Markdown

Afeter8 commented Jun 4, 2025

file_0000000030286230b26c4da4ee3cf3a8 (1).png

file_0000000030286230b26c4da4ee3cf3a8.png

file_00000000ecc461f7a79a6f2250be6fab.png

IMG_20250218_14_36_58.jpg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

content 🖋️ This involves copy additions or edits dependencies 📦 Changes related to project dependencies tooling 🔧 Changes related to tooling of the project translation 🌍 This is related to our Translation Program

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants