Responsive check

This commit is contained in:
mukesh13
2025-09-12 11:17:42 +05:30
parent e925b985f2
commit b85ec3d929
14 changed files with 102 additions and 170 deletions

View File

@ -4,24 +4,29 @@ const AdvantagesLayout = ({
title = "Advantages",
advantageItems = [],
backgroundGradient = "bg-gradient-to-br from-white to-white",
titleColor = "text-gray-700"
titleColor = "text-teal-700"
}) => {
return (
<section className={`py-5 lg:py-8 ${backgroundGradient} rounded-2xl shadow-sm`}>
<div className="container-fluid px-4 lg:px-6">
<h2 className={`text-2xl lg:text-3xl ${titleColor} text-left pb-2 mb-6 lg:mb-6`}>
{title}
</h2>
<div className="text-justify px-4 lg:px-10">
<ul className="space-y-4 text-gray-600 text-base leading-relaxed list-disc">
<div className="w-full min-w-0 bg-white">
<div className="w-full max-w-none px-4 sm:px-6 lg:px-6 py-4 mb-2">
<section>
<h2 className={`text-2xl sm:text-3xl font-bold ${titleColor} mb-4`}>
{title}
</h2>
<ul className="space-y-4 text-gray-600 leading-relaxed text-sm sm:text-base">
{advantageItems.map((item, index) => (
<li key={index}>{item}</li>
<li key={index} className="flex items-start">
<span
className="inline-block w-2 h-2 rounded-full mt-2 mr-3 flex-shrink-0"
style={{backgroundColor: '#faae31'}}
></span>
<span className="text-justify break-words">{item}</span>
</li>
))}
</ul>
</div>
</section>
</div>
</section>
</div>
);
};

View File

