parent
f98bca02d6
commit
f03e94c0ea
@ -1,18 +1,74 @@
|
|||||||
//
|
//
|
||||||
// ReviewCard.swift
|
// BetCard.swift
|
||||||
// AllIn
|
// AllIn
|
||||||
//
|
//
|
||||||
// Created by Lucas Delanier on 10/01/2024.
|
// Created by Lucas on 24/09/2023.
|
||||||
//
|
//
|
||||||
|
|
||||||
import SwiftUI
|
import SwiftUI
|
||||||
|
|
||||||
struct ReviewCard: View {
|
struct ReviewCard: View {
|
||||||
var body: some View {
|
var body: some View {
|
||||||
Text(/*@START_MENU_TOKEN@*/"Hello, World!"/*@END_MENU_TOKEN@*/)
|
VStack(spacing: 0){
|
||||||
|
VStack(alignment: .leading,spacing: 2){
|
||||||
|
HStack{
|
||||||
|
Spacer()
|
||||||
|
Text("proposé par Lucas").font(.system(size: 10)).foregroundColor(AllInColors.grey800Color)
|
||||||
|
|
||||||
|
}
|
||||||
|
Text("Etudes").font(.system(size: 15)).foregroundColor(AllInColors.grey800Color)
|
||||||
|
Text("Emre va réussir son TP de CI/CD mercredi?").font(.system(size: 20)).fontWeight(.bold)
|
||||||
|
HStack{
|
||||||
|
Text("Commence le").font(.system(size: 15)).foregroundColor(AllInColors.grey800Color)
|
||||||
|
TextCapsule()
|
||||||
|
TextCapsule()
|
||||||
|
Spacer()
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.frame(width: .infinity)
|
||||||
|
.padding(.all,15)
|
||||||
|
.background(AllInColors.componentBackgroundColor).cornerRadius(20, corners: [.topLeft,.topRight]).padding(.bottom,0)
|
||||||
|
|
||||||
|
VStack(alignment: .leading,spacing: 2){
|
||||||
|
HStack{
|
||||||
|
Spacer()
|
||||||
|
UsersPreview()
|
||||||
|
Text(" 4 joueurs en attente").font(.system(size: 15)).foregroundColor(AllInColors.grey800Color).fontWeight(.medium)
|
||||||
|
|
||||||
|
Spacer()
|
||||||
|
|
||||||
|
}.padding(0)
|
||||||
|
Button {
|
||||||
|
|
||||||
|
} label: {
|
||||||
|
Text("Participer")
|
||||||
|
.font(.system(size: 30))
|
||||||
|
.fontWeight(.bold)
|
||||||
|
.frame(maxWidth: .infinity).padding(10)
|
||||||
|
.multilineTextAlignment(.center)
|
||||||
|
.overlay {
|
||||||
|
AllInColors.primaryGradient.frame(width: 170)
|
||||||
|
.mask(
|
||||||
|
Text("Participer")
|
||||||
|
.font(.system(size: 30))
|
||||||
|
.fontWeight(.bold)
|
||||||
|
.frame(maxWidth: .infinity).padding(10)
|
||||||
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.accentColor(AllInColors.componentBackgroundColor)
|
||||||
|
.buttonStyle(.borderedProminent).cornerRadius(4.0)
|
||||||
|
.overlay(
|
||||||
|
RoundedRectangle(cornerRadius: 12).stroke(AllInColors.delimiterGrey, lineWidth: 1)
|
||||||
|
).padding([.top],5)
|
||||||
|
|
||||||
#Preview {
|
}
|
||||||
ReviewCard()
|
.frame(width: .infinity)
|
||||||
|
.padding(.all,8)
|
||||||
|
.background(AllInColors.underComponentBackgroundColor)
|
||||||
|
.cornerRadius(20, corners: [.bottomLeft,.bottomRight])
|
||||||
|
.border(width: 1, edges: [.top], color: AllInColors.delimiterGrey)
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,18 +1,37 @@
|
|||||||
//
|
//
|
||||||
// HistoricBetView.swift
|
// BetView.swift
|
||||||
// AllIn
|
// AllIn
|
||||||
//
|
//
|
||||||
// Created by Lucas Delanier on 10/01/2024.
|
// Created by Lucas on 22/09/2023.
|
||||||
//
|
//
|
||||||
|
|
||||||
import SwiftUI
|
import SwiftUI
|
||||||
|
|
||||||
struct HistoricBetView: View {
|
struct HistoricBetView: View {
|
||||||
|
|
||||||
|
@StateObject private var viewModel = BetViewModel()
|
||||||
|
@Binding var showMenu: Bool
|
||||||
|
@State private var showingSheet = false
|
||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
Text(/*@START_MENU_TOKEN@*/"Hello, World!"/*@END_MENU_TOKEN@*/)
|
|
||||||
|
VStack(alignment: .center, spacing: 0) {
|
||||||
|
|
||||||
|
TopBar(showMenu: self.$showMenu)
|
||||||
|
ScrollView(showsIndicators: false) {
|
||||||
|
Text("Historique")
|
||||||
|
.textStyle(weight: .bold, color: AllInColors.grey500Color, size: 25)
|
||||||
|
.padding([.top],15)
|
||||||
|
VStack(spacing: 20){
|
||||||
|
ReviewCard()
|
||||||
|
ReviewCard()
|
||||||
}
|
}
|
||||||
|
.padding([.trailing, .leading, .bottom],25)
|
||||||
}
|
}
|
||||||
|
Spacer()
|
||||||
#Preview {
|
}
|
||||||
HistoricBetView()
|
.edgesIgnoringSafeArea(.bottom)
|
||||||
|
.background(AllInColors.backgroundColor)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in new issue