Skip to content

Conversation

@PythonAtSea
Copy link
Contributor

@3kh0 here's some more lighthouse stuff!

Copilot AI review requested due to automatic review settings December 20, 2025 19:11
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request adds explicit width and height attributes to images across the landing page and implements responsive image loading using srcset for critical hero images to improve Lighthouse performance scores.

  • Added explicit width and height attributes to prevent layout shift
  • Implemented responsive images with srcset for hero banner and logo
  • Added CSS rules to maintain proper image aspect ratios with height: auto

Reviewed changes

Copilot reviewed 7 out of 14 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
app/views/landing/sections/_previously_hosted.html.erb Added width/height dimensions to all event card images and stat badges
app/views/landing/sections/_inspiration.html.erb Added width/height to project author profile pictures and screenshots
app/views/landing/sections/_how_this_works.html.erb Added width/height to step images (syntax errors present)
app/views/landing/sections/_hero.html.erb Implemented srcset for responsive loading of hero banner and logo images
app/views/landing/sections/_footer.html.erb Added width/height to footer image
app/views/landing/projects/_project_idea_generator.html.erb Added width/height to bakery background image
app/assets/stylesheets/landing.scss Added height: auto rules to ensure images scale proportionally
Binary image files Added multiple responsive image variants for hero banner and logo

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@maxwofford
Copy link
Member

Hold off on the image additions for now! I'm adding #522 to generate this stuff automatically!

@PythonAtSea
Copy link
Contributor Author

ok, i'll keep the explicit image size setting tho!

@maxwofford
Copy link
Member

@PythonAtSea by adding the images in the commit & then adding a new commit to delete them the data is now in the repo for all time. Please remove the images from the earlier commit– don't just add a commit to remove them. I'm asking you to upload a single png that's the "source file" and then we can generate the other sizes to keep the repo size small.

@PythonAtSea
Copy link
Contributor Author

ok gimme a second to mess with git

@PythonAtSea
Copy link
Contributor Author

@maxwofford right now replacing the .avif files with PNGs will break a bunch of images, do you want to do that in #522?

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