Skip to content

Commit 1917f71

Browse files
mangmormangmor
authored andcommitted
feat: enhance industries section with background images for better visual appeal
1 parent 5cf24fb commit 1917f71

1 file changed

Lines changed: 27 additions & 19 deletions

File tree

src/app/landing/serverless/page.tsx

Lines changed: 27 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ import qwenModelsIcon from "@/images/Qwen Image 2 Models.png";
3737
import tool01 from "@/images/tool-01.webp";
3838
import tool02 from "@/images/tool-02.webp";
3939
import tool03 from "@/images/tool-03.webp";
40+
import tool04 from "@/images/tool-04.webp";
41+
import tool05 from "@/images/tool-05.webp";
42+
import tool06 from "@/images/tool-06.webp";
43+
import tool07 from "@/images/tool-07.webp";
44+
import tool08 from "@/images/tool-08.webp";
4045
import {
4146
Select,
4247
SelectContent,
@@ -157,14 +162,14 @@ const infraFeatures = [
157162
];
158163

159164
const industries = [
160-
{ icon: Code2, name: "SaaS Platforms" },
161-
{ icon: ShoppingCart, name: "E-commerce" },
162-
{ icon: Rocket, name: "AI Startups" },
163-
{ icon: Globe, name: "Agencies" },
164-
{ icon: TrendingUp, name: "Enterprises" },
165-
{ icon: Gamepad2, name: "Gaming Studios" },
166-
{ icon: Cloud, name: "Cloud Providers" },
167-
{ icon: Palette, name: "Creative Tools" },
165+
{ icon: Code2, name: "SaaS Platforms", bg: tool01 },
166+
{ icon: ShoppingCart, name: "E-commerce", bg: tool02 },
167+
{ icon: Rocket, name: "AI Startups", bg: tool03 },
168+
{ icon: Globe, name: "Agencies", bg: tool04 },
169+
{ icon: TrendingUp, name: "Enterprises", bg: tool05 },
170+
{ icon: Gamepad2, name: "Gaming Studios", bg: tool06 },
171+
{ icon: Cloud, name: "Cloud Providers", bg: tool07 },
172+
{ icon: Palette, name: "Creative Tools", bg: tool08 },
168173
];
169174

170175
export default function ServerlessPage() {
@@ -517,23 +522,26 @@ export default function ServerlessPage() {
517522
</p>
518523
</div>
519524

520-
<div className="grid grid-cols-2 lg:grid-cols-4">
521-
{industries.map((industry, i) => (
525+
<div className="grid grid-cols-2 gap-3 lg:grid-cols-4">
526+
{industries.map((industry) => (
522527
<div
523528
key={industry.name}
524-
className="relative flex flex-col items-center gap-3 px-6 py-6 text-center"
529+
className="group relative flex h-28 flex-col justify-between overflow-hidden rounded-xs p-5 md:h-36"
525530
>
526-
{i % 4 !== 3 && (
527-
<span className="absolute top-1/2 right-0 hidden h-8 w-px -translate-y-1/2 bg-current/10 lg:block" />
528-
)}
529-
{i % 2 === 0 && (
530-
<span className="absolute top-1/2 right-0 block h-8 w-px -translate-y-1/2 bg-current/10 lg:hidden" />
531-
)}
531+
<div className="pointer-events-none absolute inset-0">
532+
<Image
533+
src={industry.bg}
534+
alt=""
535+
fill
536+
sizes="(min-width: 1024px) 25vw, 50vw"
537+
className="rotate-180 object-cover object-top transition-transform duration-500 group-hover:scale-105"
538+
/>
539+
</div>
532540
<industry.icon
533-
className="text-foreground size-5 shrink-0"
541+
className="relative size-5 shrink-0 text-black/50"
534542
strokeWidth={1.5}
535543
/>
536-
<span className="text-heading text-sm font-medium">
544+
<span className="font-display relative text-sm font-medium tracking-tight text-black md:text-base">
537545
{industry.name}
538546
</span>
539547
</div>

0 commit comments

Comments
 (0)