Skip to content
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
2 changes: 1 addition & 1 deletion web-app/src/screens/Console/License/License.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const License = () => {

return (
<Fragment>
<PageHeaderWrapper label="MinIO License and Support Plan" />
<PageHeaderWrapper label="Community and Enterprise Editions" />
<PageLayout>
<LicensePlans />
</PageLayout>
Expand Down
102 changes: 55 additions & 47 deletions web-app/src/screens/Console/License/LicensePlans.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,51 +23,49 @@ import CheckIcon from "./CheckIcon";

const LicensesInformation = styled.div(({ theme }) => ({
display: "grid",
gridTemplateColumns: "repeat(3, minmax(350px, 400px))",
gridTemplateColumns: "repeat(3, minmax(270px, 320px))",
justifyContent: "flex-start",
marginTop: 30,
marginLeft: 30,
"& > div": {
borderBottom: `${get(theme, "borderColor", "#EAEAEA")} 1px solid`,
padding: "25px 40px",
padding: "25px 30px",
justifyContent: "center",
"&.first": {
padding: 0,
},
"&.openSource": {
borderRight: `#002562 2px solid`,
borderLeft: `#002562 2px solid`,
position: "relative",
"&.first:before": {
content: "' '",
width: "calc(100% + 4px)",
height: 16,
display: "block",
backgroundColor: "#001F55",
position: "absolute",
top: -14,
left: -2,
border: `#002562 2px solid`,
borderBottom: 0,
borderRight: `${get(theme, "signalColors.main", "#002562")} 2px solid`,
borderLeft: `${get(theme, "signalColors.main", "#002562")} 2px solid`,
"&.first": {
borderTop: `${get(theme, "signalColors.main", "#002562")} 2px solid`,
borderTopLeftRadius: 12,
borderTopRightRadius: 12,
},
"&.last": {
paddingBottom: 30,
"&:after": {
content: "' '",
width: "calc(100% + 4px)",
height: 16,
display: "block",
position: "absolute",
bottom: -14,
left: -2,
border: `#002562 2px solid`,
borderTop: 0,
borderBottomLeftRadius: 12,
borderBottomRightRadius: 12,
},
borderBottom: `${get(theme, "signalColors.main", "#002562")} 2px solid`,
borderBottomLeftRadius: 12,
borderBottomRightRadius: 12,
},
},
"&.enterprise": {
borderRight: `#a0a0a0 2px solid`,
borderLeft: `#a0a0a0 2px solid`,
"&.first": {
borderTop: `#a0a0a0 2px solid`,
borderTopLeftRadius: 12,
borderTopRightRadius: 12,
},
"&.last": {
paddingBottom: 30,
borderBottom: `#a0a0a0 2px solid`,
borderBottomLeftRadius: 12,
borderBottomRightRadius: 12,
},
},
"&.feature-information": {
textAlign: "center",
textAlign: "center" as const,
},
"&.feature-label": {
paddingLeft: 5,
Expand All @@ -78,23 +76,27 @@ const LicensesInformation = styled.div(({ theme }) => ({
},
"& .planName": {
fontWeight: 600,
fontSize: 32,
marginBottom: 24,
textAlign: "center",
marginTop: 8,
fontSize: 18,
textAlign: "center" as const,
color: "#fff",
marginBottom: 30,
padding: "8px 0",
borderTopLeftRadius: 10,
borderTopRightRadius: 10,
"&.openSource": {
backgroundColor: `${get(theme, "signalColors.main", "#002562")}`,
},
"&.enterprise": {
backgroundColor: "#a0a0a0",
},
},
"& .planIcon": {
height: 100,
height: 90,
display: "flex",
alignItems: "flex-start",
justifyContent: "center",
"& svg": {
height: 80,
},
"&.commercial": {
"& svg": {
height: 70,
},
height: 50,
},
},
"& .planDescription": {
Expand All @@ -116,7 +118,7 @@ const LicensePlans = () => {
sx={{
marginTop: "12px",
width: "80%",
height: "55px",
height: "40px",
}}
onClick={(e) => {
e.preventDefault();
Expand Down Expand Up @@ -145,10 +147,16 @@ const LicensePlans = () => {
<LicensesInformation>
{[null, ...LICENSE_PLANS_INFORMATION].map((element, index) => {
return (
<Box className={`${index === 1 ? "openSource first" : ""}`}>
<Box
className={`first ${index === 1 ? "openSource" : index === 2 ? "enterprise" : ""}`}
>
{element !== null && (
<Box>
<Box className={"planName"}>{element.planName}</Box>
<Box
className={`planName ${index === 1 ? "openSource" : index === 2 ? "enterprise" : ""}`}
>
{element.planName}
</Box>
<Box
className={`planIcon ${
element.planType === "commercial" ? "commercial" : ""
Expand Down Expand Up @@ -178,7 +186,7 @@ const LicensePlans = () => {
feature.featurePlans.openSource || null,
)}
</Box>
<Box className={`feature-information ${lastItem}`}>
<Box className={`feature-information enterprise ${lastItem}`}>
{renderFeatureInformation(feature.featurePlans.eosPlus || null)}
</Box>
</Fragment>
Expand All @@ -187,8 +195,8 @@ const LicensePlans = () => {
{[null, ...LICENSE_PLANS_INFORMATION].map((element, index) => {
return (
<Box
className={`${
index === 1 ? "openSource last" : ""
className={`last ${
index === 1 ? "openSource" : index === 2 ? "enterprise" : ""
} noBorderBottom`}
sx={{
display: "flex",
Expand Down
4 changes: 2 additions & 2 deletions web-app/src/screens/Console/License/utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export const FEATURE_ITEMS: PlansFeatures[] = [
export const LICENSE_PLANS_INFORMATION: LicensePlanOption[] = [
{
planId: "openSource",
planName: "Community Edition",
planName: "Community",
planType: "open-source",
planIcon: (
<ApplicationLogo applicationName={"console"} subVariant={"AGPL"} />
Expand All @@ -132,7 +132,7 @@ export const LICENSE_PLANS_INFORMATION: LicensePlanOption[] = [
},
{
planId: "eosPlus",
planName: "Enterprise Edition",
planName: "Enterprise",
planType: "commercial",
planIcon: (
<ApplicationLogo applicationName={"aistor"} subVariant={"enterprise"} />
Expand Down
Loading