mirror of
https://gitlab.kit.edu/uskyk/typicalc.git
synced 2024-11-09 10:50:42 +00:00
Fix pipeline
This commit is contained in:
parent
92c694b847
commit
815b1f0bd9
@ -38,3 +38,10 @@
|
||||
height: 500px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#startpage-footer {
|
||||
position: sticky;
|
||||
bottom: 1em;
|
||||
background-color: white;
|
||||
width: 100%;
|
||||
}
|
||||
|
@ -35,6 +35,7 @@ public class StartPageView extends VerticalLayout implements ControlPanelView, L
|
||||
private static final String CONTROL_PANEL_ID = "controlPanel";
|
||||
private static final String START_PAGE_ID = "startPage";
|
||||
private static final String SLIDE_SHOW_ID = "slideShow";
|
||||
private static final String FOOTER_ID = "startpage-footer";
|
||||
|
||||
private static final String DOT = ".";
|
||||
|
||||
@ -62,17 +63,12 @@ public class StartPageView extends VerticalLayout implements ControlPanelView, L
|
||||
line1.setId(H_LINE_ID);
|
||||
Hr line2 = new Hr();
|
||||
line2.setId(H_LINE_ID);
|
||||
Div textContainer = new Div();
|
||||
textContainer.setId(TEXT_CONTAINER_ID);
|
||||
introduction = new Span();
|
||||
|
||||
linkText = new Text(getTranslation("root.linkText"));
|
||||
link = new Anchor(getTranslation("root.link"), getTranslation("root.here"));
|
||||
link.setTarget("_blank"); // opens new tab
|
||||
Paragraph linkContainer = new Paragraph(linkText, link, new Text(DOT));
|
||||
linkContainer.setId(LINK_CONTAINER_ID);
|
||||
|
||||
textContainer.add(introduction, linkContainer);
|
||||
Div textContainer = createTextContainer();
|
||||
|
||||
slideProgress = new ProgressBar(slideShow.getStartPosition(), slideShow.getSlides().length - 1);
|
||||
slideProgress.setId(SLIDE_PROGRESS_ID);
|
||||
@ -82,13 +78,20 @@ public class StartPageView extends VerticalLayout implements ControlPanelView, L
|
||||
setId(START_PAGE_ID);
|
||||
|
||||
Footer footer = new Footer(controlPanel);
|
||||
footer.setWidthFull();
|
||||
footer.getStyle().set("position", "sticky");
|
||||
footer.getStyle().set("bottom", "1em");
|
||||
footer.getStyle().set("background-color", "white");
|
||||
footer.setId(FOOTER_ID);
|
||||
content.setWidthFull();
|
||||
add(content, footer);
|
||||
}
|
||||
|
||||
private Div createTextContainer() {
|
||||
Div textContainer = new Div();
|
||||
textContainer.setId(TEXT_CONTAINER_ID);
|
||||
link.setTarget("_blank"); // opens new tab
|
||||
Paragraph linkContainer = new Paragraph(linkText, link, new Text(DOT));
|
||||
linkContainer.setId(LINK_CONTAINER_ID);
|
||||
textContainer.add(introduction, linkContainer);
|
||||
return textContainer;
|
||||
}
|
||||
|
||||
private Carousel createScenarioCarousel() {
|
||||
Slide slide1 = new ImageSlide(getTranslation("root.image1"), "root.text1");
|
||||
|
Loading…
Reference in New Issue
Block a user