Skip to content

Commit 7174892

Browse files
Alevskdvaldivia
andauthored
New design for subscription page (#568)
Co-authored-by: Daniel Valdivia <hola@danielvaldivia.com>
1 parent 3262212 commit 7174892

File tree

4 files changed

+492
-246
lines changed

4 files changed

+492
-246
lines changed

portal-ui/public/agpl.png

88.3 KB
Loading

portal-ui/src/screens/Console/License/ActivationModal.tsx

Lines changed: 57 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,18 @@
1717
import React, { useState } from "react";
1818
import { connect } from "react-redux";
1919
import { createStyles, Theme, withStyles } from "@material-ui/core/styles";
20-
import { LinearProgress } from "@material-ui/core";
20+
import { LinearProgress, TextField } from "@material-ui/core";
2121
import Grid from "@material-ui/core/Grid";
2222
import Typography from "@material-ui/core/Typography";
23-
import TextField from "@material-ui/core/TextField";
2423
import Button from "@material-ui/core/Button";
2524
import { containerForHeader } from "../Common/FormComponents/common/styleLibrary";
2625
import { SubscriptionActivateRequest } from "../Buckets/types";
2726
import { setModalErrorSnackMessage } from "../../../actions";
2827
import ModalWrapper from "../Common/ModalWrapper/ModalWrapper";
2928
import InputBoxWrapper from "../Common/FormComponents/InputBoxWrapper/InputBoxWrapper";
3029
import api from "../../../common/api";
30+
import PersonOutlineOutlinedIcon from "@material-ui/icons/PersonOutlineOutlined";
31+
import LockOutlinedIcon from "@material-ui/icons/LockOutlined";
3132

3233
const styles = (theme: Theme) =>
3334
createStyles({
@@ -37,16 +38,32 @@ const styles = (theme: Theme) =>
3738
subnetLicenseKey: {
3839
padding: "10px 10px 10px 0px",
3940
borderRight: "1px solid rgba(0, 0, 0, 0.12)",
41+
opacity: 0.5,
42+
"&:hover": { opacity: 1 },
4043
},
4144
subnetLoginForm: {
4245
padding: "10px 0px 10px 10px",
46+
opacity: 0.5,
47+
"&:hover": { opacity: 1 },
4348
},
44-
licenseKeyField: {
45-
marginBottom: 20,
46-
},
49+
licenseKeyField: {},
4750
pageTitle: {
4851
marginBottom: 20,
4952
},
53+
button: {
54+
textTransform: "none",
55+
fontSize: 15,
56+
fontWeight: 700,
57+
background:
58+
"transparent linear-gradient(90deg, #073052 0%, #081c42 100%) 0% 0% no-repeat padding-box",
59+
color: "#fff",
60+
},
61+
buttonSignup: {
62+
textTransform: "none",
63+
fontSize: 15,
64+
fontWeight: 700,
65+
marginLeft: 15,
66+
},
5067
...containerForHeader(theme.spacing(4)),
5168
});
5269

@@ -110,28 +127,32 @@ const ActivationModal = ({
110127
aria-describedby="alert-dialog-description"
111128
>
112129
<Grid container alignItems="center" item xs={12}>
130+
<Grid item xs={12}>
131+
<Typography component="h2" variant="h6" className={classes.pageTitle}>
132+
Activate SUBNET License
133+
</Typography>
134+
</Grid>
113135
<Grid item className={classes.subnetLicenseKey} xs={6}>
114136
<Grid item xs={12}>
115-
<Typography
116-
component="h2"
117-
variant="h6"
118-
className={classes.pageTitle}
119-
>
120-
License Key
137+
<Typography variant="caption" display="block" gutterBottom>
138+
Enter your license key here
121139
</Typography>
122140
</Grid>
123141
<TextField
124142
id="license-key"
125-
placeholder="Enter your license key here"
143+
placeholder=""
126144
multiline
127-
rows={6}
145+
rows={3}
128146
value={license}
129147
onChange={(event: React.ChangeEvent<HTMLInputElement>) =>
130148
setLicense(event.target.value)
131149
}
132150
fullWidth
133151
className={classes.licenseKeyField}
152+
variant="outlined"
134153
/>
154+
<br />
155+
<br />
135156
<Button
136157
variant="contained"
137158
color="primary"
@@ -142,52 +163,62 @@ const ActivationModal = ({
142163
</Button>
143164
</Grid>
144165
<Grid item className={classes.subnetLoginForm} xs={6}>
145-
<Grid item xs={12}>
146-
<Typography
147-
component="h2"
148-
variant="h6"
149-
className={classes.pageTitle}
150-
>
151-
Subscription Network (SUBNET)
152-
</Typography>
153-
</Grid>
154166
<Grid container>
155167
<Grid item xs={12}>
156168
<InputBoxWrapper
169+
overlayIcon={<PersonOutlineOutlinedIcon />}
157170
id="subnet-email"
158171
name="subnet-email"
159172
onChange={(event: React.ChangeEvent<HTMLInputElement>) => {
160173
setSubnetEmail(event.target.value);
161174
}}
162-
label="Email"
175+
placeholder="email"
176+
label=""
163177
type="text"
164178
value={subnetEmail}
165179
/>
166180
</Grid>
167181
<Grid item xs={12}>
168182
<InputBoxWrapper
183+
overlayIcon={<LockOutlinedIcon />}
169184
id="subnet-password"
170185
name="subnet-password"
171186
onChange={(event: React.ChangeEvent<HTMLInputElement>) => {
172187
setSubnetPassword(event.target.value);
173188
}}
174-
label="Password"
189+
placeholder="password"
190+
label=""
175191
type="password"
176192
value={subnetPassword}
177193
/>
178194
</Grid>
179195
<Grid item xs={12}>
180196
<Button
181-
variant="contained"
197+
className={classes.button}
182198
color="primary"
183199
onClick={() => activateProduct()}
184200
disabled={
185201
loading ||
186202
subnetEmail.trim().length === 0 ||
187203
subnetPassword.trim().length === 0
188204
}
205+
variant="contained"
206+
>
207+
Activate
208+
</Button>
209+
<Button
210+
className={classes.buttonSignup}
211+
color="primary"
212+
target="_blank"
213+
rel="noopener noreferrer"
214+
href="#"
215+
onClick={(e) => {
216+
e.preventDefault();
217+
window.open("https://min.io/pricing", "_blank");
218+
}}
219+
variant="outlined"
189220
>
190-
Login
221+
Sign Up
191222
</Button>
192223
</Grid>
193224
</Grid>

0 commit comments

Comments
 (0)