download buttons

This commit is contained in:
Proxyy587 2024-06-17 12:24:30 +05:30
parent 8d6897b9ac
commit e6e3ff99c1
2 changed files with 6 additions and 2 deletions

View file

@ -91,7 +91,7 @@ const Hero = () => {
</Button> </Button>
<p className="hidden lg:block">|</p> <p className="hidden lg:block">|</p>
<p className="block lg:hidden">or</p> <p className="block lg:hidden">or</p>
<Link className="w-full" href="/dashboard"> <Link className="w-full" href="/downloads">
<Button className="w-full">Download</Button> <Button className="w-full">Download</Button>
</Link> </Link>
<div className="pointer-events-none dark:invert -scale-x-100 absolute -bottom-14 max-lg:left-0 lg:right-20 inline-flex justify-center items-center gap-1"> <div className="pointer-events-none dark:invert -scale-x-100 absolute -bottom-14 max-lg:left-0 lg:right-20 inline-flex justify-center items-center gap-1">

View file

@ -1,3 +1,5 @@
"use client";
import { BorderBeam } from "@/components/ui/border-beam"; import { BorderBeam } from "@/components/ui/border-beam";
import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar"; import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";
import { Badge } from "@/components/ui/badge"; import { Badge } from "@/components/ui/badge";
@ -23,6 +25,7 @@ import {
} from "lucide-react"; } from "lucide-react";
import Link from "next/link"; import Link from "next/link";
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,
@ -31,6 +34,7 @@ const happyMonkey = Happy_Monkey({
}); });
const HeroCards = () => { const HeroCards = () => {
const router = useRouter();
const cards = { const cards = {
aboutCard: { aboutCard: {
description: description:
@ -49,7 +53,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: () => alert("Plan chosen"), onPrimaryButtonClick: () => router.push("/downloads"),
features: [ features: [
{ {
title: "Unlimited Projects", title: "Unlimited Projects",