Update(MainMenu) : add buttons for the different pages

pull/11/head
Johan LACHENAL 1 year ago
parent 88371ca9a2
commit 28df688dad

@ -10,9 +10,38 @@ import SwiftUI
struct MainMenu: View {
var body: some View {
VStack {
Spacer()
Button("parties enregistrées"){}
.frame(maxWidth: .infinity)
.padding(EdgeInsets(top: 10, leading: 32, bottom: 10, trailing: 32))
.buttonStyle(.bordered)
.controlSize(.large)
.foregroundColor(.white)
.background(.black)
.buttonBorderShape(.roundedRectangle)
.clipShape(Capsule())
Spacer().frame(height: 50)
Button("paramètres"){}
.frame(maxWidth: .infinity)
.padding(EdgeInsets(top: 10, leading: 32, bottom: 10, trailing: 32))
.buttonStyle(.bordered)
.controlSize(.large)
.foregroundColor(.white)
.background(.black)
.clipShape(Capsule())
Spacer().frame(height: 50)
Button("jouer"){}
.frame(maxWidth: .infinity)
.padding(EdgeInsets(top: 10, leading: 32, bottom: 10, trailing: 32))
.buttonStyle(.bordered)
.controlSize(.large)
.foregroundColor(.white)
.background(.black)
.clipShape(Capsule())
Spacer()
}
.fixedSize(horizontal: false, vertical: true)
.padding(EdgeInsets(top: 10, leading: 32, bottom: 10, trailing: 32))
}
}

Loading…
Cancel
Save