|
@ -4,6 +4,7 @@ import com.vaadin.flow.component.applayout.AppLayout; |
|
|
import com.vaadin.flow.component.applayout.DrawerToggle; |
|
|
import com.vaadin.flow.component.applayout.DrawerToggle; |
|
|
import com.vaadin.flow.component.button.Button; |
|
|
import com.vaadin.flow.component.button.Button; |
|
|
import com.vaadin.flow.component.button.ButtonVariant; |
|
|
import com.vaadin.flow.component.button.ButtonVariant; |
|
|
|
|
|
import com.vaadin.flow.component.dependency.CssImport; |
|
|
import com.vaadin.flow.component.html.Footer; |
|
|
import com.vaadin.flow.component.html.Footer; |
|
|
import com.vaadin.flow.component.html.H2; |
|
|
import com.vaadin.flow.component.html.H2; |
|
|
import com.vaadin.flow.component.html.Image; |
|
|
import com.vaadin.flow.component.html.Image; |
|
@ -25,6 +26,7 @@ import org.vaadin.lineawesome.LineAwesomeIcon; |
|
|
/** |
|
|
/** |
|
|
* The main view is a top-level placeholder for other views. |
|
|
* The main view is a top-level placeholder for other views. |
|
|
*/ |
|
|
*/ |
|
|
|
|
|
@CssImport("./themes/soportet.iv1.2/styles.css") |
|
|
public class MainLayout extends AppLayout { |
|
|
public class MainLayout extends AppLayout { |
|
|
|
|
|
|
|
|
private H2 viewTitle; |
|
|
private H2 viewTitle; |
|
@ -33,6 +35,10 @@ public class MainLayout extends AppLayout { |
|
|
public MainLayout(SecurityService securityService) { |
|
|
public MainLayout(SecurityService securityService) { |
|
|
this.securityService = securityService; |
|
|
this.securityService = securityService; |
|
|
this.getStyle().set("background-image", "url('images/bckgndNvo.png')"); |
|
|
this.getStyle().set("background-image", "url('images/bckgndNvo.png')"); |
|
|
|
|
|
this.getStyle().set("background-size", "cover"); |
|
|
|
|
|
this.getStyle().set("background-repeat", "no-repeat"); |
|
|
|
|
|
this.getStyle().set("background-position", "center"); |
|
|
|
|
|
this.getStyle().set("background-attachment", "fixed"); |
|
|
setPrimarySection(Section.DRAWER); |
|
|
setPrimarySection(Section.DRAWER); |
|
|
addDrawerContent(); |
|
|
addDrawerContent(); |
|
|
addHeaderContent(); |
|
|
addHeaderContent(); |
|
|