-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathAboutView.java
27 lines (23 loc) · 1.15 KB
/
AboutView.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package org.cleancode.journal.view;
import com.vaadin.flow.component.Composite;
import com.vaadin.flow.component.Html;
import com.vaadin.flow.component.orderedlayout.VerticalLayout;
import com.vaadin.flow.router.PageTitle;
import com.vaadin.flow.router.Route;
import org.cleancode.journal.component.speeddial.AddSpeedDial;
import org.cleancode.journal.domain.Profile;
import org.cleancode.journal.service.IAchievementService;
import org.cleancode.journal.service.IGradeService;
@Route(layout = MainView.class)
@PageTitle("Clean Code - About")
public class AboutView extends Composite<VerticalLayout> {
public AboutView(Profile profile, IGradeService gradeService, IAchievementService achievementService) {
var content = getContent();
content.add(new Html(getTranslation("about.info")));
content.add(new Html(getTranslation("about.info.technical")));
content.add(new Html(getTranslation("about.info.tanks")));
content.add(new Html(getTranslation("about.info.free")));
content.add(new Html(getTranslation("about.info.sourcecode")));
content.add(new AddSpeedDial(profile, gradeService, achievementService));
}
}