Proyectos de Subversion Iphone Microlearning - Inconcert

Rev

Rev 4 | Ir a la última revisión | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
//
2
//  IntroStep1View.swift
3
//  twogetskills
4
//
5
//  Created by Efrain Yanez Recanatini on 7/21/22.
6
//
7
 
8
import SwiftUI
9
 
10
struct IntroStep1View: View {
11
 
12
    @EnvironmentObject var appNavigation : AppNavigation
13
 
14
    var body: some View {
15
 
16
            VStack(spacing: 0)
17
            {
18
 
19
                Group {
20
                    HStack {
21
                        Image("logo")
22
                            .resizable()
23
                            .aspectRatio(contentMode: .fit)
24
                            .frame(width: 42, height: 42, alignment: /*@START_MENU_TOKEN@*/.center/*@END_MENU_TOKEN@*/)
25
 
26
                        Text(Config.LANG_SIGNIN_APP_NAME)
27
                            .font(Font.custom(Config.FONT_NAME_BOLD, size: 24))
28
 
29
                        Spacer()
30
                    }
31
                }
32
                .padding(.leading, 16)
33
                .padding(.top, 66)
34
 
35
                Spacer()
36
 
37
 
38
 
39
                Group()
40
                {
5 efrain 41
                    Image(uiImage: UIImage(named: "ui_intro_aprende_gratis") ?? UIImage())
1 efrain 42
 
43
                }
44
                .background(
45
                    Image(uiImage: UIImage(named: "ui_cuadrado_inclinado") ?? UIImage())
46
                )
47
 
48
 
49
                Group {
50
 
51
                    VStack(spacing: 0)
52
                    {
53
 
54
                        Text(Config.LANG_INTRO1_TITLE)
55
                            .font(Font.custom(Config.FONT_NAME_BOLD, size: 18))
56
                            .foregroundColor(Color("color_textview_foreground"))
57
 
58
 
59
                        Text(Config.LANG_INTRO1_MESSAGE)
60
                            .font(Font.custom(Config.FONT_NAME_REGULAR, size: 16))
61
                            .foregroundColor(Color("color_textview_foreground"))
62
                            .padding(.horizontal, 16)
63
                            .padding(.top, 20)
64
                    }
65
 
66
                }.padding(.top, 30)
67
 
68
                Spacer()
69
 
70
 
71
 
72
                Button(action: {
73
 
74
                    DispatchQueue.main.asyncAfter(deadline: .now() + 0.1) {
75
                            withAnimation {
76
                                appNavigation.pageActive = AppMainPage.intro2
77
                            }
78
                        }
79
 
80
                }, label: {
81
                    Text(Config.LANG_COMMON_NEXT)
82
                     .font(Font.custom(Config.FONT_NAME_REGULAR, size: 16))
83
                     .frame(width: UIScreen.main.bounds.width - 32, height: 35)
84
 
85
                        .foregroundColor(Color("color_button_dark_foreground"))
86
                        .background(Color("color_button_dark_background"))
87
                        .border(Color( "color_button_dark_border"), width: Config.BUTTON_BORDER_SIZE)
88
                        .cornerRadius(Config.BUTTON_BORDER_RADIUS)
89
 
90
                })
91
                .padding(.top, 16)
92
                .padding(.leading, 16)
93
                .padding(.trailing, 16)
94
 
95
 
96
                Spacer()
97
 
98
        }
99
    }
100
}
101
 
102
struct IntroStep1View_Previews: PreviewProvider {
103
    static var previews: some View {
104
        IntroStep1View()
105
    }
106
}