Merge pull request 'bet_component' (#3) from bet_component into master
Reviewed-on: AllDev/Swift#3auth_manage
commit
c7fe379d9c
@ -0,0 +1,38 @@
|
||||
{
|
||||
"colors" : [
|
||||
{
|
||||
"color" : {
|
||||
"color-space" : "srgb",
|
||||
"components" : {
|
||||
"alpha" : "1.000",
|
||||
"blue" : "0xFF",
|
||||
"green" : "0xFF",
|
||||
"red" : "0xFF"
|
||||
}
|
||||
},
|
||||
"idiom" : "universal"
|
||||
},
|
||||
{
|
||||
"appearances" : [
|
||||
{
|
||||
"appearance" : "luminosity",
|
||||
"value" : "dark"
|
||||
}
|
||||
],
|
||||
"color" : {
|
||||
"color-space" : "srgb",
|
||||
"components" : {
|
||||
"alpha" : "1.000",
|
||||
"blue" : "0x26",
|
||||
"green" : "0x26",
|
||||
"red" : "0x26"
|
||||
}
|
||||
},
|
||||
"idiom" : "universal"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
}
|
||||
}
|
@ -0,0 +1,38 @@
|
||||
{
|
||||
"colors" : [
|
||||
{
|
||||
"color" : {
|
||||
"color-space" : "srgb",
|
||||
"components" : {
|
||||
"alpha" : "1.000",
|
||||
"blue" : "0xFF",
|
||||
"green" : "0xFF",
|
||||
"red" : "0xFF"
|
||||
}
|
||||
},
|
||||
"idiom" : "universal"
|
||||
},
|
||||
{
|
||||
"appearances" : [
|
||||
{
|
||||
"appearance" : "luminosity",
|
||||
"value" : "dark"
|
||||
}
|
||||
],
|
||||
"color" : {
|
||||
"color-space" : "srgb",
|
||||
"components" : {
|
||||
"alpha" : "1.000",
|
||||
"blue" : "0xFF",
|
||||
"green" : "0xFF",
|
||||
"red" : "0xFF"
|
||||
}
|
||||
},
|
||||
"idiom" : "universal"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
}
|
||||
}
|
@ -0,0 +1,38 @@
|
||||
{
|
||||
"colors" : [
|
||||
{
|
||||
"color" : {
|
||||
"color-space" : "srgb",
|
||||
"components" : {
|
||||
"alpha" : "1.000",
|
||||
"blue" : "0xF7",
|
||||
"green" : "0xF7",
|
||||
"red" : "0xF7"
|
||||
}
|
||||
},
|
||||
"idiom" : "universal"
|
||||
},
|
||||
{
|
||||
"appearances" : [
|
||||
{
|
||||
"appearance" : "luminosity",
|
||||
"value" : "dark"
|
||||
}
|
||||
],
|
||||
"color" : {
|
||||
"color-space" : "srgb",
|
||||
"components" : {
|
||||
"alpha" : "1.000",
|
||||
"blue" : "0x2A",
|
||||
"green" : "0x2A",
|
||||
"red" : "0x2A"
|
||||
}
|
||||
},
|
||||
"idiom" : "universal"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
{
|
||||
"images" : [
|
||||
{
|
||||
"filename" : "Ellipse 1-2.png",
|
||||
"idiom" : "universal",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"scale" : "3x"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
}
|
||||
}
|
After Width: | Height: | Size: 20 KiB |
@ -0,0 +1,38 @@
|
||||
{
|
||||
"colors" : [
|
||||
{
|
||||
"color" : {
|
||||
"color-space" : "srgb",
|
||||
"components" : {
|
||||
"alpha" : "1.000",
|
||||
"blue" : "0xEB",
|
||||
"green" : "0xEB",
|
||||
"red" : "0xEB"
|
||||
}
|
||||
},
|
||||
"idiom" : "universal"
|
||||
},
|
||||
{
|
||||
"appearances" : [
|
||||
{
|
||||
"appearance" : "luminosity",
|
||||
"value" : "dark"
|
||||
}
|
||||
],
|
||||
"color" : {
|
||||
"color-space" : "srgb",
|
||||
"components" : {
|
||||
"alpha" : "1.000",
|
||||
"blue" : "0x39",
|
||||
"green" : "0x39",
|
||||
"red" : "0x39"
|
||||
}
|
||||
},
|
||||
"idiom" : "universal"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
}
|
||||
}
|
@ -0,0 +1,38 @@
|
||||
{
|
||||
"colors" : [
|
||||
{
|
||||
"color" : {
|
||||
"color-space" : "srgb",
|
||||
"components" : {
|
||||
"alpha" : "1.000",
|
||||
"blue" : "0xAA",
|
||||
"green" : "0xAA",
|
||||
"red" : "0xAA"
|
||||
}
|
||||
},
|
||||
"idiom" : "universal"
|
||||
},
|
||||
{
|
||||
"appearances" : [
|
||||
{
|
||||
"appearance" : "luminosity",
|
||||
"value" : "dark"
|
||||
}
|
||||
],
|
||||
"color" : {
|
||||
"color-space" : "srgb",
|
||||
"components" : {
|
||||
"alpha" : "1.000",
|
||||
"blue" : "0xAA",
|
||||
"green" : "0xAA",
|
||||
"red" : "0xAA"
|
||||
}
|
||||
},
|
||||
"idiom" : "universal"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
}
|
||||
}
|
@ -0,0 +1,38 @@
|
||||
{
|
||||
"colors" : [
|
||||
{
|
||||
"color" : {
|
||||
"color-space" : "srgb",
|
||||
"components" : {
|
||||
"alpha" : "1.000",
|
||||
"blue" : "0xEB",
|
||||
"green" : "0xEB",
|
||||
"red" : "0xEB"
|
||||
}
|
||||
},
|
||||
"idiom" : "universal"
|
||||
},
|
||||
{
|
||||
"appearances" : [
|
||||
{
|
||||
"appearance" : "luminosity",
|
||||
"value" : "dark"
|
||||
}
|
||||
],
|
||||
"color" : {
|
||||
"color-space" : "display-p3",
|
||||
"components" : {
|
||||
"alpha" : "1.000",
|
||||
"blue" : "0x39",
|
||||
"green" : "0x39",
|
||||
"red" : "0x39"
|
||||
}
|
||||
},
|
||||
"idiom" : "universal"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
}
|
||||
}
|
@ -0,0 +1,38 @@
|
||||
{
|
||||
"colors" : [
|
||||
{
|
||||
"color" : {
|
||||
"color-space" : "srgb",
|
||||
"components" : {
|
||||
"alpha" : "1.000",
|
||||
"blue" : "0xFB",
|
||||
"green" : "0x7B",
|
||||
"red" : "0x7F"
|
||||
}
|
||||
},
|
||||
"idiom" : "universal"
|
||||
},
|
||||
{
|
||||
"appearances" : [
|
||||
{
|
||||
"appearance" : "luminosity",
|
||||
"value" : "dark"
|
||||
}
|
||||
],
|
||||
"color" : {
|
||||
"color-space" : "srgb",
|
||||
"components" : {
|
||||
"alpha" : "1.000",
|
||||
"blue" : "0xFB",
|
||||
"green" : "0x7B",
|
||||
"red" : "0x7F"
|
||||
}
|
||||
},
|
||||
"idiom" : "universal"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
}
|
||||
}
|
@ -0,0 +1,38 @@
|
||||
{
|
||||
"colors" : [
|
||||
{
|
||||
"color" : {
|
||||
"color-space" : "srgb",
|
||||
"components" : {
|
||||
"alpha" : "1.000",
|
||||
"blue" : "0x2A",
|
||||
"green" : "0x2A",
|
||||
"red" : "0x2A"
|
||||
}
|
||||
},
|
||||
"idiom" : "universal"
|
||||
},
|
||||
{
|
||||
"appearances" : [
|
||||
{
|
||||
"appearance" : "luminosity",
|
||||
"value" : "dark"
|
||||
}
|
||||
],
|
||||
"color" : {
|
||||
"color-space" : "srgb",
|
||||
"components" : {
|
||||
"alpha" : "1.000",
|
||||
"blue" : "0x2A",
|
||||
"green" : "0x2A",
|
||||
"red" : "0x2A"
|
||||
}
|
||||
},
|
||||
"idiom" : "universal"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
}
|
||||
}
|
@ -0,0 +1,77 @@
|
||||
//
|
||||
// BetCard.swift
|
||||
// AllIn
|
||||
//
|
||||
// Created by étudiant on 24/09/2023.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
|
||||
struct BetCard: View {
|
||||
var body: some View {
|
||||
VStack(spacing: 0){
|
||||
VStack(alignment: .leading,spacing: 2){
|
||||
HStack{
|
||||
Spacer()
|
||||
Text("proposé par Lucas").font(.system(size: 10)).foregroundColor(AllinColor.lightGray)
|
||||
|
||||
}
|
||||
Text("Etudes").font(.system(size: 15)).foregroundColor(AllinColor.lightGray)
|
||||
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(AllinColor.lightGray)
|
||||
TextCapsule()
|
||||
TextCapsule()
|
||||
Spacer()
|
||||
|
||||
}
|
||||
}.frame(width: .infinity).padding(.all,15)
|
||||
|
||||
.background(AllinColor.BetCardBackground).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(AllinColor.lightGray).fontWeight(.medium)
|
||||
|
||||
Spacer()
|
||||
|
||||
}.padding(0)
|
||||
Button {
|
||||
|
||||
} label: {
|
||||
Text("Participer")
|
||||
.font(.system(size: 30))
|
||||
.fontWeight(.bold)
|
||||
.frame(maxWidth: .infinity).padding(10)
|
||||
.multilineTextAlignment(.center)
|
||||
.overlay {
|
||||
AllinColor.gradiantCard.frame(width: 170)
|
||||
.mask(
|
||||
Text("Participer")
|
||||
.font(.system(size: 30))
|
||||
.fontWeight(.bold)
|
||||
.frame(maxWidth: .infinity).padding(10)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
.accentColor(AllinColor.BetCardBackground)
|
||||
.buttonStyle(.borderedProminent).cornerRadius(4.0)
|
||||
.overlay(
|
||||
RoundedRectangle(cornerRadius: 12).stroke(AllinColor.DelimiterGray , lineWidth: 1)
|
||||
).padding([.top],5)
|
||||
|
||||
}.frame(width: .infinity).padding(.all,8)
|
||||
|
||||
.background(AllinColor.CapsuleGray).cornerRadius(20, corners: [.bottomLeft,.bottomRight]).padding(.bottom,0).border(width: 1, edges: [.top], color: AllinColor.DelimiterGray)
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
struct BetCard_Previews: PreviewProvider {
|
||||
static var previews: some View {
|
||||
BetCard()
|
||||
}
|
||||
}
|
@ -0,0 +1,35 @@
|
||||
//
|
||||
// ChoiceCapsule.swift
|
||||
// AllIn
|
||||
//
|
||||
// Created by étudiant on 26/09/2023.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
|
||||
struct ChoiceCapsule: View {
|
||||
@State var buttonPressed = false
|
||||
var body: some View {
|
||||
Group {
|
||||
if(buttonPressed){
|
||||
Text("En cours").font(.system(size: 15)).foregroundColor(.white).fontWeight(.semibold).padding([.leading,.trailing],13.8).padding([.top,.bottom], 7).background(AllinColor.PrimaryTextColor).clipShape(Capsule()
|
||||
)
|
||||
}else{
|
||||
Text("En cours").font(.system(size: 15)).foregroundColor(AllinColor.lightGray).fontWeight(.regular).padding([.leading,.trailing],15).padding([.top,.bottom], 7).background(AllinColor.CapsuleGray).clipShape(Capsule()).overlay( /// apply a rounded border
|
||||
RoundedRectangle(cornerRadius: 20)
|
||||
.stroke(AllinColor.LightGray_200, lineWidth: 1)
|
||||
)
|
||||
}
|
||||
}
|
||||
.onTapGesture() {
|
||||
buttonPressed.toggle()
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
struct ChoiceCapsule_Previews: PreviewProvider {
|
||||
static var previews: some View {
|
||||
ChoiceCapsule()
|
||||
}
|
||||
}
|
@ -0,0 +1,23 @@
|
||||
//
|
||||
// TextCapsule.swift
|
||||
// AllIn
|
||||
//
|
||||
// Created by étudiant on 24/09/2023.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
|
||||
struct TextCapsule: View {
|
||||
var body: some View {
|
||||
Text("12 sept.").font(.system(size: 15)).foregroundColor(AllinColor.PrimaryTextColor).fontWeight(.bold).padding([.leading,.trailing],10).padding([.top,.bottom], 5).background(AllinColor.CapsuleGray).clipShape(Capsule()).overlay( /// apply a rounded border
|
||||
RoundedRectangle(cornerRadius: 20)
|
||||
.stroke(AllinColor.DelimiterGray, lineWidth: 1)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
struct TextCapsule_Previews: PreviewProvider {
|
||||
static var previews: some View {
|
||||
TextCapsule()
|
||||
}
|
||||
}
|
@ -0,0 +1,33 @@
|
||||
//
|
||||
// UsersPreview.swift
|
||||
// AllIn
|
||||
//
|
||||
// Created by étudiant on 24/09/2023.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
|
||||
struct UsersPreview: View {
|
||||
var body: some View {
|
||||
HStack(spacing: -20){
|
||||
Image("DefaultUserIcon")
|
||||
.resizable()
|
||||
.frame(width: 35, height: 35)
|
||||
Image("DefaultUserIcon")
|
||||
.resizable()
|
||||
.frame(width: 35, height: 35)
|
||||
Image("DefaultUserIcon")
|
||||
.resizable()
|
||||
.frame(width: 35, height: 35)
|
||||
Image("DefaultUserIcon")
|
||||
.resizable()
|
||||
.frame(width: 35, height: 35)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
struct UsersPreview_Previews: PreviewProvider {
|
||||
static var previews: some View {
|
||||
UsersPreview()
|
||||
}
|
||||
}
|
Loading…
Reference in new issue