Skip to content

Commit

Permalink
Merge pull request #1 from aadilmansoor/main
Browse files Browse the repository at this point in the history
service section
  • Loading branch information
mishalibrahim authored May 13, 2024
2 parents 2cdce22 + 4eac770 commit 2b7c2b3
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/page.tsx
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>
);
}
16 changes: 16 additions & 0 deletions components/OurServices.tsx
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;
29 changes: 29 additions & 0 deletions components/ServiceCard.tsx
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;
Binary file added public/assets/images/service1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 2b7c2b3

Please sign in to comment.