Skip to content

Commit 20dc317

Browse files
committed
fix ai-integration page hero image, added linear fade
1 parent 53f58cc commit 20dc317

3 files changed

Lines changed: 23 additions & 3 deletions

File tree

‎apps/codebility/app/(marketing)/ai-integration/_components/AiIntegrationHeroBg.tsx‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ const HeroBackground = () => {
1616
height={0}
1717
src={outerSpace}
1818
alt="Outer's Space Background"
19-
className="absolute top-0 -translate-x-1/2 object-contain"
19+
className="mask-fade-x absolute left-1/2 top-0 h-auto w-full max-w-[1440px] -translate-x-1/2 object-contain"
20+
sizes="(min-width: 1441px) 1440px, 100vw"
21+
priority
2022
/>
2123
<div
2224
className="absolute -top-96 left-0 h-[1100px] w-80 blur-3xl md:w-1/2 xl:-top-96 xl:left-10 xl:h-[1229.24px] xl:w-[663.11px]"
@@ -25,7 +27,7 @@ const HeroBackground = () => {
2527
background:
2628
"radial-gradient(50% 50% at 50% 50%, rgba(151, 71, 255, 0.3) 0%, rgba(3, 3, 3, 0.3) 100%)",
2729
}}
28-
></div>
30+
/>
2931
</div>
3032
</>
3133
);

‎apps/codebility/app/(marketing)/ai-integration/page.tsx‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ const AiIntegration = () => {
4848
<Partner />
4949
<PartnerReactFlow />
5050
<NextStep />
51-
<Footer />
5251
</div>
5352
);
5453
};

‎apps/codebility/app/globals.css‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,25 @@
1717
@apply flex items-center justify-start;
1818
}
1919

20+
@media (min-width: 1441px) {
21+
.mask-fade-x {
22+
-webkit-mask-image: linear-gradient(
23+
to right,
24+
transparent 0%,
25+
#000 14%,
26+
#000 86%,
27+
transparent 100%
28+
);
29+
mask-image: linear-gradient(
30+
to right,
31+
transparent 0%,
32+
#000 14%,
33+
#000 86%,
34+
transparent 100%
35+
);
36+
}
37+
}
38+
2039
.no-horizontal-scroll {
2140
overflow-x: hidden;
2241
}

0 commit comments

Comments
 (0)