mirror of
https://github.com/Mueller-Patrick/DHBW-Service-App.git
synced 2024-11-01 00:43:58 +00:00
💄 Changed UI/UX a bit
This commit is contained in:
parent
dba2233312
commit
2211abd100
|
@ -6,6 +6,7 @@
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
"hey" = "Hey 👋🏻";
|
||||||
"today" = "Heute";
|
"today" = "Heute";
|
||||||
"tomorrow" = "Morgen";
|
"tomorrow" = "Morgen";
|
||||||
"upcomingExams" = "Nächste Klausuren";
|
"upcomingExams" = "Nächste Klausuren";
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
"hey" = "Hey 👋🏻";
|
||||||
"today" = "Today";
|
"today" = "Today";
|
||||||
"tomorrow" = "Tomorrow";
|
"tomorrow" = "Tomorrow";
|
||||||
"upcomingExams" = "Upcoming exams";
|
"upcomingExams" = "Upcoming exams";
|
||||||
|
|
|
@ -21,9 +21,23 @@ struct HomeView: View {
|
||||||
NavigationView {
|
NavigationView {
|
||||||
VStack {
|
VStack {
|
||||||
HStack {
|
HStack {
|
||||||
Text("name".localized(tableName: "General", plural: false) + ": ")
|
Spacer()
|
||||||
Text(self.name)
|
VStack {
|
||||||
|
Text("hey".localized(tableName: "HomeView", plural: false))
|
||||||
|
.font(.title3)
|
||||||
|
.frame(maxWidth: .infinity, alignment: .leading)
|
||||||
|
Text(self.name)
|
||||||
|
.bold()
|
||||||
|
.frame(maxWidth: .infinity, alignment: .leading)
|
||||||
|
}
|
||||||
|
.padding()
|
||||||
|
.background(
|
||||||
|
RoundedRectangle(cornerRadius: 10)
|
||||||
|
.fill(Color.gray)
|
||||||
|
)
|
||||||
|
Spacer()
|
||||||
}
|
}
|
||||||
|
Spacer()
|
||||||
HStack {
|
HStack {
|
||||||
Text("course".localized(tableName: "General", plural: false) + ": ")
|
Text("course".localized(tableName: "General", plural: false) + ": ")
|
||||||
Text(self.course)
|
Text(self.course)
|
||||||
|
@ -43,7 +57,7 @@ struct HomeView: View {
|
||||||
|
|
||||||
VStack {
|
VStack {
|
||||||
Text("today".localized(tableName: "HomeView"))
|
Text("today".localized(tableName: "HomeView"))
|
||||||
.font(/*@START_MENU_TOKEN@*/.title/*@END_MENU_TOKEN@*/)
|
.font(.title)
|
||||||
.frame(maxWidth: .infinity, alignment: .leading)
|
.frame(maxWidth: .infinity, alignment: .leading)
|
||||||
VStack {
|
VStack {
|
||||||
if(!todaysEvents.isEmpty){
|
if(!todaysEvents.isEmpty){
|
||||||
|
@ -65,7 +79,7 @@ struct HomeView: View {
|
||||||
|
|
||||||
VStack {
|
VStack {
|
||||||
Text("tomorrow".localized(tableName: "HomeView"))
|
Text("tomorrow".localized(tableName: "HomeView"))
|
||||||
.font(/*@START_MENU_TOKEN@*/.title/*@END_MENU_TOKEN@*/)
|
.font(.title)
|
||||||
.frame(maxWidth: .infinity, alignment: .leading)
|
.frame(maxWidth: .infinity, alignment: .leading)
|
||||||
VStack {
|
VStack {
|
||||||
if(!tomorrowsEvents.isEmpty){
|
if(!tomorrowsEvents.isEmpty){
|
||||||
|
@ -120,6 +134,7 @@ struct HomeView: View {
|
||||||
|
|
||||||
Spacer()
|
Spacer()
|
||||||
}
|
}
|
||||||
|
Spacer()
|
||||||
}
|
}
|
||||||
.navigationBarTitle(Text("Home"))
|
.navigationBarTitle(Text("Home"))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user