-
Notifications
You must be signed in to change notification settings - Fork 17
chore(docs): Apply remining requests from PR #2217 #2231
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
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
37 changes: 0 additions & 37 deletions
37
docs/ensnode.io/src/components/organisms/ENSEcosystemMembers/index.tsx
This file was deleted.
Oops, something went wrong.
80 changes: 80 additions & 0 deletions
80
docs/ensnode.io/src/components/organisms/FeaturedENSNodeIntegrators/index.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,80 @@ | ||
| import { | ||
| FEATURED_ENSNODE_INTEGRATORS, | ||
| type FeaturedENSNodeIntegratorsDisplayData, | ||
| } from "./integrators-collection"; | ||
| import { Tooltip } from "@namehash/namehash-ui/legacy"; | ||
| import cc from "classcat"; | ||
|
|
||
| export const FeaturedENSNodeIntegrators = () => { | ||
| // explicitly split the integrators into two rows for wide enough screens | ||
| // to satisfy the request to put the ENSv2 Explorer app in the second row | ||
| const splitIntegratorsAtRaw = FEATURED_ENSNODE_INTEGRATORS.findIndex( | ||
| (m) => m.name === "Official ENSv2 Explorer", | ||
| ); | ||
| const splitIntegratorsAt = | ||
| splitIntegratorsAtRaw === -1 | ||
| ? Math.ceil(FEATURED_ENSNODE_INTEGRATORS.length / 2) | ||
| : splitIntegratorsAtRaw; | ||
|
|
||
| const [topIntegratorsRow, bottomIntegratorsRow] = [ | ||
| FEATURED_ENSNODE_INTEGRATORS.slice(0, splitIntegratorsAt), | ||
| FEATURED_ENSNODE_INTEGRATORS.slice(splitIntegratorsAt), | ||
| ]; | ||
|
|
||
| return ( | ||
| <section className="w-full h-fit box-border flex flex-col flex-nowrap justify-center items-center gap-5 sm:gap-10 px-5 py-7 sm:px-8 sm:py-10 bg-[#011A25]"> | ||
| <p className="text-sm sm:text-base leading-6 font-normal text-white text-balance text-center"> | ||
| Join the ENS ecosystem that's already building on ENSNode | ||
| </p> | ||
| <DisplayENSNodeIntegrators | ||
| integrators={FEATURED_ENSNODE_INTEGRATORS} | ||
| className="flex min-[1250px]:hidden" | ||
| /> | ||
| <DisplayENSNodeIntegrators | ||
| integrators={topIntegratorsRow} | ||
| className="hidden min-[1250px]:flex" | ||
| /> | ||
| <DisplayENSNodeIntegrators | ||
| integrators={bottomIntegratorsRow} | ||
| className="hidden min-[1250px]:flex" | ||
| /> | ||
| </section> | ||
| ); | ||
| }; | ||
|
|
||
| const DisplayENSNodeIntegrators = ({ | ||
| integrators, | ||
| className, | ||
| }: { | ||
| integrators: FeaturedENSNodeIntegratorsDisplayData[]; | ||
| className?: string; | ||
| }) => ( | ||
| <div | ||
| className={cc([ | ||
| "max-w-[1216px] w-full h-fit flex-row flex-wrap justify-center items-center gap-6 gap-y-5 sm:gap-8 sm:gap-y-10 relative z-20", | ||
| className, | ||
| ])} | ||
| > | ||
| {integrators.map((member: FeaturedENSNodeIntegratorsDisplayData) => ( | ||
| <Tooltip | ||
| key={`featured-ensnode-integrator=${member.name}`} | ||
| sideOffset={-5} | ||
| trigger={ | ||
| <a | ||
| aria-label={member.name} | ||
| href={member.websiteURL.href} | ||
| target="_blank" | ||
| rel="noreferrer noopener" | ||
| className="group w-fit h-fit flex justify-center items-center text-white/50 hover:text-white text-lg font-semibold cursor-pointer transition-colors duration-200" | ||
| > | ||
| <member.icon | ||
| className={cc(["w-auto h-[25px] sm:h-[44px] shrink-0", member.customStyles])} | ||
| /> | ||
| </a> | ||
| } | ||
|
Y3drk marked this conversation as resolved.
|
||
| > | ||
| {member.name} | ||
| </Tooltip> | ||
| ))} | ||
| </div> | ||
| ); | ||
34 changes: 17 additions & 17 deletions
34
...NSEcosystemMembers/members-collection.tsx → ...odeIntegrators/integrators-collection.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.