Skip to content

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

Merged
merged 2 commits into from
Jun 2, 2025

Conversation

andygrunwald
Copy link
Contributor

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.

Copy link

netlify bot commented May 25, 2025

Deploy Preview for nifty-bardeen-5c7e53 ready!

Name Link
🔨 Latest commit 56ce9c7
🔍 Latest deploy log https://app.netlify.com/projects/nifty-bardeen-5c7e53/deploys/683ded315cc1690008ba466e
😎 Deploy Preview https://deploy-preview-1064--nifty-bardeen-5c7e53.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@andygrunwald andygrunwald force-pushed the meetups-images-issue-640 branch from faf3f81 to 9e60cf6 Compare May 25, 2025 07:51
@woolfg woolfg self-assigned this May 25, 2025
@woolfg woolfg requested a review from Copilot May 25, 2025 22:28
Copy link

@Copilot 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 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 use image().optional() for logo and avatar
  • 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">, add rel="noopener noreferrer" to prevent reverse tabnabbing vulnerabilities.
<a href={url} target="_blank">

Comment on lines +8 to +11
logoHeight: number;
}

const { name, logo, url } = Astro.props;
const logoURL = logo ? `/meetup/alps/images/location/${logo}` : null;

const { name, logo, url, logoHeight } = Astro.props;
Copy link
Preview

Copilot AI May 25, 2025

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.

Copy link
Collaborator

@timhannemann timhannemann left a 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!

@timhannemann timhannemann merged commit dc99e2c into main Jun 2, 2025
7 checks passed
@timhannemann timhannemann deleted the meetups-images-issue-640 branch June 2, 2025 18:32
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.

Use Astro Image Processing for the Meetup-Section
3 participants