diff --git a/src/content/config.ts b/src/content/config.ts index 206b938..969a837 100644 --- a/src/content/config.ts +++ b/src/content/config.ts @@ -2,7 +2,7 @@ import { z, defineCollection } from 'astro:content'; -const productCollection = defineCollection({ +const productsCollection = defineCollection({ type: 'content', schema: ({ image }) => z.object({ main: z.object({ @@ -46,8 +46,8 @@ const productCollection = defineCollection({ }) ).optional(), blueprints: z.object({ - first: z.string().optional(), - second: z.string().optional(), + first: image().optional(), + second: image().optional(), }), }), }); @@ -59,6 +59,6 @@ const productCollection = defineCollection({ // 3. Export a single `collections` object to register your collection(s) export const collections = { - 'products': productCollection, + 'products': productsCollection, // 'blog': blogCollection, }; \ No newline at end of file diff --git a/src/content/products/a765.md b/src/content/products/a765.md index a5ca457..24c2505 100644 --- a/src/content/products/a765.md +++ b/src/content/products/a765.md @@ -6,7 +6,7 @@ main: content: | Introducing the SF-AB A765 Assorted Screw Set – the ultimate solution for your screw fastening needs. This comprehensive set includes a wide variety of screws meticulously curated to tackle various projects with ease and precision. imgCard: "../../images/product-image-2.avif" - imgMain: "../../images/product-image-3-main.avif" + imgMain: "../../images/product-image-main-2.avif" imgAlt: "Mockup boxes of assorted screw set" tabs: - id: "tabs-with-card-item-1" diff --git a/src/content/products/b203.md b/src/content/products/b203.md index 1e2d393..4302560 100644 --- a/src/content/products/b203.md +++ b/src/content/products/b203.md @@ -6,7 +6,7 @@ main: content: | Meet the SF-BN B203 – your reliable companion for professional-grade fastening. This comprehensive box set comes with a versatile selection of tap bolts and nuts, meticulously crafted to provide the strongest hold for your construction and assembly projects. imgCard: "../../images/product-image-3.avif" - imgMain: "../../images/product-image-3-main.avif" + imgMain: "../../images/product-image-main-3.avif" imgAlt: "Mockup boxes of a tap bolts and nuts set" tabs: - id: "tabs-with-card-item-1" diff --git a/src/content/products/f303.md b/src/content/products/f303.md index 0a5a120..4a5b977 100644 --- a/src/content/products/f303.md +++ b/src/content/products/f303.md @@ -6,7 +6,7 @@ main: content: | Introducing the SF-FN F303 Hex Bolts – the perfect choice for heavy-duty fastening applications. Crafted with precision and durability in mind, these hex bolts provide the strength and reliability you need for your toughest projects. imgCard: "../../images/product-image-4.avif" - imgMain: "../../images/product-image-3-main.avif" + imgMain: "../../images/product-image-main-4.avif" imgAlt: "Mockup boxes of hex bolts" tabs: - id: "tabs-with-card-item-1" diff --git a/src/content/products/t845.md b/src/content/products/t845.md index 14850d1..f1c16f8 100644 --- a/src/content/products/t845.md +++ b/src/content/products/t845.md @@ -6,7 +6,7 @@ main: content: | Introducing the SF-TB T845 – your go-to solution for precision fastening in machinery and equipment. This comprehensive set of machine screws is meticulously crafted to meet the stringent demands of industrial applications, ensuring secure and reliable fastening. imgCard: "../../images/product-image-1.avif" - imgMain: "../../images/product-image-3-main.avif" + imgMain: "../../images/product-image-main-1.avif" imgAlt: "Mockup boxes of machine screws set" tabs: - id: "tabs-with-card-item-1" diff --git a/src/images/product-image-2.avif b/src/images/product-image-2.avif index 4084832..96a043e 100644 Binary files a/src/images/product-image-2.avif and b/src/images/product-image-2.avif differ diff --git a/src/images/product-image-3-main.avif b/src/images/product-image-3-main.avif deleted file mode 100644 index 2a5e2d8..0000000 Binary files a/src/images/product-image-3-main.avif and /dev/null differ diff --git a/src/images/product-image-4.avif b/src/images/product-image-4.avif index 57a60e7..c69c603 100644 Binary files a/src/images/product-image-4.avif and b/src/images/product-image-4.avif differ diff --git a/src/layouts/MainLayout.astro b/src/layouts/MainLayout.astro index 520d216..1ac4566 100644 --- a/src/layouts/MainLayout.astro +++ b/src/layouts/MainLayout.astro @@ -27,6 +27,18 @@ interface Props { document.documentElement.classList.remove("dark"); } + +
- -