Skip to content

Commit

Permalink
Merge pull request #13128 from SORMAS-Foundation/feature-13126-update…
Browse files Browse the repository at this point in the history
…-default-logos-on-login-page

#13126 - Update default logos on login page
  • Loading branch information
obinna-h-n authored Aug 5, 2024
2 parents 05ad8e0 + 1b9f8d9 commit a501b73
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions sormas-ui/src/main/java/de/symeda/sormas/ui/login/LoginScreen.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
public class LoginScreen extends CssLayout {

private static final String UTF_8 = "UTF-8";
private static final int LOGO_WIDTH = 250;
private static final int LOGO_WIDTH = 220;
private static final int CUSTOM_BRANDING_LOGO_WIDTH = 150;

private final Logger logger = LoggerFactory.getLogger(getClass());
Expand Down Expand Up @@ -267,7 +267,7 @@ private Layout buildLoginSidebarLayout() {
sidebarHeaderLayout.addComponent(customSidebarHeaderLabel);
} else {
Image img = new Image(null, new ThemeResource("img/sormas-logo-big-text.png"));
img.setWidth(320, Unit.PIXELS);
img.setWidth(200, Unit.PIXELS);
sidebarHeaderLayout.addComponent(img);
sidebarHeaderLayout.setComponentAlignment(img, Alignment.TOP_CENTER);

Expand All @@ -283,7 +283,7 @@ private Layout buildLoginSidebarLayout() {
+ I18nProperties.getCaption(Captions.LoginSidebar_outbreakResponse),
ContentMode.HTML);
missionText.setWidth(320, Unit.PIXELS);
CssStyles.style(missionText, CssStyles.H2, CssStyles.VSPACE_TOP_NONE, CssStyles.ALIGN_CENTER);
CssStyles.style(missionText, CssStyles.H3, CssStyles.VSPACE_TOP_NONE, CssStyles.ALIGN_CENTER);
sidebarHeaderLayout.addComponent(missionText);
sidebarHeaderLayout.setComponentAlignment(missionText, Alignment.TOP_CENTER);
}
Expand Down Expand Up @@ -311,13 +311,9 @@ private Layout buildLoginSidebarLayout() {
CssStyles.style(poweredByLayout, CssStyles.VSPACE_TOP_1);
}

Image imgHzi = new Image(null, new ThemeResource("img/hzi-logo.png"));
imgHzi.setWidth(isCustomBranding ? CUSTOM_BRANDING_LOGO_WIDTH : LOGO_WIDTH, Unit.PIXELS);
poweredByLayout.addComponent(imgHzi);

Image imgSymeda = new Image(null, new ThemeResource("img/vitagroup-logo.png"));
imgSymeda.setWidth(isCustomBranding ? CUSTOM_BRANDING_LOGO_WIDTH : LOGO_WIDTH, Unit.PIXELS);
poweredByLayout.addComponent(imgSymeda);
Image imgSormasFoundation = new Image(null, new ThemeResource("img/sormas-foundation-logo.png"));
imgSormasFoundation.setWidth(isCustomBranding ? CUSTOM_BRANDING_LOGO_WIDTH : LOGO_WIDTH, Unit.PIXELS);
poweredByLayout.addComponent(imgSormasFoundation);

if (!isCustomBranding) {
Image imgGiz = new Image(null, new ThemeResource("img/giz-logo.png"));
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a501b73

Please sign in to comment.