Skip to content

Commit 55364d3

Browse files
committed
[dashboard] Re-implement Plans page in new dashboard
1 parent df8b5cf commit 55364d3

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

components/dashboard/src/settings/Plans.tsx

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,44 @@
44
* See License-AGPL.txt in the project root for license information.
55
*/
66

7+
import SelectableCard from "../components/SelectableCard";
78
import { SettingsPage } from "./SettingsPage";
89

910
export default function Plans() {
1011
return <div>
1112
<SettingsPage title='Plans' subtitle='Manage account usage and billing.'>
1213
<h3>Plans</h3>
14+
<div className="flex space-x-2">
15+
<SelectableCard className="w-56 h-80" title="FREE" selected={true} onClick={() => {}}>
16+
<div className="mt-5 mb-5 flex flex-col items-center justify-center">
17+
<p className="text-3xl text-gray-500 font-bold">50</p>
18+
<p className="text-base text-gray-500 font-bold">hours</p>
19+
</div>
20+
<div className="flex-grow">
21+
<p>✓ Public Repositories</p>
22+
<p>✓ 4 Parallel Workspaces</p>
23+
<p>✓ 30 min Timeout</p>
24+
</div>
25+
<div>
26+
<p className="text-center mb-2 mt-4">FREE</p>
27+
<button className="w-full">Current Plan</button>
28+
</div>
29+
</SelectableCard>
30+
<SelectableCard className="w-56 h-80" title="PERSONAL" selected={false} onClick={() => {}}>
31+
<div className="mt-5 mb-5 flex flex-col items-center justify-center">
32+
<p className="text-3xl text-gray-500 font-bold">100</p>
33+
<p className="text-base text-gray-500 font-bold">hours</p>
34+
</div>
35+
<div className="flex-grow">
36+
<p>← Everything in Free</p>
37+
<p>✓ Private Repositories</p>
38+
</div>
39+
<div>
40+
<p className="text-center mb-2 mt-4">€8 per month</p>
41+
<button className="w-full border-green-600 text-green-600 bg-white hover:border-green-800 hover:text-green-800">Upgrade</button>
42+
</div>
43+
</SelectableCard>
44+
</div>
1345
</SettingsPage>
1446
</div>;
1547
}

0 commit comments

Comments
 (0)