Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 UI fixes to Key Features Component #2424

Merged
merged 3 commits into from
Nov 5, 2024
Merged
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
16 changes: 7 additions & 9 deletions components/blocks/CarouselFeature.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ const CarouselItem = ({

const commonStyles =
'transition-all delay-[50] duration-500 hover:scale-105 hover:z-20';
const nonHoveredStyles = 'pl-4';

const actionsArray = button ? [button] : [];

Expand All @@ -36,11 +35,8 @@ const CarouselItem = ({

return (
<div
className={`${
isHovered && !isSmallOrMediumScreen
? 'group block bg-gradient-to-br from-white/25 via-white/50 to-white/75 shadow-2xl pl-6 pr-8 md:py-9 md:pr-11 lg:pb-8 lg:pt-8 lg:pr-4 rounded-2xl'
: nonHoveredStyles
} ${commonStyles}`}
className={`
'group block bg-gradient-to-br from-white/25 via-white/50 to-white/75 shadow-2xl pl-6 pr-8 md:py-9 md:pr-11 lg:pb-8 lg:pt-8 lg:pr-4 rounded-2xl ${commonStyles}`}
onClick={() => onClick(index)}
style={{ textDecoration: 'none', overflow: 'visible' }}
>
Expand All @@ -63,7 +59,7 @@ const CarouselItem = ({
)}
{headline && (
<h3
className={` md:text-3xl text-2xl font-tuner leading-tight cursor-pointer pl-4 ${
className={` md:text-3xl text-2xl font-tuner leading-tight cursor-pointer pl-3 ${
isHovered && !isSmallOrMediumScreen
? 'text-transparent lg:text-3xl bg-gradient-to-br from-orange-400 cursor-default via-orange-500 to-orange-600 bg-clip-text'
: 'text-black lg:text-xl'
Expand All @@ -81,12 +77,14 @@ const CarouselItem = ({
}`}
>
{textDisplayCondition && (
<p className={`md:pl-12 lg:pl-9 text-lg font-medium slide-up`}>
<p
className={`md:pl-12 lg:pl-13 pl-9 text-lg font-medium slide-up`}
>
{text}
</p>
)}
{buttonDisplayCondition && (
<div className={`md:pl-6 lg:pl-7 slide-up`}>
<div className={`md:pl-6 lg:pl-6 pl-3 slide-up flex justify-start`}>
<Actions items={actionsArray} />
</div>
)}
Expand Down
Loading