-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathWelcomePageView.swift
64 lines (56 loc) · 1.96 KB
/
WelcomePageView.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
//
// WelcomePageView.swift
// MobileAcebook
//
// Created by Josué Estévez Fernández on 30/09/2023.
//
import SwiftUI
struct WelcomePageView: View {
var body: some View {
ZStack {
VStack {
Spacer()
Text("Welcome to\n Pawbook!")
.font(.largeTitle)
.padding(.bottom, 25)
.accessibilityIdentifier("welcomeText")
.multilineTextAlignment(.center)
.foregroundColor(Color(red: 0.50, green: 0.71, blue: 0.71))
.bold()
Spacer()
Image("paw-logo")
.resizable()
.scaledToFit()
.frame(width: 130, height: 130)
.accessibilityIdentifier("paw-logo")
Spacer()
Button("Login") {
// TODO: login logic
}
.frame(width: 100)
.controlSize(.large)
.buttonStyle(.bordered)
.background(Color(red: 0x50/255, green: 0xB7/255, blue: 0xB7/255))
.foregroundColor(.white)
.cornerRadius(10)
.accessibilityIdentifier("loginButton")
Button("Sign Up") {
// TODO: sign up logic
}
.frame(width: 100)
.controlSize(.large)
.buttonStyle(.bordered)
.background(Color(red: 0x50/255, green: 0xB7/255, blue: 0xB7/255))
.foregroundColor(.white)
.cornerRadius(10)
.accessibilityIdentifier("signUpButton")
Spacer()
}
}
}
}
struct WelcomePageView_Previews: PreviewProvider {
static var previews: some View {
WelcomePageView()
}
}