add menu button composant 🚧; main menu page is over :sparkles; add assets 🍱 #4
Merged
rayhan.hassou
merged 1 commits from dev_views_MainPage
into dev_views
11 months ago
@ -0,0 +1,28 @@
|
||||
{
|
||||
"colors" : [
|
||||
{
|
||||
"color" : {
|
||||
"platform" : "universal",
|
||||
"reference" : "systemRedColor"
|
||||
},
|
||||
"idiom" : "universal"
|
||||
},
|
||||
{
|
||||
"appearances" : [
|
||||
{
|
||||
"appearance" : "luminosity",
|
||||
"value" : "dark"
|
||||
}
|
||||
],
|
||||
"color" : {
|
||||
"platform" : "tvos",
|
||||
"reference" : "systemRedColor"
|
||||
},
|
||||
"idiom" : "universal"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
}
|
||||
}
|
@ -0,0 +1,38 @@
|
||||
{
|
||||
"colors" : [
|
||||
{
|
||||
"color" : {
|
||||
"color-space" : "srgb",
|
||||
"components" : {
|
||||
"alpha" : "1.000",
|
||||
"blue" : "1.000",
|
||||
"green" : "1.000",
|
||||
"red" : "1.000"
|
||||
}
|
||||
},
|
||||
"idiom" : "universal"
|
||||
},
|
||||
{
|
||||
"appearances" : [
|
||||
{
|
||||
"appearance" : "luminosity",
|
||||
"value" : "dark"
|
||||
}
|
||||
],
|
||||
"color" : {
|
||||
"color-space" : "srgb",
|
||||
"components" : {
|
||||
"alpha" : "1.000",
|
||||
"blue" : "1.000",
|
||||
"green" : "1.000",
|
||||
"red" : "1.000"
|
||||
}
|
||||
},
|
||||
"idiom" : "universal"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
{
|
||||
"images" : [
|
||||
{
|
||||
"filename" : "doushouqi-lion 1.png",
|
||||
"idiom" : "universal",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"scale" : "3x"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
}
|
||||
}
|
After Width: | Height: | Size: 50 KiB |
After Width: | Height: | Size: 3.0 KiB |
@ -0,0 +1,98 @@
|
||||
//
|
||||
// SwiftUIView.swift
|
||||
// DouShouQi_App
|
||||
//
|
||||
// Created by étudiant on 22/05/2024.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
|
||||
struct SwiftUIView: View {
|
||||
var body: some View {
|
||||
VStack {
|
||||
TitlePageFrame(Text: "DOU SHOU QI", ImageWidth: 200, ImageHeight: 200)
|
||||
Spacer()
|
||||
|
||||
VStack {
|
||||
HStack{
|
||||
VStack {
|
||||
Button(action: {
|
||||
// Action du bouton
|
||||
}, label: {
|
||||
Text("Play".uppercased())
|
||||
.font(.headline)
|
||||
.fontWeight(.semibold)
|
||||
.foregroundColor(.white)
|
||||
.frame(maxWidth: .infinity, maxHeight: 50)
|
||||
.background(
|
||||
Color.red
|
||||
)
|
||||
.cornerRadius(0)
|
||||
})
|
||||
.frame(width: UIScreen.main.bounds.width / 1.7)
|
||||
.frame(maxWidth: .infinity, alignment: .leading)
|
||||
|
||||
Button(action: {
|
||||
// Action du bouton
|
||||
}, label: {
|
||||
Text("Historique".uppercased())
|
||||
.font(.headline)
|
||||
.fontWeight(.semibold)
|
||||
.foregroundColor(.white)
|
||||
.frame(maxWidth: .infinity, maxHeight: 50)
|
||||
.background(
|
||||
Color.red
|
||||
)
|
||||
.cornerRadius(0)
|
||||
})
|
||||
.frame(width: UIScreen.main.bounds.width / 1.7)
|
||||
.frame(maxWidth: .infinity, alignment: .leading)
|
||||
|
||||
Button(action: {
|
||||
// Action du bouton
|
||||
}, label: {
|
||||
Text("Best scores".uppercased())
|
||||
.font(.headline)
|
||||
.fontWeight(.semibold)
|
||||
.foregroundColor(.white)
|
||||
.frame(maxWidth: .infinity, maxHeight: 50)
|
||||
.background(
|
||||
Color.red
|
||||
)
|
||||
.cornerRadius(0)
|
||||
})
|
||||
.frame(width: UIScreen.main.bounds.width / 1.7)
|
||||
.frame(maxWidth: .infinity, alignment: .leading)
|
||||
|
||||
Button(action: {
|
||||
// Action du bouton
|
||||
}, label: {
|
||||
Text("Players".uppercased())
|
||||
.font(.headline)
|
||||
.fontWeight(.semibold)
|
||||
.foregroundColor(.white)
|
||||
.frame(maxWidth: .infinity, maxHeight: 50)
|
||||
.background(
|
||||
Color.red
|
||||
)
|
||||
.cornerRadius(0)
|
||||
})
|
||||
.frame(width: UIScreen.main.bounds.width / 1.7)
|
||||
.frame(maxWidth: .infinity, alignment: .leading)
|
||||
}
|
||||
.padding()
|
||||
}
|
||||
}
|
||||
.padding(.horizontal, 10)
|
||||
|
||||
Spacer()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
struct SwiftUIView_Previews: PreviewProvider {
|
||||
static var previews: some View {
|
||||
SwiftUIView()
|
||||
}
|
||||
}
|
Loading…
Reference in new issue