-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Add Ethereum World Fair banner on apps page #16419
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,119 @@ | ||
| "use client" | ||
|
|
||
| import { AppData } from "@/lib/types" | ||
|
|
||
| import { Image } from "@/components/Image" | ||
| import { ButtonLink } from "@/components/ui/buttons/Button" | ||
| import { | ||
| Swiper, | ||
| SwiperContainer, | ||
| SwiperNavigation, | ||
| SwiperSlide, | ||
| } from "@/components/ui/swiper" | ||
|
|
||
| import { breakpointAsNumber } from "@/lib/utils/screen" | ||
|
|
||
| import AppCard from "./AppCard" | ||
|
|
||
| import DevconnectBannerImage from "@/public/images/devconnect/devconnect-hero.png" | ||
| import DevconnectLogo from "@/public/images/devconnect/devconnect-logo.png" | ||
|
|
||
| const DevconnectBanner = ({ apps }: { apps: AppData[] }) => { | ||
| const cards = apps | ||
| .slice(0, 18) | ||
| .map((app, index) => ( | ||
| <AppCard | ||
| key={index} | ||
| app={app} | ||
| imageSize={16} | ||
| showDescription={false} | ||
| matomoCategory="devconnect_apps" | ||
| matomoAction="click" | ||
| forceLightMode | ||
| hoverClassName="hover:bg-gray-50" | ||
| /> | ||
| )) | ||
|
|
||
| return ( | ||
| <div className="relative flex min-h-20 w-full rounded-2xl bg-gradient-to-b from-transparent via-[#A8E8FF] to-[#A8E8FF] p-8 md:bg-gradient-to-r"> | ||
| <Image | ||
| src={DevconnectBannerImage} | ||
| alt="Devconnect Banner" | ||
| className="absolute inset-0 -z-10 h-full rounded-2xl object-cover" | ||
| sizes="100vw" | ||
| /> | ||
| <div className="flex w-full flex-col justify-between gap-4 md:flex-row"> | ||
| <div className="flex w-full flex-row items-center justify-between gap-4 md:w-1/3 md:flex-col"> | ||
| <Image | ||
| src={DevconnectLogo} | ||
| alt="Devconnect Logo" | ||
| className="mx-auto h-auto max-w-[224px] object-contain sm:mx-0 md:mx-auto" | ||
| sizes="100vw" | ||
| /> | ||
| <div className="hidden flex-col gap-5 rounded-xl bg-white p-2.5 shadow-[0_4px_0_0_rgba(0,0,0,0.35)] sm:flex"> | ||
| <div> | ||
| <p className="font-bold text-black">17 - 22 Nov 2025</p> | ||
| <p className="font-bold text-black">Buenos Aires, Argentina</p> | ||
| </div> | ||
| <ButtonLink | ||
| href="https://devconnect.org/" | ||
| size="md" | ||
| hideArrow | ||
| className="min-h-0 whitespace-nowrap rounded-none border-b-2 border-b-[#B2820A] bg-[#F6B40E] px-4 text-md/none font-bold uppercase text-black hover:bg-[#B2820A] hover:!text-black active:text-black" | ||
| > | ||
| Get tickets | ||
| </ButtonLink> | ||
| </div> | ||
| </div> | ||
| <div className="flex w-full flex-col items-center gap-2 md:w-2/3"> | ||
| <h2 className="text-black">Ethereum World Fair</h2> | ||
| <p className="text-black"> | ||
| Discover some of the apps featuring in Buenos Aires this November. | ||
| </p> | ||
| <ButtonLink | ||
| href="https://devconnect.org/" | ||
| size="md" | ||
| hideArrow | ||
| className="min-h-0 whitespace-nowrap rounded-none border-b-2 border-b-[#B2820A] bg-[#F6B40E] px-4 text-md/none font-bold uppercase text-black hover:bg-[#B2820A] hover:!text-black active:text-black sm:hidden" | ||
| > | ||
| Get tickets | ||
| </ButtonLink> | ||
| <div className="relative w-full overflow-hidden"> | ||
| <SwiperContainer> | ||
| <Swiper | ||
| slidesPerView={1} | ||
| grid={{ | ||
| rows: 2, | ||
| fill: "row", | ||
| }} | ||
| breakpoints={{ | ||
| [breakpointAsNumber.sm]: { | ||
| slidesPerView: 2, | ||
| grid: { | ||
| rows: 2, | ||
| fill: "row", | ||
| }, | ||
| }, | ||
| [breakpointAsNumber.md]: { | ||
| slidesPerView: 2, | ||
| grid: { | ||
| rows: 3, | ||
| fill: "row", | ||
| }, | ||
| }, | ||
| }} | ||
| > | ||
| {cards.map((card, index) => ( | ||
| <SwiperSlide key={index}>{card}</SwiperSlide> | ||
| ))} | ||
| <SwiperNavigation className="bg-transparent [&_.swiper-pagination-bullet-active]:!bg-purple-500 [&_.swiper-pagination-bullet]:!bg-purple-800" /> | ||
| </Swiper> | ||
| </SwiperContainer> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| ) | ||
| } | ||
|
|
||
| export default DevconnectBanner | ||
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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.
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.
Import