Skip to content

Roadmap page #15310

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 34 commits into from
Apr 30, 2025
Merged

Roadmap page #15310

merged 34 commits into from
Apr 30, 2025

Conversation

corwintines
Copy link
Member

Description

  • Implement new design for roadmap landing page

@github-actions github-actions bot added content 🖋️ This involves copy additions or edits tooling 🔧 Changes related to tooling of the project translation 🌍 This is related to our Translation Program labels Apr 17, 2025
Copy link

netlify bot commented Apr 17, 2025

Deploy Preview for ethereumorg ready!

Name Link
🔨 Latest commit 83b19c7
🔍 Latest deploy log https://app.netlify.com/sites/ethereumorg/deploys/6812233264d136000821e8ee
😎 Deploy Preview https://deploy-preview-15310--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: 39 (🔴 down 14 from production)
Accessibility: 95 (🟢 up 1 from production)
Best Practices: 89 (🔴 down 9 from production)
SEO: 98 (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 site configuration.

@github-actions github-actions bot added the dependencies 📦 Changes related to project dependencies label Apr 25, 2025
@konopkja
Copy link
Contributor

Screenshot 2025-04-28 at 12 11 57 @corwintines

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.

nice job @corwintines! looks great. Left a few observations but nothing blocking from my side.

Comment on lines 88 to 90
--roadmap-card-gradient: linear-gradient(123deg, rgba(255, 255, 255, 0.20) 58.99%, rgba(174, 110, 203, 0.13) 104.04%);
--roadmap-upgrade-card-gradient: linear-gradient(95deg, rgba(211, 145, 242, 0.12) 0%, rgba(159, 43, 212, 0.12) 102.78%);
--roadmap-upgrade-card-gradient-hover: linear-gradient(95deg, rgba(211, 145, 242, 0.2) 0%, rgba(159, 43, 212, 0.2) 102.78%);
Copy link
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 call these with a more abstract name to reuse it in future cards. Maybe just card-gradient and card-secondary-gradient.

@@ -44,6 +44,7 @@ const buttonVariants = cva(
lg: "text-lg py-3 px-8 [&>svg]:text-2xl rounded-lg focus-visible:rounded-lg",
md: "min-h-10.5 px-4 py-2 [&>svg]:text-2xl",
sm: "text-xs min-h-[31px] py-1.5 px-2 [&>svg]:text-md",
xs: "text-xs py-1 px-1 [&>svg]:text-md",
Copy link
Member

Choose a reason for hiding this comment

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

wouldn't add this since it is not part of the DS and would invite ppl to use it while its not what we want.

It seems that we are adding it for a very unique case. If that is correct, I would add these styles inline to that particular button.

image: DevelopersHubHeroImage,
releaseName: "Paris (The Merge)",
releaseDate: "2022-09-15",
content: [
Copy link
Member

Choose a reason for hiding this comment

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

why is content an array? seems like we are always rendering one node

Copy link
Member Author

Choose a reason for hiding this comment

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

Artifact of old idea for how I was going to do this, will refactor.

releaseName: "Paris (The Merge)",
releaseDate: "2022-09-15",
content: [
<div key="1">
Copy link
Member

Choose a reason for hiding this comment

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

I guess key is useless here, no?


const [api1, setApi1] = useState<CarouselApi>()
const [api2, setApi2] = useState<CarouselApi>()
const [currentIndex, setCurrentIndex] = useState(findLatestReleaseIndex())
Copy link
Member

Choose a reason for hiding this comment

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

if the intention here is to have an initial value, we should call it with a function (initialized function). Otherwise, findLatestReleaseIndex would be called in every render.

Suggested change
const [currentIndex, setCurrentIndex] = useState(findLatestReleaseIndex())
const [currentIndex, setCurrentIndex] = useState(() => findLatestReleaseIndex())


import { releasesData } from "@/data/roadmap/releases"

const formatReleaseDate = (date: string) => {
Copy link
Member

Choose a reason for hiding this comment

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

can we place it in lib/utils/date as formatDate?

Comment on lines 158 to 159
: release.releaseDate <
new Date().toISOString().split("T")[0]
Copy link
Member

Choose a reason for hiding this comment

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

we could reuse some of the vars already defined and have a safer comparison with numbers

Suggested change
: release.releaseDate <
new Date().toISOString().split("T")[0]
: releaseDate.getTime() < todayDate.getTime()

update content
@corwintines corwintines merged commit 6083783 into dev Apr 30, 2025
8 of 10 checks passed
@corwintines corwintines deleted the roadmap-page branch April 30, 2025 13:58
This was referenced Apr 30, 2025
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.

4 participants