diff --git a/DouShouQi_App/DouShouQi_App/Views/GameView.swift b/DouShouQi_App/DouShouQi_App/Views/GameView.swift index 408d411..63e42b9 100644 --- a/DouShouQi_App/DouShouQi_App/Views/GameView.swift +++ b/DouShouQi_App/DouShouQi_App/Views/GameView.swift @@ -2,7 +2,7 @@ // MainMenuView.swift // DouShouQi_App // -// Created by Rémi REGNAULT on 16/05/2024. +// Created by Nathan Verdier on 26/05/2024. // import SwiftUI @@ -10,45 +10,12 @@ import SwiftUI struct MainMenuView: View { var body: some View { VStack { - TitlePageFrame(Text: "DOU SHOU QI", ImageWidth: 200, ImageHeight: 200) - Spacer() - - VStack { - HStack{ - VStack(spacing: 25) { - MainMenuButton(text: "Play") - MainMenuButton(text: "Historique") - MainMenuButton(text: "Best Scores") - MainMenuButton(text: "Players") - } - Image(AppImages.SemiLion) - .resizable() - .aspectRatio(contentMode: .fit) - .frame(width: 200, height: 500) - } - - } - Spacer() - HStack { - Text("Copyright @") - .font(.headline) - .frame(alignment: .trailing) - - Text("Dou Shou Qi Team") - - Spacer() - - Text("2024") - .frame(alignment: .trailing) - } - .padding() // Ajout de padding pour éviter que le contenu ne touche la bordure - .background(Color.white) // Couleur de fond pour le HStack - .overlay( - Rectangle() - .stroke(Color.black, lineWidth: 1) // Couleur et épaisseur de la bordure - ) - + TopGameBoard() Spacer() + Image("gameBoard") + .resizable() + .scaledToFill() + .frame(width: 600, height: 600) } } }