From 9b4cdac7bba7ab7cf81a224e46f353fed0cbb8c3 Mon Sep 17 00:00:00 2001 From: Emil Gulamov <125820963+mearashadowfax@users.noreply.github.com> Date: Sat, 29 Jun 2024 03:39:05 +0400 Subject: [PATCH] Update MegaMenuLink to use data-driven rendering The MegaMenuLink component has been refactored to use data-driven rendering rather than hard-coded values. --- src/components/ui/links/MegaMenuLink.astro | 255 ++++----------------- 1 file changed, 44 insertions(+), 211 deletions(-) diff --git a/src/components/ui/links/MegaMenuLink.astro b/src/components/ui/links/MegaMenuLink.astro index c25ae12..923deb6 100644 --- a/src/components/ui/links/MegaMenuLink.astro +++ b/src/components/ui/links/MegaMenuLink.astro @@ -1,7 +1,7 @@ --- import { Image } from "astro:assets"; import Icon from "../icons/Icon.astro"; -import personWorking from "@images/person-working.avif"; +import { servicesData, successStoriesData } from "@data/mega_link"; ---
- Explore Advice and Explanations -
-- Dive deep into helpful guides and explanations for all of - ScrewFast's features -
-- Discover Integrations -
-- Supercharge Your Workflow. Seamless integrations with all your - favorite tools -
-- Expert Services -
-- Go beyond tools with ScrewFast's expert services -
-+ {data.title} +
++ {data.description} +
+- Cutting-Edge Tools -
-- Build Smarter, Faster. Experience next-level efficiency with - ScrewFast's cutting-edge construction tools -
-- Simple Plans -
-- Boost your efficiency with ScrewFast's straightforward, - value-driven plans -
-- Community Forum -
-- Learn, share, and connect with other ScrewFast users -
-+ {data.title} +
++ {data.description} +
+- See how ScrewFast has empowered businesses of all sizes to achieve - outstanding results. + {successStoriesData[0].description}