Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
govinda777 committed Jan 5, 2025
1 parent 1a5822c commit 5b6cd61
Showing 1 changed file with 21 additions and 20 deletions.
41 changes: 21 additions & 20 deletions src/components/IntroSection/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,46 +20,47 @@ const IntroSection: React.FC<IntroSectionProps> = ({
className = ""
}) => {
return (
<section className={`w-full bg-gradient-to-b to-white ${className}`}>
{/* Banner/Hero Image Container */}
<div className="w-full h-[250px] mt-20">
<img
src={imageSrc}
alt={imageAlt}
className="w-full h-full object-cover object-center"
/>
<section className={`w-full h-auto ${className}`}>
{/* Image Container */}
<div className="w-full bg-white py-8 md:py-12">
<div className="max-w-7xl mx-auto px-4">
<div className="w-full h-[250px] rounded-3xl overflow-hidden">
<img
src={imageSrc}
alt={imageAlt}
className="w-full h-full object-cover object-center"
/>
</div>
</div>
</div>

{/* Content Container */}
<div className="relative">
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12">
<div className="max-w-4xl">
{/* Main Title */}
<h1 className="text-4xl sm:text-5xl font-bold text-gray-900 mb-6 leading-tight">
<div className="w-full bg-[#FFF1E7] relative overflow-hidden">
<div className="max-w-7xl mx-auto px-4 py-8 md:py-12">
<div className="max-w-4xl relative z-10">
<h1 className="text-3xl md:text-[2.5rem] font-bold text-gray-900 mb-6 leading-tight">
{title}
</h1>

{/* Description */}
<p className="text-lg text-gray-700 mb-6">
<p className="text-base md:text-lg text-gray-700 mb-4">
{description}
</p>

{objectiveText && (
<p className="text-lg font-medium text-gray-800 mb-3">
<p className="text-base md:text-lg text-gray-800 mb-3">
{objectiveText}
</p>
)}

{/* Highlighted Text */}
<p className="text-2xl sm:text-3xl font-bold text-[#EA580C]">
<p className="text-xl md:text-2xl font-bold text-[#F34A0D]">
{highlightedText}
</p>
</div>

{/* Decorative Circle */}
<div
className="absolute bottom-0 right-0 w-64 h-64 bg-yellow-300 rounded-full opacity-50 translate-x-1/3 translate-y-1/3"
aria-hidden="true"
className="absolute bottom-0 right-0 w-48 h-48 md:w-72 md:h-72 bg-yellow-200 rounded-full opacity-50 translate-x-1/3 translate-y-1/3"
aria-hidden="true"
/>
</div>
</div>
Expand Down

0 comments on commit 5b6cd61

Please sign in to comment.