|
|
|
@ -13,40 +13,14 @@ struct MainMenu: View {
|
|
|
|
|
NavigationView {
|
|
|
|
|
VStack {
|
|
|
|
|
Spacer()
|
|
|
|
|
NavigationLink("parties enregistrées"){
|
|
|
|
|
// ici mettre la vue sur les parties enregistrées à la place du texte n'hésite pas à tester sur la preview la navigation ça marche, faire pareil pour les autres
|
|
|
|
|
Text("Go to 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)
|
|
|
|
|
NavigationLink("paramètres"){
|
|
|
|
|
Text("Go to 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)
|
|
|
|
|
NavigationLink("jouer"){
|
|
|
|
|
Text("Go to jouer")
|
|
|
|
|
}
|
|
|
|
|
.frame(maxWidth: .infinity)
|
|
|
|
|
.padding(EdgeInsets(top: 10, leading: 32, bottom: 10, trailing: 32))
|
|
|
|
|
.buttonStyle(.bordered)
|
|
|
|
|
.controlSize(.large)
|
|
|
|
|
.foregroundColor(.white)
|
|
|
|
|
.background(.black)
|
|
|
|
|
.clipShape(Capsule())
|
|
|
|
|
MainMenuButton(title: "parties enregistrées")
|
|
|
|
|
{ Text("parties enregistrées page") }
|
|
|
|
|
Spacer().frame(height: 20)
|
|
|
|
|
MainMenuButton(title: "paramètres")
|
|
|
|
|
{ Text("paramètres page") }
|
|
|
|
|
Spacer().frame(height: 20)
|
|
|
|
|
MainMenuButton(title: "jouer")
|
|
|
|
|
{ Text("jeu page") }
|
|
|
|
|
Spacer()
|
|
|
|
|
}
|
|
|
|
|
.fixedSize(horizontal: false, vertical: true)
|
|
|
|
|