-
Notifications
You must be signed in to change notification settings - Fork 5
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
Support Art direction with custom ArtDirectionImage component #47
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
ArtDirectedImage
componentArtDirectionImage
component
ArtDirectionImage
componentSigned-off-by: Eduard Itrich <eduard.itrich@porsche.de> on-behalf-of: @porscheofficial <open_source_office@porsche.de>
Signed-off-by: Eduard Itrich <eduard.itrich@porsche.de> on-behalf-of: @porscheofficial <open_source_office@porsche.de>
Signed-off-by: Eduard Itrich <eduard.itrich@porsche.de> on-behalf-of: @porscheofficial <open_source_office@porsche.de>
Signed-off-by: Eduard Itrich <eduard.itrich@porsche.de> on-behalf-of: @porscheofficial <open_source_office@porsche.de>
@switchnollie I merged the CCB story into this branch and upgraded all dependencies (including the switch to the Contentlayer2 fork by @timlrx). Can you please add a hero image for the CCB story optimized for mobile devices :) ? Thank you for adding this great feature! |
@switchnollie Shall we pick up the work on this PR again? |
Hey @itrich, unfortunately I'm currently completely covered with project work.. I'll let you know if I have some more capacity in the next PI |
📑 Description
In order to avoid cut-off hero images that are not useful on narrow screens, we need a way to support different images per viewport size. This implementation uses the Porsche Design System Breakpoints as flexible options to provide separate images per viewport width.
It does currently not work with the
next-image-export-optimizer
since the library does currently not support thegetImageProps
feature for image loading.✅ Checks