Merge remote-tracking branch 'refs/remotes/origin/main'

This commit is contained in:
Patrick Müller 2021-02-07 16:14:05 +01:00 committed by Patrick Müller
commit 797046ddcc
3 changed files with 28 additions and 0 deletions

View File

@ -7,6 +7,7 @@
*/ */
"hey" = "Hey 👋🏻"; "hey" = "Hey 👋🏻";
"information" = "Deine Informationen";
"today" = "Heute"; "today" = "Heute";
"tomorrow" = "Morgen"; "tomorrow" = "Morgen";
"upcomingExams" = "Nächste Klausuren"; "upcomingExams" = "Nächste Klausuren";

View File

@ -7,6 +7,7 @@
*/ */
"hey" = "Hey 👋🏻"; "hey" = "Hey 👋🏻";
"information" = "Your Information";
"today" = "Today"; "today" = "Today";
"tomorrow" = "Tomorrow"; "tomorrow" = "Tomorrow";
"upcomingExams" = "Upcoming exams"; "upcomingExams" = "Upcoming exams";

View File

@ -37,6 +37,32 @@ struct HomeView: View {
) )
Spacer() Spacer()
} }
HStack {
Spacer()
VStack {
Text("information".localized(tableName: "HomeView", plural: false))
.font(.title3)
.frame(maxWidth: .infinity, alignment: .leading)
HStack {
VStack(alignment: .leading) {
Text("course".localized(tableName: "General", plural: false) + ": ")
Text("director".localized(tableName: "General", plural: false) + ": ")
}
VStack(alignment: .leading) {
Text(self.course)
.bold()
Text(self.director)
.bold()
}.frame(maxWidth: .infinity, alignment: .leading)
}
}
.padding()
.background(
RoundedRectangle(cornerRadius: 10)
.fill(Color.gray)
)
Spacer()
}
Spacer() Spacer()
HStack { HStack {
Text("course".localized(tableName: "General", plural: false) + ": ") Text("course".localized(tableName: "General", plural: false) + ": ")