diff --git a/src/images/product-image-main-1.avif b/src/images/product-image-main-1.avif new file mode 100644 index 0000000..74eafec Binary files /dev/null and b/src/images/product-image-main-1.avif differ diff --git a/src/images/product-image-main-2.avif b/src/images/product-image-main-2.avif new file mode 100644 index 0000000..6ad6ad6 Binary files /dev/null and b/src/images/product-image-main-2.avif differ diff --git a/src/images/product-image-main-3.avif b/src/images/product-image-main-3.avif new file mode 100644 index 0000000..2a5e2d8 Binary files /dev/null and b/src/images/product-image-main-3.avif differ diff --git a/src/images/product-image-main-4.avif b/src/images/product-image-main-4.avif new file mode 100644 index 0000000..186c67b Binary files /dev/null and b/src/images/product-image-main-4.avif differ diff --git a/src/pages/products/[...slug].astro b/src/pages/products/[...slug].astro new file mode 100644 index 0000000..3210ec0 --- /dev/null +++ b/src/pages/products/[...slug].astro @@ -0,0 +1,305 @@ +--- +// Import section components +import MainLayout from "../../layouts/MainLayout.astro"; +import ProductTabBtn from "../../components/ui/buttons/ProductTabBtn.astro"; +import PrimaryCTA from "../../components/ui/buttons/PrimaryCTA.astro"; + +declare global { + interface Window { + gsap: any; + } +} +import { Image } from "astro:assets"; + +import { getCollection } from "astro:content"; + +export async function getStaticPaths() { + const productEntries = await getCollection("products"); + return productEntries.map((product) => ({ + params: { slug: product.slug }, + props: { product }, + })); +} + +const { product } = Astro.props; +--- + + +
+
+ +
+
+

+ {product.data.main.content} +

+
+
+
+

+ {product.data.main.title} +

+

+ {product.data.main.subTitle} +

+
+
+ {product.data.main.imgAlt} +
+
+
+ +
+ + +
+
+
+
+
+

+ {product.data.description.title} +

+

+ {product.data.description.subTitle} +

+

+ +

+
+ +
+ { + product.data.descriptionList.map((list) => ( +
+
+

+ {list.title} +

+

+ {list.subTitle} +

+
+
+ )) + } +
+
+
+
+ + +
+
+ + + + + + +