fix some bug in some blocks
This commit is contained in:
+29
-19
@@ -40,48 +40,56 @@ const FEATURES = [
|
||||
},
|
||||
] as const;
|
||||
|
||||
const Feature270 = () => {
|
||||
interface Feature270Props {
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const Feature270 = ({ className }: Feature270Props) => {
|
||||
return (
|
||||
<section
|
||||
dir="rtl"
|
||||
lang="fa"
|
||||
className="h-full w-screen overflow-hidden py-32"
|
||||
className={cn(
|
||||
"relative h-full w-full min-w-0 overflow-hidden py-32",
|
||||
className,
|
||||
)}
|
||||
>
|
||||
<div className="relative container">
|
||||
<div className="w-full space-y-5 text-start lg:w-3/5">
|
||||
<div className="relative container min-w-0">
|
||||
<div className="w-full min-w-0 space-y-5 text-start lg:w-3/5">
|
||||
<h1 className="mb-6 w-full max-w-lg text-2xll font-semibold tracking-tighter text-balance lg:text-2xll">
|
||||
فرایندها را استاندارد و سریع کنید
|
||||
</h1>
|
||||
<p className="max-w-2xl text-pretty opacity-50 md:mb-20">
|
||||
<p className="max-w-2xl text-pretty break-words opacity-50 md:mb-20">
|
||||
قوانین ساده تعریف کنید تا وظایف تکراری بدون دخالت دست انجام شود. تیم روی تصمیمهای مهم تمرکز میکند و سرعت اجرا بالاتر میرود.
|
||||
</p>
|
||||
</div>
|
||||
<div className="relative grid h-[95rem] items-center justify-between gap-3 md:h-[68rem] md:grid-cols-2 lg:h-[32rem] lg:grid-cols-3">
|
||||
<div className="relative grid h-[95rem] min-w-0 items-center justify-between gap-3 md:h-[68rem] md:grid-cols-2 lg:h-[32rem] lg:grid-cols-3">
|
||||
{FEATURES.map((feature) => (
|
||||
<PinContainer
|
||||
key={feature.id}
|
||||
title="بیشتر بدانید"
|
||||
href="https://www.ShadcnBlocks/blocks"
|
||||
className="w-full rounded-3xl bg-muted/70! p-4"
|
||||
className="w-full min-w-0 rounded-3xl bg-muted/70! p-4"
|
||||
containerClassName="w-full min-w-0 max-w-full"
|
||||
>
|
||||
<div className="flex flex-col text-start">
|
||||
<div className={feature.imageOrder}>
|
||||
<div className="flex min-w-0 flex-col text-start">
|
||||
<div className={cn("min-w-0", feature.imageOrder)}>
|
||||
<img
|
||||
src={feature.image}
|
||||
height="1000"
|
||||
width="1000"
|
||||
className="h-70 w-full rounded-3xl object-cover group-hover/card:shadow-xl"
|
||||
className="h-70 w-full max-w-full rounded-3xl object-cover group-hover/card:shadow-xl"
|
||||
alt={feature.imageAlt}
|
||||
/>
|
||||
</div>
|
||||
<div className={cn("mt-4 w-full p-3", feature.contentOrder)}>
|
||||
<div className={cn("mt-4 w-full min-w-0 p-3", feature.contentOrder)}>
|
||||
<p className="leading-none tracking-tighter opacity-50">
|
||||
{feature.number}
|
||||
</p>
|
||||
<h2 className="my-3 text-3xl leading-none font-semibold tracking-tighter text-balance">
|
||||
<h2 className="my-3 text-3xl leading-none font-semibold tracking-tighter text-balance break-words">
|
||||
{feature.title}
|
||||
</h2>
|
||||
<p className="text-pretty leading-5 opacity-50">
|
||||
<p className="text-pretty break-words leading-5 opacity-50">
|
||||
{feature.description}
|
||||
</p>
|
||||
</div>
|
||||
@@ -128,7 +136,7 @@ export const PinContainer = ({
|
||||
return (
|
||||
<a
|
||||
className={cn(
|
||||
"group/pin relative z-50 cursor-pointer",
|
||||
"group/pin relative z-50 block w-full min-w-0 max-w-full cursor-pointer",
|
||||
containerClassName,
|
||||
)}
|
||||
onMouseEnter={onMouseEnter}
|
||||
@@ -140,15 +148,17 @@ export const PinContainer = ({
|
||||
perspective: "1000px",
|
||||
transform: "rotateX(70deg) translateZ(0deg)",
|
||||
}}
|
||||
className="absolute top-1/2 left-1/2 mt-4 ml-[0.09375rem] w-full -translate-x-1/2 -translate-y-1/2"
|
||||
className="absolute top-1/2 left-1/2 mt-4 ml-[0.09375rem] w-full max-w-full -translate-x-1/2 -translate-y-1/2"
|
||||
>
|
||||
<div
|
||||
style={{
|
||||
transform: transform,
|
||||
}}
|
||||
className="absolute top-1/2 left-1/2 flex w-full items-start justify-start overflow-hidden rounded-2xl transition duration-700"
|
||||
className="absolute top-1/2 left-1/2 flex w-full max-w-full items-start justify-start overflow-hidden rounded-2xl transition duration-700"
|
||||
>
|
||||
<div className={cn("relative z-50", className)}>{children}</div>
|
||||
<div className={cn("relative z-50 min-w-0 w-full", className)}>
|
||||
{children}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<PinPerspective title={title} />
|
||||
@@ -163,8 +173,8 @@ export const PinPerspective = ({
|
||||
href?: string;
|
||||
}) => {
|
||||
return (
|
||||
<motion.div className="pointer-events-none z-[60] flex h-80 w-96 items-center justify-center opacity-0 transition duration-500 group-hover/pin:opacity-100">
|
||||
<div className="inset-0 -mt-7 h-full w-full flex-none">
|
||||
<motion.div className="pointer-events-none z-[60] flex h-80 w-full max-w-full items-center justify-center opacity-0 transition duration-500 group-hover/pin:opacity-100">
|
||||
<div className="inset-0 -mt-7 h-full w-full min-w-0 flex-none overflow-hidden">
|
||||
<div className="absolute inset-x-0 top-0 flex justify-center">
|
||||
<span className="relative z-10 flex items-center gap-2 rounded-full bg-zinc-950 px-4 py-0.5 ring-1 ring-white/10">
|
||||
<span className="relative z-20 inline-block py-0.5 text-xs font-bold text-white">
|
||||
|
||||
Reference in New Issue
Block a user