Skip to content

Commit 209c403

Browse files
committed
style fixes
1 parent b5401bf commit 209c403

File tree

3 files changed

+21
-25
lines changed

3 files changed

+21
-25
lines changed

components/dashboard/src/admin/License.tsx

Lines changed: 21 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ import { ReactElement, useContext, useEffect } from "react";
1212
import { getGitpodService } from "../service/service";
1313

1414
import { ReactComponent as Alert } from "../images/exclamation.svg";
15-
import { ReactComponent as Success } from "../images/tick.svg";
16-
import { ReactComponent as Tick } from "../images/check.svg";
17-
import { ReactComponent as Cross } from "../images/x.svg";
15+
import { ReactComponent as Success } from "../images/check-circle.svg";
1816

1917
export default function License() {
2018
const { license, setLicense } = useContext(LicenseContext);
@@ -50,42 +48,43 @@ export default function License() {
5048
subtitle="License associated with your Gitpod Installation"
5149
>
5250
<div className="flex flex-row space-x-4">
53-
<Card className="bg-gray-800 dark:bg-white text-white dark:text-gray-400">
54-
<p className="text-white dark:text-black font-bold pt-4 text-sm"> {licenseLevel}</p>
51+
<Card className="bg-gray-800 dark:bg-gray-100 text-gray-300 dark:text-gray-400">
52+
<p className="text-white dark:text-black font-bold pt-4"> {licenseLevel}</p>
5553
<p className="dark:text-gray-500">{paid}</p>
56-
<p className="text-gray-400 pt-4 pb-2">Available features:</p>
54+
<div className="pt-4">Available features:</div>
5755
{features &&
5856
features.map((feat: string) => (
5957
<div className="flex">
6058
{featureList?.includes(feat) ? (
61-
<Tick className="h-4" />
59+
<span className="pr-1">&#10003;</span>
6260
) : (
63-
<Cross className="h-4 w-4 px-1" />
61+
<span className="pr-1">&#10007;</span>
6462
)}
6563
{capitalizeInitials(feat)}
6664
</div>
6765
))}
6866
</Card>
69-
<Card className="bg-gray-200 dark:bg-gray-900 text-gray-600 dark:text-gray-600">
70-
<div className="text-gray-600 dark:text-gray-200 text-sm py-4 flex-row flex items-center">
67+
<Card className="bg-gray-100 dark:bg-gray-900 text-gray-600 dark:text-gray-600 relative">
68+
<div className="text-gray-600 dark:text-gray-200 py-4 flex-row flex items-center">
7169
<div>{msg}</div>
7270
<div className="px-4">{getLicenseValidIcon(tick)}</div>
7371
</div>
7472
<p className="dark:text-gray-500">Registered Users</p>
7573
<span className="dark:text-gray-300 pt-1 text-lg">{license?.userCount || 0}</span>
7674
<span className="dark:text-gray-500 text-gray-400 pt-1 text-lg"> / {userLimit} </span>
77-
<p className="dark:text-gray-500 pt-2 ">License Type</p>
75+
<p className="dark:text-gray-500 pt-2">License Type</p>
7876
<h4 className="dark:text-gray-300 pt-1 text-lg">{capitalizeInitials(license?.type || "")}</h4>
79-
<button
80-
type="button"
81-
onClick={(e) => {
82-
e.preventDefault();
83-
window.location.href = "https://www.gitpod.io/self-hosted";
84-
}}
85-
className="ml-2 float-right"
86-
>
87-
{license?.plan == "prod" ? "Contact Sales" : "Request License"}
88-
</button>
77+
<div className="flex justify-end absolute bottom-4 right-4">
78+
<button
79+
type="button"
80+
onClick={(e) => {
81+
e.preventDefault();
82+
window.location.href = "https://www.gitpod.io/self-hosted";
83+
}}
84+
>
85+
Compare Plans
86+
</button>
87+
</div>
8988
</Card>
9089
</div>
9190
</PageWithSubMenu>
@@ -170,7 +169,7 @@ function isGitpodIo() {
170169

171170
function Card(p: { className?: string; children?: React.ReactNode }) {
172171
return (
173-
<div className={"flex rounded-xl font-semibold text-xs w-72 h-64 px-4 " + (p.className || "")}>
172+
<div className={"flex rounded-xl font-semibold text-sm w-72 h-64 px-4 " + (p.className || "")}>
174173
<span>{p.children}</span>
175174
</div>
176175
);

components/dashboard/src/images/check.svg

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)