💄 Added frame for Information of user

This commit is contained in:
David Huh 2021-02-07 16:13:37 +01:00
parent 2211abd100
commit 3323dcac5a
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) + ": ")