From 2632188d04a7075527aba270e0fb6b31da7dd603 Mon Sep 17 00:00:00 2001 From: akash Date: Mon, 1 Sep 2025 18:22:38 +0530 Subject: [PATCH] shortcode new struture updated --- app/shortcodes/page.js | 94 +++++++++++++++++++++++ public/assets/css/module-css/chooseus.css | 6 ++ 2 files changed, 100 insertions(+) create mode 100644 app/shortcodes/page.js diff --git a/app/shortcodes/page.js b/app/shortcodes/page.js new file mode 100644 index 0000000..226f67b --- /dev/null +++ b/app/shortcodes/page.js @@ -0,0 +1,94 @@ +'use client' +import Layout from "@/components/layout/Layout" +import { useState } from "react" +import { motion, AnimatePresence } from "framer-motion" + +const items = [ + { icon: "/assets/images/services/icons/trusted-physiotherapy-clinic.webp", text: "On call 24/7 for client needs" }, + { icon: "/assets/images/services/icons/trusted-physiotherapy-clinic.webp", text: "Flexible and fast scheduling" }, + { icon: "/assets/images/services/icons/trusted-physiotherapy-clinic.webp", text: "Regular quality assurance" }, + { icon: "/assets/images/services/icons/trusted-physiotherapy-clinic.webp", text: "Thorough care management and family support" }, + { icon: "/assets/images/services/icons/trusted-physiotherapy-clinic.webp", text: "Double the care team staff of other agencies" }, + { icon: "/assets/images/services/icons/trusted-physiotherapy-clinic.webp", text: "Assisting with walking and transferring from bed to wheelchair" }, + { icon: "/assets/images/services/icons/trusted-physiotherapy-clinic.webp", text: "Bathing, dressing and grooming assistance" }, + { icon: "/assets/images/services/icons/trusted-physiotherapy-clinic.webp", text: "Medication reminders" }, + { icon: "/assets/images/services/icons/trusted-physiotherapy-clinic.webp", text: "Safety and fall prevention" }, + { icon: "/assets/images/services/icons/trusted-physiotherapy-clinic.webp", text: "Toileting and incontinence care" }, + { icon: "/assets/images/services/icons/trusted-physiotherapy-clinic.webp", text: "Light housekeeping" }, + { icon: "/assets/images/services/icons/trusted-physiotherapy-clinic.webp", text: "Meal preparation and nutrition" }, + { icon: "/assets/images/services/icons/trusted-physiotherapy-clinic.webp", text: "Grocery shopping and errands" }, + { icon: "/assets/images/services/icons/trusted-physiotherapy-clinic.webp", text: "Transportation to social and recreational activities" }, + { icon: "/assets/images/services/icons/trusted-physiotherapy-clinic.webp", text: "Assistance with light exercise and outdoor activity" }, +] + +export default function Home() { + const [activeIndex, setActiveIndex] = useState(null) + + return ( + +
+
+
+
+
+
+ Why Choose Us +

Choose The Best For Your
Health

+
+ + {/* ICONS in 1 row (4 columns) */} +
+ {items.map((item, i) => ( +
+
setActiveIndex(i)} + onMouseLeave={() => setActiveIndex(null)} + > + {/* Popup inside each icon */} + + {activeIndex === i && ( + +

+ {item.text} +

+
+ )} +
+ + {/* Icon replaced with Image */} +
+
+ Service Icon +
+
+
+
+ ))} +
+
+
+
+
+
+
+ ) +} diff --git a/public/assets/css/module-css/chooseus.css b/public/assets/css/module-css/chooseus.css index ec838de..3de170d 100644 --- a/public/assets/css/module-css/chooseus.css +++ b/public/assets/css/module-css/chooseus.css @@ -7,6 +7,12 @@ background-color: #bc0000; } +.lightbg{ + + background-color: #ffe6e6; + +} + .chooseus-section .bg-layer{ position: absolute; top: 0px;