-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from aadilmansoor/main
service section
- Loading branch information
Showing
4 changed files
with
48 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
import Hero from "@/components/Hero"; | ||
import OurServices from "@/components/OurServices"; | ||
import Image from "next/image"; | ||
|
||
export default function Home() { | ||
return ( | ||
<main className="w-full h-full"> | ||
<Hero /> | ||
<Hero /> | ||
<OurServices /> | ||
</main> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import ServiceCard from "./ServiceCard"; | ||
|
||
const OurServices = () => { | ||
return ( | ||
<section id="our-services"> | ||
<div className="flex flex-col items-center"> | ||
<h2 className="text-4xl font-medium text-primary">Our Services</h2> | ||
<div className="flex justify-around max-w-[1200px] w-full mt-12 flex-wrap"> | ||
<ServiceCard /> | ||
<ServiceCard /> | ||
</div> | ||
</div> | ||
</section> | ||
); | ||
}; | ||
export default OurServices; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
const ServiceCard = () => { | ||
return ( | ||
<div> | ||
<div className="relative group w-screen h-[550px] sm:w-[24rem] sm:h-[550px] sm:mx-8 mx-5 my-10 rounded-xl hover:scale-105 transition-all duration-500 overflow-hidden"> | ||
<div className="absolute top-0 left-0 w-full h-full rounded-[inherit]"> | ||
<img | ||
src="/assets/images/service1.png" | ||
alt="background" | ||
className="rounded-[inherit] w-full h-full object-cover md:group-hover:scale-125 transition-all duration-500" | ||
/> | ||
</div> | ||
<div className="w-full h-full bg-[#0000008e] md:bg-[#00000045] absolute top-0 left-0 z-50 md:group-hover:bg-[#0000008e] rounded-[inherit] transition-all duration-500"> | ||
<div className="absolute md:translate-y-[127px] bottom-0 mb-5 mx-4 group-hover:translate-y-0 transition-all duration-500"> | ||
<h1 className=" text-white font-extrabold text-3xl mb-3"> | ||
Oil and Gas Equipment Trading | ||
</h1> | ||
<div className="h-[5px] md:w-0 mb-3 md:opacity-0 bg-yellow-500 md:group-hover:w-[120px] md:group-hover:opacity-100 transition-all duration-700"></div> | ||
<p className="text-white md:opacity-0 group-hover:opacity-100"> | ||
Explore our comprehensive range of equipment and materials for the | ||
oil and gas sector, including drilling equipment, pipelines, | ||
valves, pumps, and more. | ||
</p> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
export default ServiceCard; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.