Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 9ff510db2f |
@@ -21,6 +21,7 @@ import BentoRevealIcon from "@/components/bento/BentoRevealIcon";
|
|||||||
import BentoTimeline, { type TimelineItem } from "@/components/bento/BentoTimeline";
|
import BentoTimeline, { type TimelineItem } from "@/components/bento/BentoTimeline";
|
||||||
import BentoMediaStack, { type MediaStackItem } from "@/components/bento/BentoMediaStack";
|
import BentoMediaStack, { type MediaStackItem } from "@/components/bento/BentoMediaStack";
|
||||||
import type { LucideIcon } from "lucide-react";
|
import type { LucideIcon } from "lucide-react";
|
||||||
|
import { useRouter } from "next/navigation";
|
||||||
|
|
||||||
export type { PhoneApp, PhoneApps8, ChatExchange, TimelineItem, MediaStackItem };
|
export type { PhoneApp, PhoneApps8, ChatExchange, TimelineItem, MediaStackItem };
|
||||||
import type { ButtonConfig, CardAnimationTypeWith3D, TitleSegment } from "@/components/cardStack/types";
|
import type { ButtonConfig, CardAnimationTypeWith3D, TitleSegment } from "@/components/cardStack/types";
|
||||||
@@ -184,6 +185,7 @@ const FeatureBento = ({
|
|||||||
}: FeatureBentoProps) => {
|
}: FeatureBentoProps) => {
|
||||||
const theme = useTheme();
|
const theme = useTheme();
|
||||||
const shouldUseLightText = shouldUseInvertedText(useInvertedBackground, theme.cardStyle);
|
const shouldUseLightText = shouldUseInvertedText(useInvertedBackground, theme.cardStyle);
|
||||||
|
const router = useRouter();
|
||||||
|
|
||||||
const getBentoComponent = (feature: FeatureCard) => {
|
const getBentoComponent = (feature: FeatureCard) => {
|
||||||
switch (feature.bentoComponent) {
|
switch (feature.bentoComponent) {
|
||||||
@@ -283,6 +285,13 @@ const FeatureBento = ({
|
|||||||
{feature.button && (
|
{feature.button && (
|
||||||
<Button {...getButtonProps(feature.button, 0, theme.defaultButtonVariant, cls("w-full", cardButtonClassName), cardButtonTextClassName)} />
|
<Button {...getButtonProps(feature.button, 0, theme.defaultButtonVariant, cls("w-full", cardButtonClassName), cardButtonTextClassName)} />
|
||||||
)}
|
)}
|
||||||
|
<Button
|
||||||
|
onClick={() => router.push('/feature-details')}
|
||||||
|
className={cls("w-full", cardButtonClassName)}
|
||||||
|
textClassName={cardButtonTextClassName}
|
||||||
|
>
|
||||||
|
Learn More
|
||||||
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
))}
|
))}
|
||||||
</CardStack>
|
</CardStack>
|
||||||
|
|||||||
Reference in New Issue
Block a user