Skip to content
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

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

switchnollie
Copy link
Contributor

📑 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 the getImageProps feature for image loading.

✅ Checks

@switchnollie switchnollie requested review from itrich and pboeder May 21, 2024 12:29
Copy link

vercel bot commented May 21, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
porscheofficial-github-io ❌ Failed (Inspect) Nov 21, 2024 9:30am

@switchnollie switchnollie changed the title Support Art direction with custom ArtDirectedImage component Support Art direction with custom ArtDirectionImage component May 21, 2024
@switchnollie switchnollie changed the title Support Art direction with custom ArtDirectionImage component Support Art direction with custom ArtDirectionImage component May 21, 2024
Signed-off-by: Eduard Itrich <eduard.itrich@porsche.de>
on-behalf-of: @porscheofficial <open_source_office@porsche.de>
itrich added 3 commits May 29, 2024 07:46
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>
@itrich
Copy link
Member

itrich commented May 29, 2024

@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!

@itrich
Copy link
Member

itrich commented Jul 25, 2024

@switchnollie Shall we pick up the work on this PR again?

@switchnollie
Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants