From dbb11977fa934f8f47abdc12c953d3f2cdf46d56 Mon Sep 17 00:00:00 2001 From: Jalil Arfaoui Date: Sun, 5 Jan 2025 22:50:51 +0100 Subject: [PATCH] =?UTF-8?q?compl=C3=A8te=20les=20pi=C3=A8ces?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ui/blocks/LeftSection.astro | 23 +++++---- src/components/ui/blocks/RightSection.astro | 56 +++++++++++---------- src/pages/pieces.astro | 38 +++++--------- 3 files changed, 54 insertions(+), 63 deletions(-) diff --git a/src/components/ui/blocks/LeftSection.astro b/src/components/ui/blocks/LeftSection.astro index 37b9acb..f4e21a7 100644 --- a/src/components/ui/blocks/LeftSection.astro +++ b/src/components/ui/blocks/LeftSection.astro @@ -1,11 +1,11 @@ --- -// Import the necessary modules import { Image } from "astro:assets"; import PrimaryCTA from "@components/ui/buttons/PrimaryCTA.astro"; -// Destructure the props passed to the Astro component +import { LightboxImage } from "@/components/LightboxImage"; + const { title, subTitle, btnExists, btnTitle, btnURL, img, imgAlt } = Astro.props; -// Define TypeScript interface for props + interface Props { title: string; subTitle: string; @@ -21,14 +21,15 @@ interface Props {
- - {imgAlt} + + {imgAlt} +
diff --git a/src/components/ui/blocks/RightSection.astro b/src/components/ui/blocks/RightSection.astro index 5c1d715..1d142e3 100644 --- a/src/components/ui/blocks/RightSection.astro +++ b/src/components/ui/blocks/RightSection.astro @@ -1,8 +1,8 @@ --- -// Import the required modules import { Image } from "astro:assets"; import PrimaryCTA from "@components/ui/buttons/PrimaryCTA.astro"; -// Extract properties from Astro.props +import { LightboxImage } from "@components/LightboxImage"; + const { title, subTitle, @@ -15,7 +15,7 @@ const { imgTwo, imgTwoAlt, } = Astro.props; -// Define TypeScript interface for the properties + interface Props { title: string; subTitle: string; @@ -53,32 +53,36 @@ interface Props { { single ? (
- - {imgOneAlt} + + {imgOneAlt} +
) : (
- - {imgOneAlt} - - {imgTwoAlt} + + {imgOneAlt} + + + + {imgTwoAlt} +
) } diff --git a/src/pages/pieces.astro b/src/pages/pieces.astro index a837cbc..4bb2fcf 100644 --- a/src/pages/pieces.astro +++ b/src/pages/pieces.astro @@ -48,11 +48,20 @@ const articles: Article[] = [ }, { isRightSection: false, + title: "Cuisine ouverte, toute équipée", + subTitle: + "Refaite en 2017, la cuisine allie plan de travail en bois et nombreux rangements. Elle est équipée de plaques à induction, d’une hotte et d’un four Bosch.", + img: photoSalonCheminee, + imgAlt: "Blueprints and digital tablet with construction plans.", + }, + { + isRightSection: true, title: "Chambre principale", subTitle: "Our skilled craftsmen bring precision and excellence to every construction project. From minor installations to substantial structural work, ScrewFast offers reliable construction services to turn your plans into tangible outcomes. We ensure the highest standards of safety and workmanship, utilizing top-quality tools and materials from our extensive inventory.", - img: photoParentale, - imgAlt: "Construction site before and after", + imgOne: photoParentale, + imgOneAlt: "Construction site before and after", + single: true, btnExists: false, btnTitle: "Learn More", btnURL: "#", @@ -78,30 +87,7 @@ const articles: Article[] = [ imgOneAlt: "Construction workers orchestrating a project", imgTwo: photoChambreEnfantEst, imgTwoAlt: "Aerial view of managed construction", - }, - { - isRightSection: false, - title: "Ensuring Long-lasting Performance", - subTitle: - "Our commitment to your project doesn't end at completion. ScrewFast offers ongoing maintenance and support services to ensure your construction's longevity and performance. From regular check-ups to emergency assistance, our responsive team is there to provide seamless support.", - img: usingTools, - imgAlt: - "Man in orange and black vest wearing white helmet holding yellow and black power tool", - }, - { - isRightSection: true, - title: "Crafting Bespoke Strategies for Unique Challenges", - subTitle: - "For our larger enterprise clients, ScrewFast offers custom solutions designed to meet specific industry challenges. By understanding your unique needs, we engineer tailored strategies aimed at optimizing your operations, enhancing efficiency, and driving your business forward.", - single: false, - imgOne: progressBuilding, - imgOneAlt: "In progress building structure", - imgTwo: underConstruction, - imgTwoAlt: "Brown and gray building under construction", - btnExists: true, - btnTitle: "Read more", - btnURL: "#", - }, + } ]; const pageTitle: string = `Pièces | ${SITE.title}`;