A
A
A
this.state = {
username: '', password: ''
};
}
componentWillMount = () => { };
if (result?.token) {
this.props.userDetail(result);
this.props.history.push({
pathname: '/user-dashboard'
});
window.location.reload();
}
else {
// ToastService.error(result.data.error);
}
})
.catch((err) => {
console.error(err);
});
};
bgshapestyle = {
clipPath: "polygon(0 0, 100% 0, 100% 71%, 0% 100%)",
background: "#00A88A",
position: "absolute",
top: "0",
left: "0",
width: "100%",
height: "100%",
zIndex: "0",
padding: '0 0 1rem 0'
}
innerform = {
zIndex: "9",
position: "inherit",
padding: "40px 0"
}
loginbox = {
background: "#FFFFFF",
boxShadow: "6px 4px 21px rgba(0, 0, 0, 0.25)",
borderRadius: "20px",
/* From https://css.glass */
background: 'rgb(255 255 255 / 83%)',
borderRadius: '16px',
boxShadow: '0 4px 30px rgba(0, 0, 0, 0.1)',
backdropFilter: 'blur(10.4px)',
webkitBackdropFilter: 'blur(10.4px)',
border: '1px solid rgba(255, 255, 255, 0.28)',
}
normalhd = {
fontStyle: "normal",
fontWeight: "700",
fontSize: "22px",
lineHeight: "28px",
color: "rgb(89 89 89)",
margin: '0'
}
colorhd = {
fontStyle: "normal",
fontWeight: "800",
lineHeight: "28px",
background: "linear-gradient(90deg, #F19755 5.81%, #00A88A 100%)",
backgroundClip: "text",
margin: '0',
textFillColor: 'transparent',
webkitBackgroundClip: "text",
webkitTextFillColor: "transparent",
}
benefitGrid = {
display: 'grid',
gridTemplateColumns: '1fr 1fr',
gridTemplateRows: '1fr 1fr',
columnGap: '1rem',
rowGap: '1rem',
marginTop: '1rem',
flexGrow: '1'
}
gridcell = {
border: '1px solid gray',
borderRadius: '10px',
backgroundColor: 'white',
boxShadow: "rgb(0 133 109) -10px -10px 15px, rgb(0 0 0 / 15%) 10px 10px 15px",
/* From https://css.glass */
background: 'rgba(255, 255, 255, 0.33)',
borderRadius: '16px',
boxShadow: '0 4px 30px rgba(0, 0, 0, 0.1)',
backdropFilter: 'blur(10.4px)',
webkitBackdropFilter: 'blur(10.4px)',
border: '1px solid rgba(255, 255, 255, 0.28)',
display: 'flex',
flexDirection: 'column',
alignItems: 'center',
rowGap: '8px',
justifyContent: 'center',
padding: '1rem'
render() {
const { username, password } = this.state;
return (
<div style={{ position: "relative" }}>
{/* below is the bg shape */}
<div className="bgshape" style={this.bgshapestyle}></div>
<div className="container" style={this.innerform}>
<form className="formRegistration row" ref={c => { this.form = c; }}
style={{ minHeight: "40vh", zIndex: '9' }}>
{/* below is the left section containing the heading and paragraphs */}
<div className="col-sm-7">
<section style={{ width: '100%', padding: '1rem', display: 'flex',
flexDirection: 'column', height: '100%' }}>
<h2 style={{ color: 'white', fontSize: '40px', fontWeight:
'700' }}>Ayush Global Portal
</h2>
<p style={{ color: 'white', fontSize: "14px", textAlign:
'justify' }}>Lorem ipsum dolor, sit amet consectetur adipisicing elit. Cum, beatae
provident, quod suscipit a voluptatum vel odit, eligendi dolores voluptate deleniti
ab ullam perspiciatis! Itaque voluptatum eveniet error dolore illo!</p>
<h3 style={{ fontSize: '30px', fontWeight: '700', color: '#006755',
marginTop: '3rem' }}>Benefits of registering with us</h3>
{/* our benefits grid below */}
<div style={this.benefitGrid}>
<div style={this.gridcell}>
<img
src={require("../public/treesvg.svg")}
alt="Ayush grid logo"
style={{ flexGrow: '1', width: "80px" }}
/>
<p style={{ color: '#004337', fontSize: '13px', textAlign:
'center' }}>Lorem ipsum, dolor sit amet consectetur adipisicing elit. A architecto
voluptates blanditiis officia dolores dignissimos ratione vero </p>
</div>
<div style={this.gridcell}></div>
<div style={this.gridcell}></div>
<div style={this.gridcell}></div>
</div>
</section>
</div>
{/* below is the right column containing the registration form */}
<div className="col-sm-5">
</label>
</div>
</div>
<p style={{ padding: '0 0.5rem' }}>By logging in you agree to
the <a style={{ color: '#00a78a', fontWeight: '500' }} href="#">Usage Terms and
Conditions</a> of Ayush global Portal</p>
</div>
</div>
);
}
}