feat: improve login page style (#1119)

Signed-off-by: magicwind <2814461814@qq.com>

Signed-off-by: magicwind <2814461814@qq.com>
This commit is contained in:
leoshine
2022-09-12 00:01:18 +08:00
committed by GitHub
parent b6cdc46023
commit ed959bd8c7
5 changed files with 110 additions and 89 deletions

View File

@ -614,15 +614,15 @@ class SignupPage extends React.Component {
);
}
const formStyle = Setting.parseObject(application.formCss);
const formStyle = Setting.inIframe() ? null : Setting.parseObject(application.formCss);
return (
<div className="loginBackground" style={{backgroundImage: `url(${application.formBackgroundUrl})`}}>
<div className="loginBackground" style={{backgroundImage: Setting.inIframe() ? null : `url(${application.formBackgroundUrl})`}}>
<CustomGithubCorner />
&nbsp;
<Row>
<Col span={8} offset={application.formOffset === 0 ? 8 : application.formOffset} style={{display: "flex", justifyContent: "center"}} >
<div style={{marginTop: "10px", marginBottom: "30px", textAlign: "center", ...formStyle}}>
<Col span={8} offset={application.formOffset === 0 || Setting.inIframe() ? 8 : application.formOffset} style={{display: "flex", justifyContent: "center"}} >
<div style={{marginBottom: "10px", textAlign: "center", ...formStyle}}>
{
Setting.renderHelmet(application)
}