feat: custom login form and background (#1107)

* feat: custom login form and background

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

* feat: costom login form border

* chore: update i18

* Update ApplicationEditPage.js

* Update LoginPage.js

* Update SignupPage.js

* Update LoginPage.js

* Update ApplicationEditPage.js

Signed-off-by: magicwind <2814461814@qq.com>
Co-authored-by: Gucheng <85475922+nomeguy@users.noreply.github.com>
This commit is contained in:
leoshine
2022-09-10 00:56:37 +08:00
committed by GitHub
parent 94b6eb803d
commit 1edb91b3a3
14 changed files with 172 additions and 30 deletions

View File

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