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

fix: set aspect ratio for images #21

Merged
merged 9 commits into from
Aug 9, 2024

Conversation

farosFreed
Copy link
Contributor

@farosFreed farosFreed commented Aug 8, 2024

Connected to APPS-2880

Notes:

The image at the top of the page should have a ratio of 1 (tall) to 2.31 (long), which works out to 1/2.31 = ~.43103
Responsive Image component expects this as a percentage so the prop is passed as 43.103.

Once that was fixed, it was noticed that the blue banner at the top of the screen needed an aspect ratio as well, so that was set.

I also fixed the issue with the pagelayout rendering the credit text whether or not there was any.

UX reported that the carousel should be changed to the same aspect ratio, so I added that to the APPS-2844

Time Report:

It took me 4 hours to build & test this.

Checklist:

  • I added github label for semantic versioning
  • I double checked it looks like the designs
  • [ ] I completed any required mobile breakpoint styling
  • [ ] I completed any required hover state styling
  • [ ] I included a working spec file
  • I added notes above about how long it took to build this component
  • UX has reviewed this PR
  • I assigned this PR to someone to review

@farosFreed farosFreed added the fix label Aug 8, 2024
@farosFreed farosFreed self-assigned this Aug 8, 2024
Copy link

github-actions bot commented Aug 8, 2024

Percy Screenshots

In order to conserve our percy screenshot allowance, percy is not configured to run automatically. Please make sure the PR is ready and all other checks are passing, then start it manually: 1. Visit https://github.com/UCLALibrary/ftva-website-nuxt/actions/workflows/percy.yml 2. Click the 'Run workflow' button in the blue bar. 3. Select the correct branch for this PR and click 'Run workflow' again to confirm.

Copy link

github-actions bot commented Aug 8, 2024

🚀 Deployed on https://deploy-preview-21--test-ftva.netlify.app

@github-actions github-actions bot temporarily deployed to pull_request-21 August 8, 2024 23:25 Inactive
@farosFreed farosFreed marked this pull request as ready for review August 8, 2024 23:35
@github-actions github-actions bot temporarily deployed to pull_request-21 August 9, 2024 18:15 Inactive
@github-actions github-actions bot temporarily deployed to pull_request-21 August 9, 2024 18:35 Inactive
@github-actions github-actions bot temporarily deployed to pull_request-21 August 9, 2024 18:58 Inactive
@github-actions github-actions bot temporarily deployed to pull_request-21 August 9, 2024 20:01 Inactive
@github-actions github-actions bot temporarily deployed to pull_request-21 August 9, 2024 20:40 Inactive
@jendiamond jendiamond merged commit cf23d0b into main Aug 9, 2024
8 checks passed
@jendiamond jendiamond deleted the APPS-2880_event_detail_image_aspect_ratio branch August 9, 2024 22:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants