2024-02-14 05:47:32 +04:00
---
Refactor multiple components, enhance comments, and rename
Refactored multiple Astro UI components, including sections, buttons, and modals, with a focus on code cleanliness and efficiency. This included revising import statements, reordering and redefining CSS classes, and updating HTML elements. Enhanced inline comments to add context and explanations, especially registering the purpose of components and properties for improved understanding. The Accordion-related functionality was removed, pointing towards a redesign of its element usage. Moreover, TestimonialsSection2 was renamed to TestimonialsSectionAlt for better semantics.
2024-02-18 07:41:36 +04:00
// Import necessary components
2024-03-25 22:39:36 +04:00
import MainLayout from "@/layouts/MainLayout.astro";
2024-04-17 18:25:49 +04:00
import MainSection from "@components/ui/blocks/MainSection.astro";
import LeftSection from "@components/ui/blocks/LeftSection.astro";
import RightSection from "@components/ui/blocks/RightSection.astro";
import FeaturesStats from "@components/sections/features/FeaturesStats.astro";
2024-02-14 05:47:32 +04:00
Refactor multiple components, enhance comments, and rename
Refactored multiple Astro UI components, including sections, buttons, and modals, with a focus on code cleanliness and efficiency. This included revising import statements, reordering and redefining CSS classes, and updating HTML elements. Enhanced inline comments to add context and explanations, especially registering the purpose of components and properties for improved understanding. The Accordion-related functionality was removed, pointing towards a redesign of its element usage. Moreover, TestimonialsSection2 was renamed to TestimonialsSectionAlt for better semantics.
2024-02-18 07:41:36 +04:00
// Import necessary images
2025-01-05 12:10:36 +01:00
import photoSalonCheminee from "@images/salon-cheminee.jpg";
import photoSalonCuisine from "@images/salon.jpg";
import photoChambreEnfantEst from "@images/chambre-enfant-est.jpg";
import photoChambreEnfantOuest from "@images/chambre-enfant-ouest.jpg";
import photoParentale from "@images/chambre-parentale.jpg";
2024-04-17 18:25:49 +04:00
import personWorking from "@images/person-working.avif";
import beforeAfter from "@images/before-after.avif";
import constructionWorkers from "@images/construction-workers.avif";
import aerialView from "@images/aerial-view.avif";
import usingTools from "@images/using-tools.avif";
import progressBuilding from "@images/progress-building.avif";
import underConstruction from "@images/under-construction.avif";
import { SITE } from "@data/constants";
2024-02-22 08:43:37 +04:00
interface Article {
isRightSection: boolean;
title: string;
subTitle: string;
btnExists?: boolean;
btnTitle?: string;
btnURL?: string;
single?: boolean;
img?: any;
imgAlt?: string;
imgOne?: any;
imgOneAlt?: string;
imgTwo?: any;
imgTwoAlt?: string;
}
const articles: Article[] = [
{
isRightSection: true,
2025-01-05 12:10:36 +01:00
title: "Grande pièce de vie lumineuse",
2024-02-22 08:43:37 +04:00
subTitle:
"Embarking on a construction project can be overwhelming. With our professional consultation services, we guide you through every stage, ensuring you make informed decisions. Whether you are a DIY enthusiast or a skilled contractor, our experts are on hand to offer tailored advice on product selection, project scope, and compliance with local regulations.",
single: false,
2025-01-05 12:10:36 +01:00
imgOne: photoSalonCheminee,
2024-02-22 08:43:37 +04:00
imgOneAlt: "Blueprints and digital tablet with construction plans.",
2025-01-05 12:10:36 +01:00
imgTwo: photoSalonCuisine,
2024-02-22 08:43:37 +04:00
imgTwoAlt: "Person working in the office",
},
{
isRightSection: false,
2025-01-05 12:10:36 +01:00
title: "Chambre principale",
2024-02-22 08:43:37 +04:00
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.",
2025-01-05 12:10:36 +01:00
img: photoParentale,
2024-02-22 08:43:37 +04:00
imgAlt: "Construction site before and after",
btnExists: true,
btnTitle: "Learn More",
btnURL: "#",
},
{
isRightSection: true,
2025-01-05 12:10:36 +01:00
title: "Chambres enfants",
2024-02-22 08:43:37 +04:00
subTitle:
"Effective project management is at the heart of any successful build. ScrewFast provides thorough planning and robust management services that keep your project on time and within budget. Let us handle the complexities of workflow coordination, resource allocation, and stakeholder communication while you focus on your vision.",
single: false,
2025-01-05 12:10:36 +01:00
imgOne: photoChambreEnfantOuest,
2024-02-22 08:43:37 +04:00
imgOneAlt: "Construction workers orchestrating a project",
2025-01-05 12:10:36 +01:00
imgTwo: photoChambreEnfantEst,
2024-02-22 08:43:37 +04:00
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: "#",
},
];
2024-03-27 17:25:34 -05:00
2025-01-05 12:10:36 +01:00
const pageTitle: string = `Pièces | ${SITE.title}`;
2024-02-14 05:47:32 +04:00
---
2024-03-27 17:25:34 -05:00
<MainLayout
title={pageTitle}
2024-03-24 17:28:23 +04:00
structuredData={{
"@context": "https://schema.org",
"@type": "WebPage",
"@id": "https://screwfast.uk/services",
"url": "https://screwfast.uk/services",
"name": "Expert Consultation Services | ScrewFast",
"description": "Uniting expertise with your vision, ScrewFast provides exceptional service and comprehensive solutions in the hardware and construction industry, from consultation to project completion.",
"isPartOf": {
"@type": "WebSite",
"url": "https://screwfast.uk",
"name": "ScrewFast",
"description": "ScrewFast offers top-tier hardware tools and expert construction services to meet all your project needs."
},
2025-01-05 15:05:22 +01:00
"inLanguage": "fr-FR"
2024-03-24 17:28:23 +04:00
}}
>
Refactor multiple components, enhance comments, and rename
Refactored multiple Astro UI components, including sections, buttons, and modals, with a focus on code cleanliness and efficiency. This included revising import statements, reordering and redefining CSS classes, and updating HTML elements. Enhanced inline comments to add context and explanations, especially registering the purpose of components and properties for improved understanding. The Accordion-related functionality was removed, pointing towards a redesign of its element usage. Moreover, TestimonialsSection2 was renamed to TestimonialsSectionAlt for better semantics.
2024-02-18 07:41:36 +04:00
<!--MainSection is the introductory section of the page, it also contains a CTA button-->
2024-02-14 05:47:32 +04:00
<MainSection
2025-01-05 12:10:36 +01:00
title="Des espaces pour chacun et chacune"
subTitle="Avec 5 chambres, 3 salles d’ eau, un bureau et des beaux espaces de vie intérieurs comme extérieurs, notre maison est accueillante et conviviale."
2024-02-15 00:17:43 +04:00
btnExists={true}
2025-01-05 12:10:36 +01:00
btnTitle="Nous contacter"
btnURL="/contact"
2024-02-14 05:47:32 +04:00
/>
Refactor multiple components, enhance comments, and rename
Refactored multiple Astro UI components, including sections, buttons, and modals, with a focus on code cleanliness and efficiency. This included revising import statements, reordering and redefining CSS classes, and updating HTML elements. Enhanced inline comments to add context and explanations, especially registering the purpose of components and properties for improved understanding. The Accordion-related functionality was removed, pointing towards a redesign of its element usage. Moreover, TestimonialsSection2 was renamed to TestimonialsSectionAlt for better semantics.
2024-02-18 07:41:36 +04:00
<!-- RightSection and LeftSection contain details about various services along with pertinent imagery.
They alternate for variety in design.
The 'btnExists' property is used to toggle the display of a button in these sections.
When btnExists={true}, a button is displayed.
This can be used to link to more detailed information or related resources.
RightSection can also conditionally render one or two images based on the 'single' property.
If 'single' is true, it displays one image, otherwise it displays two.
-->
2024-02-22 08:43:37 +04:00
{
2024-02-24 23:59:08 +04:00
articles.map(article => {
2024-02-22 08:43:37 +04:00
return article.isRightSection ? (
<RightSection
title={article.title}
subTitle={article.subTitle}
single={article.single}
imgOne={article.imgOne}
imgOneAlt={article.imgOneAlt}
imgTwo={article.imgTwo}
imgTwoAlt={article.imgTwoAlt}
btnExists={article.btnExists}
btnTitle={article.btnTitle}
btnURL={article.btnURL}
/>
) : (
<LeftSection
title={article.title}
subTitle={article.subTitle}
img={article.img}
imgAlt={article.imgAlt}
btnExists={article.btnExists}
btnTitle={article.btnTitle}
btnURL={article.btnURL}
/>
);
})
}
Refactor multiple components, enhance comments, and rename
Refactored multiple Astro UI components, including sections, buttons, and modals, with a focus on code cleanliness and efficiency. This included revising import statements, reordering and redefining CSS classes, and updating HTML elements. Enhanced inline comments to add context and explanations, especially registering the purpose of components and properties for improved understanding. The Accordion-related functionality was removed, pointing towards a redesign of its element usage. Moreover, TestimonialsSection2 was renamed to TestimonialsSectionAlt for better semantics.
2024-02-18 07:41:36 +04:00
<!--FeaturesStats section showcases essential stats valuable to users-->
2024-02-14 05:47:32 +04:00
<FeaturesStats
title="By the Numbers"
subTitle="Our commitment to quality and reliability is evident in every project we undertake. At ScrewFast, we are dedicated to delivering industry-leading services that ensure your construction projects are built to last."
2024-02-22 08:43:37 +04:00
mainStatTitle="96%"
mainStatSubTitle="of our clients rate their experience with ScrewFast as exceptional"
stats={[
{
stat: "99.8%",
description: "project completion rate",
},
{
stat: "5,000+",
description: "successful installations",
},
{
stat: "85%",
description: "client growth year-over-year",
},
]}
2024-02-14 05:47:32 +04:00
/>
</MainLayout>