-
Notifications
You must be signed in to change notification settings - Fork 3
Fix #640: Transform Images of Meetup section to <Image>-Component #1064
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
Conversation
✅ Deploy Preview for nifty-bardeen-5c7e53 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
faf3f81
to
9e60cf6
Compare
There was a problem hiding this 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 PR centralizes Meetup images under src/content/meetup/images
, switches all markdown references to use those relative paths, updates the content schema to use Astro’s image helper, and updates components to render optimized <Image>
imports.
- Moved logos and avatars into
src/content/meetup/images/...
and updated all markdown frontmatter paths - Refactored
config.ts
schema to useimage().optional()
forlogo
andavatar
- Updated components (
Talk.astro
,CompanyLogo.astro
, listing/archive views) to use<Image>
and pass sizing props
Reviewed Changes
Copilot reviewed 101 out of 101 changed files in this pull request and generated 1 comment.
Show a summary per file
File | Description |
---|---|
src/content/meetup/*.md | Updated all logo /avatar paths to ./images/... |
src/content/config.ts | Switched logo and avatar schema to image().optional() |
src/components/Talk.astro | Replaced <img> with <Image> for speaker avatars |
src/components/CompanyLogo.astro | Switched to <Image> and added logoHeight prop |
src/components/meetup-alps/*.astro | Updated listings and sponsor components to pass logoHeight and use <Image> |
Comments suppressed due to low confidence (1)
src/components/CompanyLogo.astro:16
- For any
<a target="_blank">
, addrel="noopener noreferrer"
to prevent reverse tabnabbing vulnerabilities.
<a href={url} target="_blank">
logoHeight: number; | ||
} | ||
|
||
const { name, logo, url } = Astro.props; | ||
const logoURL = logo ? `/meetup/alps/images/location/${logo}` : null; | ||
|
||
const { name, logo, url, logoHeight } = Astro.props; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] Consider making logoHeight
optional with a sensible default, so that consumers aren’t required to specify it on every <CompanyLogo>
usage.
Copilot uses AI. Check for mistakes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed the aspect ratio of ibk in meetup archive.
Thanks Andy, we are good to go here!
This fixes #640
One big change is that we move the images from
public/meetup/alps
=>src/content/meetup/images/
.We also resolve one duplication of the
ibk
-Image.