Feature Grid #13

Merged
an.di merged 17 commits from adilallo/component/FeatureGrid into main 2025-08-28 20:30:26 +00:00
2 changed files with 7 additions and 1 deletions
Showing only changes of commit 4d8e735398 - Show all commits
+1
View File
@@ -3,6 +3,7 @@
import React from "react";
import ContentLockup from "./ContentLockup";
import MiniCard from "./MiniCard";
import Image from "next/image";
const FeatureGrid = ({ title, subtitle, className = "" }) => {
return (
+6 -1
View File
@@ -1,6 +1,7 @@
"use client";
import React from "react";
import Image from "next/image";
const MiniCard = ({
children,
@@ -23,7 +24,7 @@ const MiniCard = ({
{/* Content for the inner panel */}
{panelContent && (
<div className="flex items-center justify-center w-full h-full">
<img
<Image
src={panelContent}
alt={
ariaLabel ||
@@ -32,6 +33,10 @@ const MiniCard = ({
"Feature icon"
}
className="max-w-[58px] max-h-[58px] w-auto h-auto object-contain"
unoptimized
width={0}
height={0}
sizes="100vw"
/>
</div>
)}