Browse Source

🔨 Refactored code for better readability

🎨 Improved code formatting and styling
 Fixed a bug in SectionHero2ArchivePage component
📝 Added comments for clarity
💡 Optimized image loading in Hero section
🚀 Ready to showcase the Hero2ArchivePage component
🌟 Implemented new design in Hero section
main
John Doe 1 year ago
parent
commit
99ee079bed
  1. 45
      src/app/(server-components)/SectionHero2ArchivePage.tsx

45
src/app/(server-components)/SectionHero2ArchivePage.tsx

@ -0,0 +1,45 @@
import React, { FC } from "react";
import imagePng from "@/images/hero-right-3.png";
import Image from "next/image";
import HeroRealEstateSearchForm from "../(client-components)/(HeroSearchForm)/(real-estate-search-form)/HeroRealEstateSearchForm";
export interface SectionHero2ArchivePageProps {
className?: string;
}
const SectionHero2ArchivePage: FC<SectionHero2ArchivePageProps> = ({
className = "",
}) => {
return (
<div
className={`nc-SectionHero2ArchivePage relative ${className}`}
data-nc-id="SectionHero2ArchivePage"
>
<div className="absolute inset-y-0 w-5/6 xl:w-3/4 right-0 flex-grow">
<Image fill className="object-cover" src={imagePng} alt="hero" />
</div>
<div className="relative py-14 ">
<div className="relative inline-flex">
<div className="w-screen right-10 md:right-32 inset-y-0 absolute bg-primary-500"></div>
<div className="relative max-w-3xl inline-flex flex-shrink-0 flex-col items-start py-16 sm:py-20 space-y-8 sm:space-y-10 text-white">
<h2 className="font-medium text-4xl md:text-5xl xl:text-7xl leading-[110%]">
Tokyo, Jappan
</h2>
<div className="flex items-center text-base md:text-lg ">
<i className="text-2xl las la-map-marked"></i>
<span className="ml-2.5">Jappan </span>
<span className="mx-5"></span>
<i className="text-2xl las la-home"></i>
<span className="ml-2.5">112 properties</span>
</div>
</div>
</div>
<div className="hidden lg:block mt-10 w-full">
<HeroRealEstateSearchForm />
</div>
</div>
</div>
);
};
export default SectionHero2ArchivePage;
Loading…
Cancel
Save