diff --git a/examples/usa.html b/examples/usa.html index d0017b7..731e98e 100644 --- a/examples/usa.html +++ b/examples/usa.html @@ -66,8 +66,8 @@

USA Demo

Disclaimer: This demo is old and the code is stylistically bad - and probably difficult to understand. It is strongly recommend to use - the online demos at + and probably difficult to understand. It is strongly recommended + to use the online demos at the project web site diff --git a/site/src/components/demos/resize/map.html b/site/src/components/demos/resize/map.html index bda71c5..487ad72 100644 --- a/site/src/components/demos/resize/map.html +++ b/site/src/components/demos/resize/map.html @@ -421,7 +421,7 @@ gap: 1rem; flex-wrap: nowrap; } - .resize-controls input[type="button"] { + .resize-controls input[type='button'] { padding: 0.1rem 0.4rem; } .resize-number-input { diff --git a/site/src/components/demos/skeleton/narrative.mdx b/site/src/components/demos/skeleton/narrative.mdx index 7b820c7..0bea6cf 100644 --- a/site/src/components/demos/skeleton/narrative.mdx +++ b/site/src/components/demos/skeleton/narrative.mdx @@ -1,4 +1,3 @@ - The [Skeleton Joint demo][example-skeleton] is a user-contributed example of using ImageMapster to allow synchronizing selections from a complex list with an image. It is from a private web site, but the author has granted permission to use it here. [example-skeleton]: https://html-preview.github.io/?url=https://raw.githubusercontent.com/jamietre/ImageMapster/main/examples/skeleton.html diff --git a/site/src/components/features/feature-detail.astro b/site/src/components/features/feature-detail.astro index 245a7a3..af1e033 100644 --- a/site/src/components/features/feature-detail.astro +++ b/site/src/components/features/feature-detail.astro @@ -1,9 +1,9 @@

  • - +
  • diff --git a/site/src/components/features/feature.astro b/site/src/components/features/feature.astro index c98b350..9854e83 100644 --- a/site/src/components/features/feature.astro +++ b/site/src/components/features/feature.astro @@ -1,7 +1,7 @@ --- interface Props { - imageFilename: string; - altText: string; + imageFilename: string; + altText: string; } const imageBasePath = '/src/assets/images/features'; @@ -9,9 +9,12 @@ const imageFilter = `${imageBasePath}/*.{jpeg,jpg,png,gif}`; const { imageFilename, altText } = Astro.props; import type { ImageMetadata } from 'astro'; import { Image } from 'astro:assets'; -const images = import.meta.glob<{ default: ImageMetadata }>(`/src/assets/images/features/*.{jpeg,jpg,png,gif}`) +const images = import.meta.glob<{ default: ImageMetadata }>( + `/src/assets/images/features/*.{jpeg,jpg,png,gif}` +); const imagePath = `${imageBasePath}/${imageFilename}`; -if (!images[imagePath]) throw new Error(`"${imagePath}" does not exist in glob: "${imageFilter}"`); +if (!images[imagePath]) + throw new Error(`"${imagePath}" does not exist in glob: "${imageFilter}"`); ---
    @@ -26,20 +29,20 @@ if (!images[imagePath]) throw new Error(`"${imagePath}" does not exist in glob: