fix: make the "Download SVR Now" button not require JavaScript to work
This commit is contained in:
parent
91f7b43028
commit
9ae02b0ac9
1 changed files with 7 additions and 10 deletions
|
@ -12,11 +12,11 @@ import {
|
||||||
CardHeader,
|
CardHeader,
|
||||||
CardTitle
|
CardTitle
|
||||||
} from "@/components/ui/card";
|
} from "@/components/ui/card";
|
||||||
|
import Link from "next/link";
|
||||||
import Image from "next/image";
|
import Image from "next/image";
|
||||||
import { Happy_Monkey } from "next/font/google";
|
import { Happy_Monkey } from "next/font/google";
|
||||||
import { ArchiveRestore, Headset, Infinity, LightbulbIcon } from "lucide-react";
|
import { ArchiveRestore, Headset, Infinity, LightbulbIcon } from "lucide-react";
|
||||||
import Iconss from "../ui/icons";
|
import Iconss from "../ui/icons";
|
||||||
import { useRouter } from "next/navigation";
|
|
||||||
|
|
||||||
const happyMonkey = Happy_Monkey({
|
const happyMonkey = Happy_Monkey({
|
||||||
preload: true,
|
preload: true,
|
||||||
|
@ -25,7 +25,6 @@ const happyMonkey = Happy_Monkey({
|
||||||
});
|
});
|
||||||
|
|
||||||
const HeroCards = () => {
|
const HeroCards = () => {
|
||||||
const router = useRouter();
|
|
||||||
const cards = {
|
const cards = {
|
||||||
aboutCard: {
|
aboutCard: {
|
||||||
description:
|
description:
|
||||||
|
@ -44,7 +43,7 @@ const HeroCards = () => {
|
||||||
description:
|
description:
|
||||||
"Get the best features and priority support with our Pro Plan.",
|
"Get the best features and priority support with our Pro Plan.",
|
||||||
primaryButtonText: "Download SVR Now",
|
primaryButtonText: "Download SVR Now",
|
||||||
onPrimaryButtonClick: () => router.push("/downloads"),
|
primaryButtonDestination: "/downloads",
|
||||||
features: [
|
features: [
|
||||||
{
|
{
|
||||||
title: "Unlimited Projects",
|
title: "Unlimited Projects",
|
||||||
|
@ -124,13 +123,11 @@ const HeroCards = () => {
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<CardDescription>{cards.pricingCard.description}</CardDescription>
|
<CardDescription>{cards.pricingCard.description}</CardDescription>
|
||||||
<Button
|
<Link className="w-full" href="/downloads">
|
||||||
size="sm"
|
<Button size="sm" className="w-full">
|
||||||
className="w-full"
|
{cards.pricingCard.primaryButtonText}
|
||||||
onClick={cards.pricingCard.onPrimaryButtonClick}
|
</Button>
|
||||||
>
|
</Link>
|
||||||
{cards.pricingCard.primaryButtonText}
|
|
||||||
</Button>
|
|
||||||
</CardHeader>
|
</CardHeader>
|
||||||
<hr className="w-4/5 m-auto -mt-2 mb-4" />
|
<hr className="w-4/5 m-auto -mt-2 mb-4" />
|
||||||
<CardFooter className="flex">
|
<CardFooter className="flex">
|
||||||
|
|
Loading…
Reference in a new issue