Skip to content

Commit

Permalink
EKUT image links to EKUT Landing page (#627)
Browse files Browse the repository at this point in the history
Co-authored-by: Sven F <[email protected]>
  • Loading branch information
Steffengreiner and sven1103 authored Jun 13, 2024
1 parent 712616e commit 30c293d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
@import "combobox.css";
@import "dialog.css";
@import "div.css";
@import "image.css";
@import "info.css";
@import "icon.css";
@import "main.css";
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
img.clickable {
cursor: pointer;
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package life.qbic.datamanager.views;

import com.vaadin.flow.component.UI;
import com.vaadin.flow.component.html.Div;
import com.vaadin.flow.component.html.Image;
import com.vaadin.flow.component.html.Span;
Expand All @@ -19,7 +20,11 @@ public class LandingPageTitleAndLogo extends Div {
private final static String UT_LOGO_PATH = "login/university-tuebingen-logo.svg";

public LandingPageTitleAndLogo() {
add(getUTLogo());
Image UTLogo = getUTLogo();
UTLogo.addClickListener(
event -> UI.getCurrent().getPage().open("https://uni-tuebingen.de/", "_blank"));
UTLogo.addClassName("clickable");
add(UTLogo);
addClassName("landing-page-title-and-logo");
add(title);
title.addClassName("title");
Expand Down

0 comments on commit 30c293d

Please sign in to comment.