diff --git a/src/components/photo.astro b/src/components/photo.astro index 2afdb1f..c471ecc 100644 --- a/src/components/photo.astro +++ b/src/components/photo.astro @@ -8,9 +8,12 @@ export interface Props { alt: string; class?: string; loading?: 'eager' | 'lazy'; + width?: number; + height?: number; } -const { src, alt, loading } = Astro.props; +const { src, loading, ...props } = Astro.props; + const className = Astro.props.class ?? ''; const isRemoteImage = typeof src === 'string'; @@ -18,8 +21,8 @@ const isRemoteImage = typeof src === 'string'; { isRemoteImage ? ( - {alt} + ) : ( - {alt} + ) } diff --git a/src/components/theme-toggle.astro b/src/components/theme-toggle.astro index 4b098ca..be9fb13 100644 --- a/src/components/theme-toggle.astro +++ b/src/components/theme-toggle.astro @@ -4,6 +4,7 @@ import Icon from './icon.astro';
diff --git a/src/sections/portfolio/project-timeline-item.astro b/src/sections/portfolio/project-timeline-item.astro index cc3221d..cdbb204 100644 --- a/src/sections/portfolio/project-timeline-item.astro +++ b/src/sections/portfolio/project-timeline-item.astro @@ -21,7 +21,13 @@ const alt = `Thumbnail for ${name} project`;
-