-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Migrate layer 2 page to shadcn, and updates for layer 2 migration #13987
Conversation
❌ Deploy Preview for ethereumorg failed.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice @corwintines! Lookin good, just dropped an initial round of feedback and thoughts.
public/images/layer-2/learn-hero.png
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Noticing this is an image the chops on the top and bottom edges... looks a little strange having padding in the Y-direction here inside the hero cc: @nloureiro
{titleKey && ( | ||
<h3 className="mb-8 mt-10 text-2xl leading-[1.4]">{t(titleKey)}</h3> | ||
)} | ||
{title && ( | ||
<h3 className="mb-8 mt-10 text-2xl leading-[1.4]">{title}</h3> | ||
)} | ||
{descriptionKey && ( | ||
<p className="mb-6 text-xl leading-[140%] text-body-medium"> | ||
{t(descriptionKey)} | ||
</p> | ||
)} | ||
{description && ( | ||
<p className="mb-6 text-xl leading-[140%] text-body-medium"> | ||
{description} | ||
</p> | ||
)} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (path.startsWith("/layer-2/")) { | ||
primaryNamespace = "page-layer-2" | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just noting that as-is the page-layer-2
namespace will be loaded on /layer-2/learn/
; is this what we want? If not, I'd change this one to not use startsWith()
"page-layer-2-learn-meta-title": "What is layer 2", | ||
"page-layer-2-learn-title": "What is layer 2", | ||
"page-layer-2-learn-description": "Scaling Ethereum for mass adoption", | ||
"page-layer-2-learn-button-1-label": "What is layer 2", | ||
"page-layer-2-learn-button-2-label": "Use layer 2", | ||
"page-layer-2-learn-what-is-layer-2-title": "What is layer 2?", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seeing 4 instances of "What is layer 2"... one of which has a question mark
- Should we have a question mark at the end of this string? (I think we should)
- Do we need to repeat this key, or can we simplify to just have one instance of "What is layer 2?"
Co-authored-by: Paul Wackerow <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
Description
Migrates layer 2 page to shadcn
Move layer 2 page to /layer-2/learn
Updates for the layer 2 migration to this page
Link: https://deploy-preview-13987--ethereumorg.netlify.app/layer-2/learn