Skip to content

Commit

Permalink
make my logo bigger
Browse files Browse the repository at this point in the history
  • Loading branch information
krugerk committed Dec 16, 2024
1 parent c9f9d02 commit 960796d
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
32 changes: 32 additions & 0 deletions BeeSwift/SignInButton.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
struct SignInButton: View {
@Environment(\.colorScheme) private var colorScheme
let action: () -> Void
let isDisabled: Bool

init(action: @escaping () -> Void, isDisabled: Bool = false) {
self.action = action
self.isDisabled = isDisabled
}

var body: some View {
Button(action: action) {
Label("Sign In", systemImage: "iphone.and.arrow.forward.inward")
.font(.system(size: 20))
.frame(maxWidth: .infinity)
.frame(height: 44)
}
.buttonStyle(.bordered)
.foregroundStyle(colorScheme == .dark ? Color.yellow : Color.black)
.overlay {
if colorScheme == .dark {
RoundedRectangle(cornerRadius: 4)
.stroke(Color.yellow, lineWidth: 4)
} else {
RoundedRectangle(cornerRadius: 4)
.stroke(.clear)
}
}
// .cornerRadius(4)
.disabled(isDisabled)
}
}
2 changes: 1 addition & 1 deletion BeeSwift/SignInView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ struct SignInView: View {
Image("website_logo_mid")
.resizable()
.scaledToFit()
.frame(maxWidth: 200)
.frame(maxWidth: 400)
.padding(.bottom)

VStack(spacing: 15) {
Expand Down

0 comments on commit 960796d

Please sign in to comment.