Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions src/components/AboutSection.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,17 @@ export default function AboutSection() {
>
<div className="w-full max-w-[1600px] mx-auto flex flex-col md:flex-row items-start md:items-center justify-between gap-x-10 xl:gap-x-12 2xl:gap-x-14">
<div className="w-full px-4 relative flex justify-center items-center h-[300px] sm:h-[350px] md:h-[500px]">
<img
src={siteConfig.about.image}
alt="About image 1"
className="block md:hidden mb-10 rounded-md shadow-lg object-cover w-full h-full"
/>

<img
src={siteConfig.about.image}
alt="About image 1 fade"
className={`hidden md:block rounded-md shadow-lg object-cover w-full h-full absolute top-0 left-0 right-0 bottom-0 m-auto transition-opacity duration-1000 ${
className={` rounded-md shadow-lg mb-10 object-cover w-full h-full absolute top-0 left-0 right-0 bottom-0 m-auto transition-opacity duration-1000 ${
showFirst ? "opacity-100 z-10" : "opacity-0 z-0"
}`}
/>
<img
src={siteConfig.hero.image}
alt="About image 2 fade"
className={`hidden md:block rounded-md shadow-lg object-cover w-full h-full absolute top-0 left-0 right-0 bottom-0 m-auto transition-opacity duration-1000 ${
className={`rounded-md shadow-lg mb-10 object-cover w-full h-full absolute top-0 left-0 right-0 bottom-0 m-auto transition-opacity duration-1000 ${
showFirst ? "opacity-0 z-0" : "opacity-100 z-10"
}`}
/>
Expand Down
12 changes: 3 additions & 9 deletions src/components/HeroSection.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,24 +53,18 @@ export default function HeroSection() {

<div className="w-full max-w-[1600px] px-2 md:px-0 relative h-[350px] md:h-[500px] flex justify-center items-center">
<div className="w-full max-w-[1600px] mt-0 px-2 md:px-0 relative flex justify-center items-center h-[300px] sm:h-[350px] md:h-[500px]">
<img
src={siteConfig.hero.image}
alt="Hero image 1"
className="rounded-md shadow-lg object-cover w-full h-full"
/>

{" "}
<img
src={siteConfig.about.image}
alt="Hero image 2"
className={`rounded-md shadow-lg object-cover w-full h-full absolute top-0 left-0 right-0 bottom-0 m-auto transition-opacity duration-1000 hidden md:block ${
className={`rounded-md shadow-lg object-cover w-full h-full absolute top-0 left-0 right-0 bottom-0 m-auto transition-opacity duration-1000 ${
showFirst ? "opacity-0 z-0" : "opacity-100 z-10"
}`}
/>

<img
src={siteConfig.hero.image}
alt="Hero image 1 fade"
className={`rounded-md shadow-lg object-cover w-full h-full absolute top-0 left-0 right-0 bottom-0 m-auto transition-opacity duration-1000 hidden md:block ${
className={`rounded-md shadow-lg object-cover w-full h-full absolute top-0 left-0 right-0 bottom-0 m-auto transition-opacity duration-1000 ${
showFirst ? "opacity-100 z-10" : "opacity-0 z-0"
}`}
/>
Expand Down
Loading