Skip to content

[UI] Fix KCD Vietnam event banner image sizing and cropping #746

Description

@Akashstztt

Description

The banner image on /landing/kcd-vietnam gets cropped due to object-fit: cover not suiting its square aspect ratio. Important visual content is lost because the current CSS is designed for wide/landscape banners, but this event's banner image is square.

Steps to Reproduce

  1. Visit https://project-hami.io/landing/kcd-vietnam and https://project-hami.io/landing/kubecon-japan
  2. Observe the event banner at the top of the page

Expected Behavior

The banner image should display without unwanted cropping, regardless of its aspect ratio. Possible approaches:

  • Use object-fit: contain instead of cover for the .banner class
  • Adjust the container's height/aspect-ratio to better match square images
  • Add per-event configuration for banner display mode

Screenshot

(attach the screenshot of the cropped banner here — drag it into this box)

Related

Noticed while working on #742. Tracked separately since it's an unrelated visual/CSS issue.

Image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions