Updated design of License page (#3540)

- This change doesn't include the new logo for Object Store, this needs to be addressed on MDS

Signed-off-by: Benjamin Perez <benjamin@bexsoft.net>
This commit is contained in:
Alex
2025-05-16 12:04:38 -06:00
committed by GitHub
parent 7871f6bc27
commit 0398c69c7f
3 changed files with 58 additions and 50 deletions

View File

@@ -30,7 +30,7 @@ const License = () => {
return ( return (
<Fragment> <Fragment>
<PageHeaderWrapper label="MinIO License and Support Plan" /> <PageHeaderWrapper label="Community and Enterprise Editions" />
<PageLayout> <PageLayout>
<LicensePlans /> <LicensePlans />
</PageLayout> </PageLayout>

View File

@@ -23,51 +23,49 @@ import CheckIcon from "./CheckIcon";
const LicensesInformation = styled.div(({ theme }) => ({ const LicensesInformation = styled.div(({ theme }) => ({
display: "grid", display: "grid",
gridTemplateColumns: "repeat(3, minmax(350px, 400px))", gridTemplateColumns: "repeat(3, minmax(270px, 320px))",
justifyContent: "flex-start", justifyContent: "flex-start",
marginTop: 30, marginTop: 30,
marginLeft: 30, marginLeft: 30,
"& > div": { "& > div": {
borderBottom: `${get(theme, "borderColor", "#EAEAEA")} 1px solid`, borderBottom: `${get(theme, "borderColor", "#EAEAEA")} 1px solid`,
padding: "25px 40px", padding: "25px 30px",
justifyContent: "center", justifyContent: "center",
"&.first": {
padding: 0,
},
"&.openSource": { "&.openSource": {
borderRight: `#002562 2px solid`, borderRight: `${get(theme, "signalColors.main", "#002562")} 2px solid`,
borderLeft: `#002562 2px solid`, borderLeft: `${get(theme, "signalColors.main", "#002562")} 2px solid`,
position: "relative", "&.first": {
"&.first:before": { borderTop: `${get(theme, "signalColors.main", "#002562")} 2px solid`,
content: "' '",
width: "calc(100% + 4px)",
height: 16,
display: "block",
backgroundColor: "#001F55",
position: "absolute",
top: -14,
left: -2,
border: `#002562 2px solid`,
borderBottom: 0,
borderTopLeftRadius: 12, borderTopLeftRadius: 12,
borderTopRightRadius: 12, borderTopRightRadius: 12,
}, },
"&.last": { "&.last": {
paddingBottom: 30, paddingBottom: 30,
"&:after": { borderBottom: `${get(theme, "signalColors.main", "#002562")} 2px solid`,
content: "' '", borderBottomLeftRadius: 12,
width: "calc(100% + 4px)", borderBottomRightRadius: 12,
height: 16, },
display: "block", },
position: "absolute", "&.enterprise": {
bottom: -14, borderRight: `#a0a0a0 2px solid`,
left: -2, borderLeft: `#a0a0a0 2px solid`,
border: `#002562 2px solid`, "&.first": {
borderTop: 0, borderTop: `#a0a0a0 2px solid`,
borderBottomLeftRadius: 12, borderTopLeftRadius: 12,
borderBottomRightRadius: 12, borderTopRightRadius: 12,
}, },
"&.last": {
paddingBottom: 30,
borderBottom: `#a0a0a0 2px solid`,
borderBottomLeftRadius: 12,
borderBottomRightRadius: 12,
}, },
}, },
"&.feature-information": { "&.feature-information": {
textAlign: "center", textAlign: "center" as const,
}, },
"&.feature-label": { "&.feature-label": {
paddingLeft: 5, paddingLeft: 5,
@@ -78,23 +76,27 @@ const LicensesInformation = styled.div(({ theme }) => ({
}, },
"& .planName": { "& .planName": {
fontWeight: 600, fontWeight: 600,
fontSize: 32, fontSize: 18,
marginBottom: 24, textAlign: "center" as const,
textAlign: "center", color: "#fff",
marginTop: 8, marginBottom: 30,
padding: "8px 0",
borderTopLeftRadius: 10,
borderTopRightRadius: 10,
"&.openSource": {
backgroundColor: `${get(theme, "signalColors.main", "#002562")}`,
},
"&.enterprise": {
backgroundColor: "#a0a0a0",
},
}, },
"& .planIcon": { "& .planIcon": {
height: 100, height: 90,
display: "flex", display: "flex",
alignItems: "flex-start", alignItems: "flex-start",
justifyContent: "center", justifyContent: "center",
"& svg": { "& svg": {
height: 80, height: 50,
},
"&.commercial": {
"& svg": {
height: 70,
},
}, },
}, },
"& .planDescription": { "& .planDescription": {
@@ -116,7 +118,7 @@ const LicensePlans = () => {
sx={{ sx={{
marginTop: "12px", marginTop: "12px",
width: "80%", width: "80%",
height: "55px", height: "40px",
}} }}
onClick={(e) => { onClick={(e) => {
e.preventDefault(); e.preventDefault();
@@ -145,10 +147,16 @@ const LicensePlans = () => {
<LicensesInformation> <LicensesInformation>
{[null, ...LICENSE_PLANS_INFORMATION].map((element, index) => { {[null, ...LICENSE_PLANS_INFORMATION].map((element, index) => {
return ( return (
<Box className={`${index === 1 ? "openSource first" : ""}`}> <Box
className={`first ${index === 1 ? "openSource" : index === 2 ? "enterprise" : ""}`}
>
{element !== null && ( {element !== null && (
<Box> <Box>
<Box className={"planName"}>{element.planName}</Box> <Box
className={`planName ${index === 1 ? "openSource" : index === 2 ? "enterprise" : ""}`}
>
{element.planName}
</Box>
<Box <Box
className={`planIcon ${ className={`planIcon ${
element.planType === "commercial" ? "commercial" : "" element.planType === "commercial" ? "commercial" : ""
@@ -178,7 +186,7 @@ const LicensePlans = () => {
feature.featurePlans.openSource || null, feature.featurePlans.openSource || null,
)} )}
</Box> </Box>
<Box className={`feature-information ${lastItem}`}> <Box className={`feature-information enterprise ${lastItem}`}>
{renderFeatureInformation(feature.featurePlans.eosPlus || null)} {renderFeatureInformation(feature.featurePlans.eosPlus || null)}
</Box> </Box>
</Fragment> </Fragment>
@@ -187,8 +195,8 @@ const LicensePlans = () => {
{[null, ...LICENSE_PLANS_INFORMATION].map((element, index) => { {[null, ...LICENSE_PLANS_INFORMATION].map((element, index) => {
return ( return (
<Box <Box
className={`${ className={`last ${
index === 1 ? "openSource last" : "" index === 1 ? "openSource" : index === 2 ? "enterprise" : ""
} noBorderBottom`} } noBorderBottom`}
sx={{ sx={{
display: "flex", display: "flex",

View File

@@ -123,7 +123,7 @@ export const FEATURE_ITEMS: PlansFeatures[] = [
export const LICENSE_PLANS_INFORMATION: LicensePlanOption[] = [ export const LICENSE_PLANS_INFORMATION: LicensePlanOption[] = [
{ {
planId: "openSource", planId: "openSource",
planName: "Community Edition", planName: "Community",
planType: "open-source", planType: "open-source",
planIcon: ( planIcon: (
<ApplicationLogo applicationName={"console"} subVariant={"AGPL"} /> <ApplicationLogo applicationName={"console"} subVariant={"AGPL"} />
@@ -132,7 +132,7 @@ export const LICENSE_PLANS_INFORMATION: LicensePlanOption[] = [
}, },
{ {
planId: "eosPlus", planId: "eosPlus",
planName: "Enterprise Edition", planName: "Enterprise",
planType: "commercial", planType: "commercial",
planIcon: ( planIcon: (
<ApplicationLogo applicationName={"aistor"} subVariant={"enterprise"} /> <ApplicationLogo applicationName={"aistor"} subVariant={"enterprise"} />