Skip to content

Commit

Permalink
fix(layout): 🐛 Background Image not overlaying correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Nudelsuppe42 committed Jul 17, 2023
1 parent c2eec47 commit dd7e8ed
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
14 changes: 5 additions & 9 deletions src/login/components/Layout.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {
Alert,
Anchor,
BackgroundImage,
Box,
Button,
Container,
Expand Down Expand Up @@ -187,15 +188,10 @@ export default function Layout(props: TemplateProps<KcContext, I18n>) {
</Box>
</Paper>

<Box
sx={{
flex: 1,
backgroundImage:
"url('https://cms.bte-germany.de/assets/0460d0cd-de39-4172-8fa3-b227e9eec111?format=webp&q=50')",
backgroundPosition: "center",
backgroundRepeat: "no-repeat",
}}
></Box>
<BackgroundImage
src="https://cms.bte-germany.de/assets/0460d0cd-de39-4172-8fa3-b227e9eec111?format=webp&q=50"
style={{ flex: 1 }}
></BackgroundImage>
</Box>
);
}
4 changes: 1 addition & 3 deletions src/login/kcContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const { kcContext } = getKcContext<{
- update-email
- update-user-profile
*/
mockPageId: "update-email.ftl",
mockPageId: "register.ftl",
mockData: [
{
pageId: "login-idp-link-email.ftl",
Expand Down Expand Up @@ -135,8 +135,6 @@ export const { kcContext } = getKcContext<{
displayNameHtml: "/keycloak_static/resources/img/logo.png",
displayName: "Build the Earth",
},
recaptchaRequired: true,
recaptchaSiteKey: "6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI",
},
],
});
Expand Down

0 comments on commit dd7e8ed

Please sign in to comment.