@ -7,9 +7,9 @@ const ApplicationsLayout = ({
titleColor = "text-gray-700"
}) => {
return (
<section className={`py-5 lg:py-5 ${backgroundColor}`}>
<div className="container-fluid px-4 lg:px-6">
<h2 className={"text-3xl font-bold text-teal-700 mb-4"}>
<section className={`w-full min-w-0 py-5 lg:py-5 ${backgroundColor}`}>
<div className="w-full max-w-none px-4 sm:px-6 lg:px-6">
<h2 className="text-2xl sm:text-3xl font-bold text-teal-700 mb-4">
{title}
</h2>
@ -20,7 +20,7 @@ const ApplicationsLayout = ({
className="w-1.5 h-1.5 rounded-full mt-2 mr-3 flex-shrink-0"
style={{backgroundColor: '#faae31'}}
></span>
<span className="text-base">{item}</span>
<span className="text-sm sm:text-base break-words">{item}</span>
</li>
))}
</ul>

View File

@ -1,3 +1,5 @@
// components/shared/CombinedWorkflowLayout.jsx
import React from 'react';
const CombinedWorkflowLayout = ({
@ -9,25 +11,25 @@ const CombinedWorkflowLayout = ({
imageAlt = "Workflow diagram"
}) => {
return (
<div className="w-full bg-white">
<div className="w-full min-w-0 bg-white">
{/* Main container with two columns */}
<div className="grid grid-cols-1 lg:grid-cols-[1.2fr_1.0fr] min-h-screen">
<div className="grid grid-cols-1 lg:grid-cols-[1.2fr_1.0fr] gap-0">
{/* Left Column - Content */}
<div className="px-6 lg:px-12 py-8">
<div className="w-full min-w-0 px-4 sm:px-6 lg:px-12 py-6 lg:py-8">
{/* Introduction Section */}
<section className="mb-8">
<h2 className="text-3xl font-bold text-teal-700 mb-4">
<h2 className="text-2xl sm:text-3xl font-bold text-teal-700 mb-4">
{introTitle}
</h2>
<ul className="space-y-4 text-gray-600 leading-relaxed text-sm lg:text-base">
<ul className="space-y-4 text-gray-600 leading-relaxed text-sm sm:text-base">
{introItems.map((item, index) => (
<li key={index} className="flex items-start">
<span
className="inline-block w-2 h-2 rounded-full mt-2 mr-3 flex-shrink-0"
style={{backgroundColor: '#faae31'}}
></span>
<span className="text-justify">{item}</span>
<span className="text-justify break-words">{item}</span>
</li>
))}
</ul>
@ -35,17 +37,17 @@ const CombinedWorkflowLayout = ({
{/* Advantage Section */}
<section>
<h2 className="text-3xl font-bold text-teal-700 mb-4">
<h2 className="text-2xl sm:text-3xl font-bold text-teal-700 mb-4">
{advantageTitle}
</h2>
<ul className="space-y-4 text-gray-600 leading-relaxed text-sm lg:text-base">
<ul className="space-y-4 text-gray-600 leading-relaxed text-sm sm:text-base">
{advantageItems.map((item, index) => (
<li key={index} className="flex items-start">
<span
className="inline-block w-2 h-2 rounded-full mt-2 mr-3 flex-shrink-0"
style={{backgroundColor: '#faae31'}}
></span>
<span className="text-justify">{item}</span>
<span className="text-justify break-words">{item}</span>
</li>
))}
</ul>
@ -53,19 +55,21 @@ const CombinedWorkflowLayout = ({
</div>
{/* Right Column - Workflow Image */}
<div className="relative flex items-start justify-center p-4">
{imageUrl ? (
<img
src={imageUrl}
alt={imageAlt}
className="max-w-full min-h-90px object-contain"
/>
) : (
<div className="text-gray-400 text-center">
<p>Workflow image will appear here</p>
<p className="text-sm mt-2">Please provide the imageUrl prop</p>
</div>
)}
<div className="w-full min-w-0 flex items-start justify-center p-4 lg:p-6">
<div className="w-full max-w-md">
{imageUrl ? (
<img
src={imageUrl}
alt={imageAlt}
className="w-full h-auto object-contain"
/>
) : (
<div className="text-gray-400 text-center p-8">
<p>Workflow image will appear here</p>
<p className="text-sm mt-2">Please provide the imageUrl prop</p>
</div>
)}
</div>
</div>
</div>
</div>

View File

@ -1,4 +1,5 @@
// components/shared/SpecificationsLayout.jsx
import Link from 'next/link';
const SpecificationsLayout = ({
@ -8,48 +9,48 @@ const SpecificationsLayout = ({
iconBackgroundColor = "bg-orange-100"
}) => {
return (
<section className="py-8 lg:py-6">
<div className="container-fluid px-4 lg:px-6">
<section className="w-full min-w-0 py-6 lg:py-8">
<div className="w-full max-w-none px-4 sm:px-6 lg:px-6">
{/* Section Header */}
<div className="text-left mb-8">
<h2 className={"text-3xl font-bold text-teal-700 mb-4"}>
<div className="text-left mb-6 lg:mb-8">
<h2 className="text-2xl sm:text-3xl font-bold text-teal-700 mb-4">
{title}
</h2>
</div>
{/* Specifications Grid */}
<div className="grid grid-cols-1 md:grid-cols-3 gap-6 max-w-6xl mx-auto">
<div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4 sm:gap-6 w-full max-w-none">
{specificationItems.map((spec, index) => (
<div
key={index}
className="relative"
className="w-full min-w-0"
>
{/* Background Card */}
<div
className="rounded-3xl p-8 h-full min-h-[280px] flex flex-col"
className="rounded-3xl p-6 lg:p-8 h-full min-h-[240px] sm:min-h-[280px] flex flex-col"
style={{ backgroundColor: backgroundColor }}
>
{/* Icon Circle - Updated to match AdvantagesSection */}
<div className="flex justify-center mb-6">
<div className={`w-16 h-16 ${iconBackgroundColor} rounded-full flex items-center justify-center`}>
{/* Icon Circle */}
<div className="flex justify-center mb-4 lg:mb-6">
<div className={`w-12 h-12 sm:w-16 sm:h-16 ${iconBackgroundColor} rounded-full flex items-center justify-center`}>
<img
src={spec.icon}
className="w-10 h-10 object-contain"
className="w-8 h-8 sm:w-10 sm:h-10 object-contain"
alt={`${spec.title} Icon`}
/>
</div>
</div>
{/* Title */}
<h3 className="text-center text-teal-700 text-lg font-semibold mb-4">
<h3 className="text-center text-teal-700 text-base sm:text-lg font-semibold mb-3 lg:mb-4">
{spec.title}
</h3>
{/* Content */}
<div className="text-gray-700 text-sm leading-relaxed text-center flex-grow flex items-start justify-center">
<div className="w-full">
<div className="text-gray-700 text-xs sm:text-sm leading-relaxed text-center flex-grow flex items-start justify-center">
<div className="w-full min-w-0">
{spec.renderContent ? spec.renderContent() : (
<div className="text-gray-600">
<div className="text-gray-600 break-words">
{spec.content}
</div>
)}