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

[FEAT]: Payment Info Page #360

Merged
merged 1 commit into from
Jul 22, 2024
Merged
Show file tree
Hide file tree
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
7 changes: 5 additions & 2 deletions app/components/pages/home/FindSection.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Button } from "~/components/ui/button";
import { Link } from "@remix-run/react";

import Container from "./Container";

const FindSection = () => {
Expand All @@ -13,7 +14,9 @@ const FindSection = () => {
budget. All plans include access to our comprehensive library of
pre-built sections, drag-and-drop customization.
</p>
<Button className="bg-primary">See Our Pricing Plan</Button>
<Link to="/PaymentInfo" className="bg-primary">
See Our Pricing Plan
</Link>
<div className="absolute -left-[21rem] -top-64 -z-10 hidden h-[39.625rem] w-[39.625rem] rounded-full bg-[#FFD6D6] blur-[500px] md:flex"></div>
</div>
</Container>
Expand Down
53 changes: 53 additions & 0 deletions app/components/paymentpage/PaymentPage.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
import React from "react";

interface PaymentPlan {
name: string;
price: string;
description: string;
features: string[];
details: {
projectManagement: {
projects: string;
fileUpload: string;
userAccount: string;
teams: string;
};
sharingCollaboration: {
integration: boolean;
guestAccess: boolean;
pageAnalysis: boolean;
taskManagement: boolean;
};
managementSecurity: string;
support: {
prioritySupport: boolean;
customerSupport: boolean;
};
};
}

interface PaymentPageProperties {
plan: PaymentPlan;
onUpgrade: (planName: string) => void;
}

const PaymentPage: React.FC<PaymentPageProperties> = ({ plan, onUpgrade }) => (
<div className="flex w-4/5 flex-col">
<div className="m-1 space-y-6 rounded-lg bg-white p-4">
<h2 className="text-xl font-semibold">{plan.name}</h2>
<p className="text-4xl">
{plan.price}
<span className="ml-2 text-xl text-gray-500">/month</span>
</p>
<p className="text-sm text-gray-600">{plan.description}</p>
<button
className="mt-4 w-full rounded bg-orange-500 p-4 text-white"
onClick={() => onUpgrade(plan.name)}
>
Upgrade
</button>
</div>
</div>
);

export default PaymentPage;
Loading