Skip to content
This repository was archived by the owner on May 17, 2025. It is now read-only.
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
4 changes: 3 additions & 1 deletion ui/src/components/Home/HomePage.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { useState } from "react";
import FadeInOutCard from "../elements/FadeInOutCard";
import Login from "../Login";
import { PlanComparisonModal } from "../PlanComparisonModal";

export default function HomePage() {
const [showLogin, setShowLogin] = useState(false);
Expand Down Expand Up @@ -36,9 +37,10 @@ export default function HomePage() {
Gain real-time visibility into your IP assets with powerful
analytics and monitoring tools. Stay ahead with latest innovations.
</p>
<button onClick={() => setShowLogin(true)}>
<button className="me-3" onClick={() => setShowLogin(true)}>
Start with a free trial
</button>
<PlanComparisonModal></PlanComparisonModal>
<Login showLogin={showLogin} setShowLogin={setShowLogin} />
</div>
</div>
Expand Down
78 changes: 78 additions & 0 deletions ui/src/components/PlanComparisonModal.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
import React, { useState } from "react";
import { Modal, Button, Table } from "react-bootstrap";

export const PlanComparisonModal: React.FC = () => {
const [show, setShow] = useState(false);

const handleClose = () => setShow(false);
const handleShow = () => setShow(true);

return (
<>
<Button variant="primary" onClick={handleShow}>
View Plan Comparison
</Button>

<Modal show={show} onHide={handleClose} size="lg" centered>
<Modal.Header closeButton>
<Modal.Title>Free Trial vs Professional Version</Modal.Title>
</Modal.Header>
<Modal.Body>
<Table bordered hover responsive>
<thead className="table-success">
<tr>
<th></th>
<th>Free Trial</th>
<th>Professional Version</th>
</tr>
</thead>
<tbody>
<tr>
<th>Pricing</th>
<td>14-day free trial</td>
<td>$40 SGD/month</td>
</tr>
<tr>
<th>Search Limits</th>
<td>5/day</td>
<td>Unlimited</td>
</tr>
<tr>
<th>Real-time alerts</th>
<td>Weekly alert (up to 5 alerts)</td>
<td>
Daily or weekly, as per the user’s preference (Unlimited)
</td>
</tr>
<tr>
<th>Competitor tracking</th>
<td style={{ color: "red" }}>❌ No</td>
<td>Unlimited</td>
</tr>
<tr>
<th>
Dashboard updates <br />
<small>
(how often the analytics dashboard is refreshed)
</small>
</th>
<td>Daily</td>
<td>Daily</td>
</tr>
<tr>
<th>Viewing search history</th>
<td style={{ color: "red" }}>❌ No</td>
<td style={{ color: "green" }}>✅ Yes</td>
</tr>
</tbody>
</Table>
</Modal.Body>
<Modal.Footer>
<Button variant="secondary" onClick={handleClose}>
Close
</Button>
</Modal.Footer>
</Modal>
</>
);
};