Improve signup page.

This commit is contained in:
Yang Luo
2021-04-28 15:54:50 +08:00
parent ef1995de4f
commit ee8f2a6046
5 changed files with 65 additions and 23 deletions

View File

@ -179,3 +179,21 @@ export function getProviderLogo(provider) {
<img width={30} height={30} src={url} alt={idp} />
)
}
export function renderLogo(application) {
if (application === null) {
return null;
}
if (application.homepageUrl !== "") {
return (
<a target="_blank" rel="noreferrer" href={application.homepageUrl}>
<img width={250} src={application.logo} alt={application.displayName} style={{marginBottom: '30px'}}/>
</a>
)
} else {
return (
<img width={250} src={application.logo} alt={application.displayName} style={{marginBottom: '30px'}}/>
);
}
}