Skip to content

Conversation

@biharygergo
Copy link
Collaborator

@biharygergo biharygergo commented Jun 12, 2022

This PR improves the image ratio settings and design of the event cover photo. The current issue is that even though the dashboard recommends admins to upload a 1920x1080 picture, this image is reformatted into multiple aspect ratios and is used as a full width cover photo, resulting in bad looking event pages and non-visible text.

This PR changes the layout of the event detail page so that the cover photo can maintain a fixed aspect ratio. Further, it also updates the EventCard so it also respects this ratio if possible.

Event detail page with card-like cover photo (all corners visible):
Screenshot 2022-06-12 at 10 39 37

Scales to full width on mobile:
Screenshot 2022-06-12 at 10 40 27

Corners visible on EventCard:
Screenshot 2022-06-12 at 10 39 45

Cover photo is center aligned on project gallery page:
Screenshot 2022-06-12 at 10 42 06

Works nicely with a customized event page:
image

@biharygergo biharygergo requested a review from Jussii June 12, 2022 08:50
@Eficnbo Eficnbo requested review from Eficnbo and removed request for Jussii June 14, 2022 12:47
@biharygergo
Copy link
Collaborator Author

Hey @Eficnbo, same ask here as well. This one is a slightly bigger change but hopefully easy to read. Thanks!

@biharygergo
Copy link
Collaborator Author

Hey @Eficnbo, could you take a look at and merge this and the next couple of PRs so they don't go stale? Thanks!

Copy link
Collaborator

@Eficnbo Eficnbo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good!

@Eficnbo Eficnbo merged commit ba5838c into hackjunction:dev Jun 28, 2022
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