@@ -12,9 +12,7 @@ import { ReactElement, useContext, useEffect } from "react";
12
12
import { getGitpodService } from "../service/service" ;
13
13
14
14
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" ;
18
16
19
17
export default function License ( ) {
20
18
const { license, setLicense } = useContext ( LicenseContext ) ;
@@ -50,42 +48,43 @@ export default function License() {
50
48
subtitle = "License associated with your Gitpod Installation"
51
49
>
52
50
< 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 >
55
53
< 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 >
57
55
{ features &&
58
56
features . map ( ( feat : string ) => (
59
57
< div className = "flex" >
60
58
{ featureList ?. includes ( feat ) ? (
61
- < Tick className = "h-4" / >
59
+ < span className = "pr-1" > ✓ </ span >
62
60
) : (
63
- < Cross className = "h-4 w-4 px-1" / >
61
+ < span className = "pr-1" > ✗ </ span >
64
62
) }
65
63
{ capitalizeInitials ( feat ) }
66
64
</ div >
67
65
) ) }
68
66
</ 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" >
71
69
< div > { msg } </ div >
72
70
< div className = "px-4" > { getLicenseValidIcon ( tick ) } </ div >
73
71
</ div >
74
72
< p className = "dark:text-gray-500" > Registered Users</ p >
75
73
< span className = "dark:text-gray-300 pt-1 text-lg" > { license ?. userCount || 0 } </ span >
76
74
< 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 >
78
76
< 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 >
89
88
</ Card >
90
89
</ div >
91
90
</ PageWithSubMenu >
@@ -170,7 +169,7 @@ function isGitpodIo() {
170
169
171
170
function Card ( p : { className ?: string ; children ?: React . ReactNode } ) {
172
171
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 || "" ) } >
174
173
< span > { p . children } </ span >
175
174
</ div >
176
175
) ;
0 commit comments