diff --git a/src/components/ui/cards/CardSmall.astro b/src/components/ui/cards/CardSmall.astro
index 76afc3a..a033589 100644
--- a/src/components/ui/cards/CardSmall.astro
+++ b/src/components/ui/cards/CardSmall.astro
@@ -36,6 +36,6 @@ const imageClass =
{product.data.main.subTitle}
+ >{product.data.description}
diff --git a/src/components/ui/cards/CardWide.astro b/src/components/ui/cards/CardWide.astro
index 2dd3a78..522a78e 100644
--- a/src/components/ui/cards/CardWide.astro
+++ b/src/components/ui/cards/CardWide.astro
@@ -36,6 +36,6 @@ const imageClass =
{product.data.main.subTitle} {product.data.description}
diff --git a/src/content/config.ts b/src/content/config.ts
index 242b1f6..388a2e0 100644
--- a/src/content/config.ts
+++ b/src/content/config.ts
@@ -6,10 +6,10 @@ import { docsSchema } from '@astrojs/starlight/schema';
const productsCollection = defineCollection({
type: 'content',
schema: ({ image }) => z.object({
+ title: z.string(),
+ description: z.string(),
main: z.object({
id: z.number(),
- title: z.string(),
- subTitle: z.string(),
content: z.string(),
imgCard: image(),
imgMain: image(),
@@ -22,7 +22,7 @@ const productsCollection = defineCollection({
title: z.string(),
})
),
- description: z.object({
+ longDescription: z.object({
title: z.string(),
subTitle: z.string(),
btnTitle: z.string(),
diff --git a/src/content/products/a765.md b/src/content/products/a765.md
index 639668c..59e6745 100644
--- a/src/content/products/a765.md
+++ b/src/content/products/a765.md
@@ -1,8 +1,8 @@
---
+title: "SF-AB A765"
+description: "Assorted Screw Set"
main:
id: 2
- title: "SF-AB A765"
- subTitle: "Assorted Screw Set"
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"
@@ -18,7 +18,7 @@ tabs:
- id: "tabs-with-card-item-3"
dataTab: "#tabs-with-card-3"
title: "Blueprints"
-description:
+longDescription:
title: "Versatile Screw Fastening Solutions"
subTitle: |
The SF-AB A765 Assorted Screw Set offers unmatched versatility and convenience, making it the perfect choice for DIY enthusiasts and professionals alike. With a comprehensive selection of screws, you'll always have the right fastener for the job.
diff --git a/src/content/products/b203.md b/src/content/products/b203.md
index ecba7a0..0a298bc 100644
--- a/src/content/products/b203.md
+++ b/src/content/products/b203.md
@@ -1,8 +1,8 @@
---
+title: "SF-BN B203"
+description: "Tap Bolts and Nuts Set"
main:
id: 3
- title: "SF-BN B203"
- subTitle: "Tap Bolts and Nuts Set"
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"
@@ -18,7 +18,7 @@ tabs:
- id: "tabs-with-card-item-3"
dataTab: "#tabs-with-card-3"
title: "Blueprints"
-description:
+longDescription:
title: "Strength Meets Precision"
subTitle: |
The SF-BN B203 Tap Bolts and Nuts Set offers robust durability and precision for construction professionals, ensuring reliable performance in every application, from house framing to machinery assembly.
diff --git a/src/content/products/f303.md b/src/content/products/f303.md
index 5292a05..b83e7fe 100644
--- a/src/content/products/f303.md
+++ b/src/content/products/f303.md
@@ -1,8 +1,8 @@
---
+title: "SF-FN F303"
+description: "Hex Bolts"
main:
id: 4
- title: "SF-FN F303"
- subTitle: "Hex Bolts"
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"
@@ -18,7 +18,7 @@ tabs:
- id: "tabs-with-card-item-3"
dataTab: "#tabs-with-card-3"
title: "Blueprints"
-description:
+longDescription:
title: "Heavy-Duty Fastening Solutions"
subTitle: |
The SF-FN F303 Hex Bolts are designed to handle the toughest fastening challenges with ease. Whether you're working on construction projects or heavy machinery, these hex bolts deliver the strength and reliability you need.
diff --git a/src/content/products/t845.md b/src/content/products/t845.md
index 43e8471..9d0f409 100644
--- a/src/content/products/t845.md
+++ b/src/content/products/t845.md
@@ -1,8 +1,8 @@
---
+title: "SF-TB T845"
+description: "Machine Screws"
main:
id: 1
- title: "SF-TB T845"
- subTitle: "Machine Screws"
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"
@@ -18,7 +18,7 @@ tabs:
- id: "tabs-with-card-item-3"
dataTab: "#tabs-with-card-3"
title: "Blueprints"
-description:
+longDescription:
title: "Precision Fastening Solutions"
subTitle: |
The SF-TB T845 Machine Screws offer unparalleled precision and reliability for industrial applications, ensuring seamless operation and longevity for your machinery and equipment.
diff --git a/src/pages/fr/blog/index.astro b/src/pages/fr/blog/index.astro
new file mode 100644
index 0000000..6e1b501
--- /dev/null
+++ b/src/pages/fr/blog/index.astro
@@ -0,0 +1,108 @@
+---
+// Import necessary components, modules and types
+import MainLayout from "@/layouts/MainLayout.astro";
+import CardBlog from "@/components/ui/cards/CardBlog.astro";
+import CardBlogRecent from "@/components/ui/cards/CardBlogRecent.astro";
+import CardInsight from "@/components/ui/cards/CardInsight.astro";
+import { getCollection } from "astro:content";
+import type { CollectionEntry } from "astro:content";
+import { SITE } from "@/data_files/constants";
+
+// Get all blogs post and sort them based on publish date
+const blogPosts: CollectionEntry<"blog">[] = (await getCollection("blog")).sort(
+ (a: CollectionEntry<"blog">, b: CollectionEntry<"blog">) =>
+ b.data.pubDate.valueOf() - a.data.pubDate.valueOf(),
+);
+// Get all insights posts
+const insightPosts: CollectionEntry<"insights">[] =
+ await getCollection("insights");
+
+// Separate the most recent post from others
+const mostRecentPost: CollectionEntry<"blog"> = blogPosts[0];
+const otherPosts: CollectionEntry<"blog">[] = blogPosts.slice(1);
+
+// Define variables for page content
+const title: string = "Your Gateway to Construction Excellence";
+const subTitle: string =
+ "Explore the latest news, tips, and insights from ScrewFast to enhance your construction projects. From product spotlights to project management strategies, our blog is your go-to resource for all things hardware and construction.";
+const secondTitle: string = "Insights";
+const secondSubTitle: string =
+ "Stay up-to-date with the latest trends and developments in the construction industry with insights from ScrewFast's team of industry experts. ";
+
+const pageTitle: string = `Blog | ${SITE.title}`;
+---
+
+
+
+
+